ObjectGenerator Class

 

This class will create an object of a given type and populate it with sample data.

Namespace:   Microsoft.WindowsAzure.Mobile.Service.Description.Samples
Assembly:  Microsoft.WindowsAzure.Mobile.Service (in Microsoft.WindowsAzure.Mobile.Service.dll)

System.Object
  Microsoft.WindowsAzure.Mobile.Service.Description.Samples.ObjectGenerator

type ObjectGenerator = class end

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGenerateObject(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<'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>.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(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.

Return to top
Show: