C# 클래스 SharpMod.Helper.HelperExtensions

These are some extensions which let the code look nice. These functions are often found in other scripting programming languages like ruby
파일 보기 프로젝트 열기: txdv/sharpmod

공개 메소드들

메소드 설명
Append ( this stringBuilder, string cmd ) : StringBuilder
Contains ( this text, char c ) : bool
Escape ( this c ) : string
First ( this array ) : string
GetInnerText ( this doc, string tag ) : string
GetXmlElement ( this xmldoc, string name ) : XmlElement
IsMessage ( this type ) : bool
IsStruct ( this type ) : bool
Join ( this stringArray, char c ) : string
Join ( this stringArray, int startIndex, char c ) : string
Join ( this stringArray, int startIndex, string delimeter ) : string
Join ( this stringArray, string delimeter ) : string
Last ( this array ) : string

Returns the last element in a string array

Shift ( this text, char c ) : string
Shift ( this arr ) : string[]
Split ( this text, char c ) : string[]
ToFloat ( this timespan ) : float
ToTimeSpan ( this time ) : System.TimeSpan

메소드 상세

Append() 공개 정적인 메소드

public static Append ( this stringBuilder, string cmd ) : StringBuilder
stringBuilder this
cmd string
리턴 StringBuilder

Contains() 공개 정적인 메소드

public static Contains ( this text, char c ) : bool
text this
c char
리턴 bool

Escape() 공개 정적인 메소드

public static Escape ( this c ) : string
c this
리턴 string

First() 공개 정적인 메소드

public static First ( this array ) : string
array this
리턴 string

GetInnerText() 공개 정적인 메소드

public static GetInnerText ( this doc, string tag ) : string
doc this
tag string
리턴 string

GetXmlElement() 공개 정적인 메소드

public static GetXmlElement ( this xmldoc, string name ) : XmlElement
xmldoc this
name string
리턴 System.Xml.XmlElement

IsMessage() 공개 정적인 메소드

public static IsMessage ( this type ) : bool
type this
리턴 bool

IsStruct() 공개 정적인 메소드

public static IsStruct ( this type ) : bool
type this
리턴 bool

Join() 공개 정적인 메소드

public static Join ( this stringArray, char c ) : string
stringArray this
c char
리턴 string

Join() 공개 정적인 메소드

public static Join ( this stringArray, int startIndex, char c ) : string
stringArray this
startIndex int
c char
리턴 string

Join() 공개 정적인 메소드

public static Join ( this stringArray, int startIndex, string delimeter ) : string
stringArray this
startIndex int
delimeter string
리턴 string

Join() 공개 정적인 메소드

public static Join ( this stringArray, string delimeter ) : string
stringArray this
delimeter string
리턴 string

Last() 공개 정적인 메소드

Returns the last element in a string array
public static Last ( this array ) : string
array this /// A string array ///
리턴 string

Shift() 공개 정적인 메소드

public static Shift ( this text, char c ) : string
text this
c char
리턴 string

Shift() 공개 정적인 메소드

public static Shift ( this arr ) : string[]
arr this
리턴 string[]

Split() 공개 정적인 메소드

public static Split ( this text, char c ) : string[]
text this
c char
리턴 string[]

ToFloat() 공개 정적인 메소드

public static ToFloat ( this timespan ) : float
timespan this
리턴 float

ToTimeSpan() 공개 정적인 메소드

public static ToTimeSpan ( this time ) : System.TimeSpan
time this
리턴 System.TimeSpan