Class GenerateCSharpEnumExtensions
Extension methods that support the generation of source in the C# language from the CsEnum model.
Inherited Members
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. |