Class CsEnumExtensions
Extensions class that provides common automation tasks rolled up under standard extension methods that support the CsEnum model.
Inherited Members
Namespace: CodeFactory.Formatting.CSharp
Assembly: CodeFactory.Formatting.CSharp.dll
Syntax
public static class CsEnumExtensions
Methods
| Improve this Doc View SourceCSharpFormatEnumValue(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. |