Udostępnij za pośrednictwem


ClassWithNewConstraint<T> Klasa

Definicja

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)

Parametry typu

T
Dziedziczenie
ClassWithNewConstraint<T>
Implementuje

Konstruktory

ClassWithNewConstraint<T>()

Właściwości

Value

Metody

Equals(Object)

Określa, czy dany obiekt jest taki sam, jak bieżący obiekt.

(Odziedziczone po Object)
GetHashCode()

Służy jako domyślna funkcja skrótu.

(Odziedziczone po Object)
GetType()

Type Pobiera wartość bieżącego wystąpienia.

(Odziedziczone po Object)
MemberwiseClone()

Tworzy płytkią kopię bieżącego Objectelementu .

(Odziedziczone po Object)
ToString()

Zwraca ciąg reprezentujący bieżący obiekt.

(Odziedziczone po Object)

Dotyczy