C# 클래스 Extensions.StringExtensions

Extensions for String Class
파일 보기 프로젝트 열기: h07r0d/Netduino-Aquarium-Controller

공개 메소드들

메소드 설명
Contains ( this _src, char _search ) : bool

Does the string contain the character being searched for?

Contains ( this _src, string _search ) : bool

Does the string contain the text being searched for?

EasySplit ( this s, string seperator ) : string[]
PadLeft ( this _src, int _count, char _pad ) : string

Pad the left side of the string with a given number of a specific character

Replace ( this content, string find, string replace ) : string

Replace all occurances of the 'find' string with the 'replace' string.

메소드 상세

Contains() 공개 정적인 메소드

Does the string contain the character being searched for?
public static Contains ( this _src, char _search ) : bool
_src this string to search
_search char character to find
리턴 bool

Contains() 공개 정적인 메소드

Does the string contain the text being searched for?
public static Contains ( this _src, string _search ) : bool
_src this string to search for text in
_search string text to find
리턴 bool

EasySplit() 공개 정적인 메소드

public static EasySplit ( this s, string seperator ) : string[]
s this
seperator string
리턴 string[]

PadLeft() 공개 정적인 메소드

Pad the left side of the string with a given number of a specific character
public static PadLeft ( this _src, int _count, char _pad ) : string
_src this string to pad
_count int number of characters to add
_pad char character to use as padding
리턴 string

Replace() 공개 정적인 메소드

Replace all occurances of the 'find' string with the 'replace' string.
public static Replace ( this content, string find, string replace ) : string
content this Original string to operate on
find string String to find within the original string
replace string String to be used in place of the find string
리턴 string