Skip to content

M_CommandLine_Infrastructure_StringExtensions_ToOneCharString

Moh.Hassan edited this page Oct 10, 2019 · 1 revision

StringExtensions.ToOneCharString Method

Namespace: CommandLine.Infrastructure
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0

Syntax

C#

public static string ToOneCharString(
	this char c
)

VB

<ExtensionAttribute>
Public Shared Function ToOneCharString ( 
	c As Char
) As String

C++

public:
[ExtensionAttribute]
static String^ ToOneCharString(
	wchar_t c
)

F#

[<ExtensionAttribute>]
static member ToOneCharString : 
        c : char -> string 

Parameters

 

c
Type: System.Char

Return Value

Type: String

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Char. 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

Reference

StringExtensions Class
CommandLine.Infrastructure Namespace

Clone this wiki locally