共用方式為


TypeConverter.Format 方法

定義

多載

Format(Type, Boolean)

格式化提供的型別。

Format(Type, Func<TypeSpec,TypeSpec>, Boolean)

格式化提供的型別,使用提供的委派重寫專案。

Format(Type, Boolean)

格式化提供的型別。

public string Format (Type type, bool allowAllTypes = false);
member this.Format : Type * bool -> string
Public Function Format (type As Type, Optional allowAllTypes As Boolean = false) As String

參數

type
Type

類型。

allowAllTypes
Boolean

是否允許所有類型。

傳回

格式化的類型名稱。

適用於

Format(Type, Func<TypeSpec,TypeSpec>, Boolean)

格式化提供的型別,使用提供的委派重寫專案。

public string Format (Type type, Func<Orleans.Serialization.TypeSystem.TypeSpec,Orleans.Serialization.TypeSystem.TypeSpec> rewriter, bool allowAllTypes = false);
member this.Format : Type * Func<Orleans.Serialization.TypeSystem.TypeSpec, Orleans.Serialization.TypeSystem.TypeSpec> * bool -> string
Public Function Format (type As Type, rewriter As Func(Of TypeSpec, TypeSpec), Optional allowAllTypes As Boolean = false) As String

參數

type
Type

類型。

rewriter
Func<TypeSpec,TypeSpec>

用來重寫型別的委派。

allowAllTypes
Boolean

是否允許所有類型。

傳回

格式化的類型名稱。

適用於