Op Englesch liesen Editéieren

Deelen iwwer


Factory<TParam1,TInstance> Delegate

Definition

Creates an instance of TInstance.

C#
public delegate TInstance Factory<in TParam1,out TInstance>(TParam1 param1);

Type Parameters

TParam1

The parameter type.

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

The instance type.

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.

Parameters

param1
TParam1

Return Value

TInstance

The instance.

Applies to

Produkt Versiounen
.NET Orleans 1.5.10, 3.4.5, 3.6.0, 7.0.0, 8.0.0, 8.1.0, 8.2.0, 9.0.0