Class ConversionExtensions
Conversion extensions.
Inheritance
System.Object
ConversionExtensions
Namespace: MESL.SqlRace.Domain.Extensions
Assembly: MESL.SqlRace.Domain.dll
Syntax
public static class ConversionExtensions : Object
Methods
FormatString<T>(T, String)
Sets the format string.
Declaration
public static T FormatString<T>(this T self, string formatString)
where T : ConversionBase
Parameters
Type | Name | Description |
---|---|---|
T | self | The T instance. |
System.String | formatString | The format string. |
Returns
Type | Description |
---|---|
T | The Implementation of ConversionBase. |
Type Parameters
Name | Description |
---|---|
T | Implementation of ConversionBase. |
Name<T>(T, String)
Sets the name.
Declaration
public static T Name<T>(this T self, string name)
where T : ConversionBase
Parameters
Type | Name | Description |
---|---|---|
T | self | The self. |
System.String | name | The name. |
Returns
Type | Description |
---|---|
T | The Implementation of ConversionBase. |
Type Parameters
Name | Description |
---|---|
T | Implementation of ConversionBase. |
Units<T>(T, String)
Sets the units.
Declaration
public static T Units<T>(this T self, string units)
where T : ConversionBase
Parameters
Type | Name | Description |
---|---|---|
T | self | The FormulaConversion instance. |
System.String | units | The units. |
Returns
Type | Description |
---|---|
T | The Implementation of ConversionBase. |
Type Parameters
Name | Description |
---|---|
T | Implementation of ConversionBase. |