NameTransformExtensionsApply Method
Applies the specified transformation to a name.
Namespace: Ookii.CommandLineAssembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
public static string Apply(
this NameTransform transform,
string name,
string? suffixToStrip = null
)
<ExtensionAttribute>
Public Shared Function Apply (
transform As NameTransform,
name As String,
Optional suffixToStrip As String = Nothing
) As String
Dim transform As NameTransform
Dim name As String
Dim suffixToStrip As String
Dim returnValue As String
returnValue = transform.Apply(name,
suffixToStrip)
public:
[ExtensionAttribute]
static String^ Apply(
NameTransform transform,
String^ name,
String^ suffixToStrip = nullptr
)
- transform NameTransform
- The transformation to apply.
- name String
- The name to transform.
- suffixToStrip String (Optional)
-
An optional suffix to remove from the string before transformation. Only used if
transform is not NameTransformNone.
StringThe transformed name.In Visual Basic and C#, you can call this method as an instance method on any object of type
NameTransform. 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).