ObjectGenerator Class
This class will create an object of a given type and populate it with sample data.
Assembly: Microsoft.WindowsAzure.Mobile.Service (in Microsoft.WindowsAzure.Mobile.Service.dll)
| Name | Description | |
|---|---|---|
![]() | ObjectGenerator() |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | (Inherited from Object.) |
![]() | Finalize() | (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(Of T). Arrays: arrays of simple types or complex types. Key value pairs: KeyValuePair(Of TKey, TValue) Tuples: Tuple(Of T1), Tuple(Of T1, T2), etc Dictionaries: IDictionary(Of TKey, TValue) or anything deriving from IDictionary(Of TKey, TValue). Collections: IList(Of T), IEnumerable(Of T), ICollection(Of T), IList, IEnumerable, ICollection or anything deriving from ICollection(Of T) or IList. Queryables: IQueryable, IQueryable(Of T). |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | ToString() | (Inherited from Object.) |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
.jpeg?cs-save-lang=1&cs-lang=vb)
.jpeg?cs-save-lang=1&cs-lang=vb)