Show / Hide Table of Contents

Class ObjectFactory

Custom objet factory for our classes which do not have public constructors

Inheritance
System.Object
ObjectFactory
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: GenerallyPositive
Assembly: GPAL.dll
Syntax
public static class ObjectFactory

Methods

CreateInstance<T>()

Creates an instance of the specified type using reflection, looking for non-public constructors if necessary.

Declaration
public static T CreateInstance<T>()
    where T : class
Returns
Type Description
T

An instance of T.

Type Parameters
Name Description
T

The type to instantiate.

In This Article
Back to top Generated by DocFX