Share via


ClassWithNewConstraint<T> Class

Definition

generic <typename T>
 where T : gcnew()public ref class ClassWithNewConstraint : Microsoft::Extensions::DependencyInjection::Specification::Fakes::IFakeOpenGenericService<T>
public class ClassWithNewConstraint<T> : Microsoft.Extensions.DependencyInjection.Specification.Fakes.IFakeOpenGenericService<T> where T : new()
type ClassWithNewConstraint<'T (requires 'T : (new : unit -> 'T))> = class
    interface IFakeOpenGenericService<'T (requires 'T : (new : unit -> 'T))>
Public Class ClassWithNewConstraint(Of T)
Implements IFakeOpenGenericService(Of T)

Type Parameters

T
Inheritance
ClassWithNewConstraint<T>
Implements

Constructors

ClassWithNewConstraint<T>()

Properties

Value

Applies to