ConstantsCommaList Method |  |
Hartismere School[This is preliminary documentation and is subject to change.]
A comma seperated list where the last comma is replaced for "and"
Namespace: EJW.TextBasedAdventureAssembly: EJW.TextBasedAdventure (in EJW.TextBasedAdventure.dll) Version: 2.0.5850.21153
Syntaxpublic static string CommaList(
this string[] strs
)
<ExtensionAttribute>
Public Shared Function CommaList (
strs As String()
) As String
public:
[ExtensionAttribute]
static String^ CommaList(
array<String^>^ strs
)
[<ExtensionAttribute>]
static member CommaList :
strs : string[] -> string
Parameters
- strs
- Type: SystemString
Return Value
Type:
StringUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of 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