Open sandboxFocus

Method GetFactory

GetFactory<T>()

Gets a delegate to a factory method that returns an UnknownObjectAccessor for an object of a type given as a generic parameter.

Declaration
public static Func<T, UnknownObjectAccessor> GetFactory<T>()
Returns
Type Description
Func<T, UnknownObjectAccessor>

A delegate that takes the object as input and returns its UnknownObjectAccessor.

Type Parameters
Name Description
T

The type of the objects to be wrapped. It must be the final type (cannot be object, for instance).

GetFactory(Type)

Gets a delegate to a factory method that returns an UnknownObjectAccessor for an object of a type given as a generic parameter.

Declaration
public static Func<object, UnknownObjectAccessor> GetFactory(Type type)
Parameters
Type Name Description
Type type

The type of the objects to be wrapped. It must be the final type (cannot be object, for instance).

Returns
Type Description
Func<object, UnknownObjectAccessor>

A delegate that takes the object as input and returns its UnknownObjectAccessor.