C# Class VOTSDR.Utils.StringExtensions

显示文件 Open project: apoco/valleyofthesundogrescue

Public Methods

Method Description
AppendLine ( this sb, string str ) : void

Appends the format line.

HtmlEncode ( this s ) : string
IsNotPopulated ( this s ) : bool
IsPopulated ( this s ) : bool
JoinToString ( this items, string separator ) : string

Joins the specified items in the enumerable arrat

Summarize ( this str, int charLimit = null ) : string
ToBoolean ( this s ) : System.Boolean
ToByte ( this s ) : Byte
ToDateTime ( this s ) : System.DateTime
ToInt16 ( this s ) : Int16
ToInt32 ( this s ) : Int32
ToInt64 ( this s ) : System.Int64
ToUInt32 ( this s ) : UInt32
UrlEncode ( this s ) : string

Method Details

AppendLine() public static method

Appends the format line.
public static AppendLine ( this sb, string str ) : void
sb this The sb.
str string The STR.
return void

HtmlEncode() public static method

public static HtmlEncode ( this s ) : string
s this
return string

IsNotPopulated() public static method

public static IsNotPopulated ( this s ) : bool
s this
return bool

IsPopulated() public static method

public static IsPopulated ( this s ) : bool
s this
return bool

JoinToString() public static method

Joins the specified items in the enumerable arrat
public static JoinToString ( this items, string separator ) : string
items this An enumerable listing of string items.
separator string The separator to place between each.
return string

Summarize() public static method

public static Summarize ( this str, int charLimit = null ) : string
str this
charLimit int
return string

ToBoolean() public static method

public static ToBoolean ( this s ) : System.Boolean
s this
return System.Boolean

ToByte() public static method

public static ToByte ( this s ) : Byte
s this
return Byte

ToDateTime() public static method

public static ToDateTime ( this s ) : System.DateTime
s this
return System.DateTime

ToInt16() public static method

public static ToInt16 ( this s ) : Int16
s this
return System.Int16

ToInt32() public static method

public static ToInt32 ( this s ) : Int32
s this
return System.Int32

ToInt64() public static method

public static ToInt64 ( this s ) : System.Int64
s this
return System.Int64

ToUInt32() public static method

public static ToUInt32 ( this s ) : UInt32
s this
return System.UInt32

UrlEncode() public static method

public static UrlEncode ( this s ) : string
s this
return string