BuildMaster SDK Reference
Version:

GetFactory(System.Type type) Method

Returns a factory method that can be used to create an instance of the specified type.

Syntax

public static Func<object> GetFactory(System.Type type)

Parameters

type
Type: System.Type

The type to return a factory method for.

Returns

Factory method that can be used to create an instance of the specified type.

Exceptions

System.ArgumentNullException

type is null (Nothing in Visual Basic).

System.ArgumentException

type does not have a public parameterless constructor.