Class TypeExtensions
Denotes common extensions to types
Inherited Members
Namespace: NMF.Models.Meta
Assembly: NMF.Models.dll
Syntax
public static class TypeExtensions
Methods
| Edit this page View SourceParse(IType, string)
Parses the given textual representation into an object
Declaration
public static object Parse(this IType type, string input)
Parameters
Type | Name | Description |
---|---|---|
IType | type | The type of the data |
string | input | The actual inputs |
Returns
Type | Description |
---|---|
object | A deserialized object |
Serialize(IType, object)
Serializes the given value of the provided type into a string
Declaration
public static string Serialize(this IType type, object value)
Parameters
Type | Name | Description |
---|---|---|
IType | type | The model type of the object |
object | value | The value |
Returns
Type | Description |
---|---|
string | A string representation |