[This is preliminary documentation and is subject to change.]
Returns the the name of the type with expanded generic argument names.
This helper is useful for printing class names to logs/messages.
List'1[System.Object] -> List<Object>
Namespace: NFXAssembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
public static string DisplayNameWithExpandedGenericArgs(
this Type type
)
public static string DisplayNameWithExpandedGenericArgs(
this Type type
)
<ExtensionAttribute>
Public Shared Function DisplayNameWithExpandedGenericArgs (
type As Type
) As String
<ExtensionAttribute>
Public Shared Function DisplayNameWithExpandedGenericArgs (
type As Type
) As String
public:
[ExtensionAttribute]
static String^ DisplayNameWithExpandedGenericArgs(
Type^ type
)
public:
[ExtensionAttribute]
static String^ DisplayNameWithExpandedGenericArgs(
Type^ type
)
static member DisplayNameWithExpandedGenericArgs :
type : Type -> string
static member DisplayNameWithExpandedGenericArgs :
type : Type -> string
Return Value
Type:
StringUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Type. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).