Skip to main content

TextExtensions

Assembly: ServiceStack.Text.dll
View Source
Declaration
public static class TextExtensions

Methods

ToCsvField(String)

View Source
Declaration
public static string ToCsvField(this string text)
Returns

System.String

Parameters
TypeName
System.Stringtext

ToCsvField(Object)

View Source
Declaration
public static object ToCsvField(this object text)
Returns

System.Object

Parameters
TypeName
System.Objecttext

FromCsvField(String)

View Source
Declaration
public static string FromCsvField(this string text)
Returns

System.String

Parameters
TypeName
System.Stringtext

FromCsvFields(IEnumerable<String>)

View Source
Declaration
public static List<string> FromCsvFields(this IEnumerable<string> texts)
Returns

System.Collections.Generic.List<System.String>

Parameters
TypeName
System.Collections.Generic.IEnumerable<System.String>texts

FromCsvFields(String[])

View Source
Declaration
public static string[] FromCsvFields(params string[] texts)
Returns

System.String[]

Parameters
TypeName
System.String[]texts

SerializeToString<T>(T)

View Source
Declaration
public static string SerializeToString<T>(this T value)
Returns

System.String

Parameters
TypeName
<T>value
Type Parameters
  • T