Szerkesztés

Megosztás a következőn keresztül:


TypeConverter.Format Method

Definition

Overloads

Format(Type, Boolean)

Formats the provided type.

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

Formats the provided type, rewriting elements using the provided delegate.

Format(Type, Boolean)

Formats the provided type.

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

Parameters

type
Type

The type.

allowAllTypes
Boolean

Whether all types are allowed or not.

Returns

The formatted type name.

Applies to

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

Formats the provided type, rewriting elements using the provided delegate.

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

Parameters

type
Type

The type.

rewriter
Func<TypeSpec,TypeSpec>

A delegate used to rewrite the type.

allowAllTypes
Boolean

Whether all types are allowed or not.

Returns

The formatted type name.

Applies to