Otter SDK Reference
Version:

CreateInstance<T>(bool allowNonPublicConstructor) Method

Returns a new instance of the type <typeparamref name="T" />.

Syntax

public static T CreateInstance<T>(bool allowNonPublicConstructor)

Parameters

allowNonPublicConstructor
Type: bool

Value indicating whether nonpublic constructors should be considered.

Returns

Instance of the specified type.