TypeExtensionMethodsGetFullTypeName Method |
Gets the full type name, of the format: Type.Fullname, assembly name.
If the assembly is signed, the full assembly name is added, otherwise just the assembly name, not the version, public key token or culture.
Namespace:
SD.Tools.BCLExtensions.SystemRelated
Assembly:
SD.Tools.BCLExtensions (in SD.Tools.BCLExtensions.dll) Version: 1.1.1
Syntax public static string GetFullTypeName(
this Type type
)
<ExtensionAttribute>
Public Shared Function GetFullTypeName (
type As Type
) As String
Parameters
- type
- Type: SystemType
The type of which the full name should be obtained.
Return Value
Type:
Stringfull type name. If the type is a .NET system type (e.g. is located in mscorlib or namespace starts with Microsoft. or System.) the
FullTypeName is equal to the FullName of the type.
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).
Remarks Use this method if you need to store the type's full name in a string for re-instantiation later on with Activator.CreateInstance.
See Also