ObjectGenerator Members
The ObjectGenerator type exposes the following members.
Methods
Name | Description | |
---|---|---|
Equals(System.Object) | (Inherited from Object.) | |
Finalize |
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
GenerateObject(Type) |
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: Int32, String, Enum, DateTime, Uri, etc.
Complex types: POCO types.
Nullables: Nullable.
Arrays: arrays of simple types or complex types.
Key value pairs: KeyValuePair
Tuples: [Tuple{T1}], [Tuple{T1,T2}], etc
Dictionaries: IDictionary or anything deriving from IDictionary.
Collections: IList, IEnumerable, ICollection, IList, IEnumerable, ICollection or anything deriving from ICollection or IList.
Queryables: IQueryable, IQueryable.
|
|
GetHashCode |
Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetType |
Gets the Type of the current instance. (Inherited from Object.) |
|
MemberwiseClone |
Creates a shallow copy of the current Object. (Inherited from Object.) |
|
ToString |
Returns a string that represents the current object. (Inherited from Object.) |