Click or drag to resize

NullObjectFactory<TObject> Class

Inheritance Hierarchy
System.Object
  BionicCode.Utilities.Net.Standard.Generic.Factory<TObject>
    BionicCode.Utilities.Net.Standard.Generic.NullObjectFactory<TObject>

Namespace:  BionicCode.Utilities.Net.Standard.Generic
Assembly:  BionicCode.Utilities.Net.Standard (in BionicCode.Utilities.Net.Standard.dll) Version: 1.0.4
Syntax
public class NullObjectFactory<TObject> : Factory<TObject>
where TObject : INullObject

Type Parameters

TObject

The NullObjectFactory<TObject> type exposes the following members.

Constructors
  NameDescription
Public methodNullObjectFactory<TObject>(Func<TObject>)
Initializes the NullObjectFactory<TObject> using a factory method delegate using Singleton.
Public methodNullObjectFactory<TObject>(IFactory<TObject>)
Initializes the NullObjectFactory<TObject> using a IFactory<TCreate> and its FactoryMode to set the FactoryMode.
Public methodNullObjectFactory<TObject>(Func<TObject>, FactoryMode)
Initializes the NullObjectFactory<TObject> using a factory method delegate using Singleton.
Top
Properties
Methods
  NameDescription
Public methodCreate()
Creates the instance.
(Inherited from Factory<TObject>.)
Public methodCreate(Object[])
Creates the instance, allowing arguments.
(Inherited from Factory<TObject>.)
Protected methodCreateInstance()
Implementation to create and initialize instances of type TObject.
(Overrides Factory<TObject>.CreateInstance().)
Protected methodCreateInstance(Object[])
Implementation to create and initialize instances of type TObject.
(Overrides Factory<TObject>.CreateInstance(Object[]).)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
See Also
https://github.com/BionicCode/BionicCode.Net/blob/master/README.md