Skip to content

M_CodeJam_Strings_StringExtensions_ToInvariantString__1

Andrew Koryavchenko edited this page Jun 17, 2018 · 6 revisions

StringExtensions.ToInvariantString(T) Method (T)

Culture invariant version of ToString(String, IFormatProvider)

Namespace: CodeJam.Strings
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

C#

public static string ToInvariantString<T>(
	this T s
)
where T : IFormattable

VB

<ExtensionAttribute>
Public Shared Function ToInvariantString(Of T As IFormattable) ( 
	s As T
) As String

F#

[<ExtensionAttribute>]
static member ToInvariantString : 
        s : 'T -> string  when 'T : IFormattable

Parameters

 

s
Type: T
Object to convert.

Type Parameters

 

T
[Missing documentation for "M:CodeJam.Strings.StringExtensions.ToInvariantString1(0)"]

Return Value

Type: String
String representation of s according to rules of invariant culture.

Usage 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

Reference

StringExtensions Class
ToInvariantString Overload
CodeJam.Strings Namespace

Clone this wiki locally