共用方式為


ClassWithStructConstraint<T> 類別

定義

generic <typename T>
 where T : value classpublic ref class ClassWithStructConstraint : Microsoft::Extensions::DependencyInjection::Specification::Fakes::IFakeOpenGenericService<T>
public class ClassWithStructConstraint<T> : Microsoft.Extensions.DependencyInjection.Specification.Fakes.IFakeOpenGenericService<T> where T : struct
type ClassWithStructConstraint<'T (requires 'T : struct)> = class
    interface IFakeOpenGenericService<'T (requires 'T : struct)>
Public Class ClassWithStructConstraint(Of T)
Implements IFakeOpenGenericService(Of T)

類型參數

T
繼承
ClassWithStructConstraint<T>
實作

建構函式

ClassWithStructConstraint<T>()

屬性

Value

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於