Edit

Share via


Factory<TInstance> Delegate

Definition

Creates an instance of TInstance.

public delegate TInstance Factory<out TInstance>();
type Factory<'Instance> = delegate of unit -> 'Instance
Public Delegate Function Factory(Of Out TInstance)() As TInstance 

Type Parameters

TInstance
This type parameter is covariant. That is, you can use either the type you specified or any type that is more derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.

Return Value

TInstance

The instance.

Applies to