Метод | Описание | |
---|---|---|
GenerateObject ( Type type ) : object |
Generates an object for a given type. The type needs to be public, have a public default constructor and settable public properties/fields. Currently it supports the following types: Simple types: int, string, Enum, DateTime, Uri, etc. Complex types: POCO types. Nullables: Nullable{T}. Arrays: arrays of simple types or complex types. Key value pairs: KeyValuePair{TKey,TValue} Tuples: Tuple{T1}, Tuple{T1,T2}, etc Dictionaries: IDictionary{TKey,TValue} or anything deriving from IDictionary{TKey,TValue}. Collections: IList{T}, IEnumerable{T}, ICollection{T}, IList, IEnumerable, ICollection or anything deriving from ICollection{T} or IList. Queryables: IQueryable, IQueryable{T}.
|
Метод | Описание | |
---|---|---|
GenerateArray ( |
||
GenerateCollection ( |
||
GenerateComplexObject ( |
||
GenerateDictionary ( |
||
GenerateEnum ( Type enumType ) : object | ||
GenerateGenericType ( Type type, int collectionSize, object>.Dictionary |
||
GenerateKeyValuePair ( Type keyValuePairType, object>.Dictionary |
||
GenerateNullable ( Type nullableType, object>.Dictionary |
||
GenerateObject ( Type type, object>.Dictionary |
||
GenerateQueryable ( Type queryableType, int size, object>.Dictionary |
||
GenerateTuple ( Type type, object>.Dictionary |
||
IsTuple ( Type genericTypeDefinition ) : bool | ||
SetPublicFields ( Type type, object obj, object>.Dictionary |
||
SetPublicProperties ( Type type, object obj, object>.Dictionary |
public GenerateObject ( Type type ) : object | ||
type | Type | The type. |
Результат | object |