ExtensionMethodsToFriendlyName Method (Type, String) |
Converts the type in a friendly name. Converts the name of the generic type into proper generic name for code generation.
Namespace:
SD.LLBLGen.Pro.Core
Assembly:
SD.LLBLGen.Pro.Core (in SD.LLBLGen.Pro.Core.dll) Version: 5.7.0.0 (5.7.0)
Syntax public static string ToFriendlyName(
this Type type,
string pattern
)
<ExtensionAttribute>
Public Shared Function ToFriendlyName (
type As Type,
pattern As String
) As String
Parameters
- type
- Type: SystemType
The type. - pattern
- Type: SystemString
The pattern for nullable types. Used to determine vb.net instead of c#. If a < is present, C# is assumed, otherwise VB.NET
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).
See Also