CodeFactory Platform CodeFactory Platform
CodeFactory Platform CodeFactory Platform
CodeFactory

Search Results for

    Class CsEnumExtensions

    Extensions class that provides common automation tasks rolled up under standard extension methods that support the CsEnum model.

    Inheritance
    object
    CsEnumExtensions
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: CodeFactory.Formatting.CSharp
    Assembly: CodeFactory.Formatting.CSharp.dll
    Syntax
    public static class CsEnumExtensions

    Methods

    | Improve this Doc View Source

    CSharpFormatEnumValue(CsEnum, string)

    Extension method that will lookup the value of an enumeration by the enumeration type name.

    Declaration
    public static string CSharpFormatEnumValue(this CsEnum source, string enumName)
    Parameters
    Type Name Description
    CsEnum source

    The target IDotNetEnum model to get the enumeration value from.

    string enumName

    The target numerical named item to use to lookup the enumeration value.

    Returns
    Type Description
    string

    The target enumeration value or null if it could not be found.

    © CodeFactory, LLC. All rights reserved.