TypeExtensionsGetName Method (Type, TypeNameKind, FuncType, AssemblyName, FuncType, String)

KGy SOFT Core Libraries Help
Gets the name of the type by the specified kind using custom callbacks for resolving the assembly and type names.
See the Remarks section of the GetName(Type, TypeNameKind) overload for details.

Namespace:  KGySoft.CoreLibraries
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.4.0

public static string GetName(
	this Type type,
	TypeNameKind kind,
	Func<Type, AssemblyName> assemblyNameResolver,
	Func<Type, string> typeNameResolver


Type: SystemType
The type whose name is to be obtained.
Type: KGySoft.CoreLibrariesTypeNameKind
The formatting kind for the name to be retrieved. Determines the fallback names if the callbacks return , and whether the assemblyNameResolver will be called.
Type: SystemFuncType, AssemblyName
If not , then will be called when the assembly identity of a type is requested.
Type: SystemFuncType, String
If not , then will be called for each ultimate element type and generic type definitions from which type consists of.

Return Value

Type: String
The name of the type by the specified kind using the specified custom callbacks.

Usage 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).
See Also