ObjectGenerator Methods

The ObjectGenerator type exposes the following members.

Methods


  Name Description
Public method Equals(System.Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public method 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.
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)