NameTransformExtensionsApply Method
Applies the specified transformation to a name.
Namespace: Ookii.CommandLineAssembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
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).