CodeFactory for Windows CodeFactory for Windows
CodeFactory for Windows CodeFactory for Windows
CodeFactory

Search Results for

    Class GenerateCSharpEnumExtensions

    Extension methods that support the generation of source in the C# language from the CsEnum model.

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

    Methods

    GenerateCSharpEnumValue(CsEnum, string)

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

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

    The target CsEnum 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.