TypeConverter.Format Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
- allowAllTypes
- Boolean
Whether all types are allowed or not.
Returns
The formatted type name.