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

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to