GenericExtensionsAppendWithSeparator Method |
Appends two string together with a comma and a space
Namespace: Lithnet.MetadirectoryServicesAssembly: Lithnet.MetadirectoryServices (in Lithnet.MetadirectoryServices.dll) Version: 1.0.6017.24765
Syntax public static string AppendWithSeparator(
this string text,
string separator,
string textToAppend
)
<ExtensionAttribute>
Public Shared Function AppendWithSeparator (
text As String,
separator As String,
textToAppend As String
) As String
public:
[ExtensionAttribute]
static String^ AppendWithSeparator(
String^ text,
String^ separator,
String^ textToAppend
)
Parameters
- text
- Type: SystemString
The original string - separator
- Type: SystemString
The character or string to use to separate the strings - textToAppend
- Type: SystemString
The string to append
Return Value
Type:
StringThe concatenated string
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
String. 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