序号 | 方法名称 & 描述 |
1 | public static int Compare( string strA, string strB ) |
2 | public static int Compare( string strA, string strB, bool ignoreCase ) |
3 | public static string Concat( string str0, string str1 ) |
4 | public static string Concat( string str0, string str1, string str2 ) |
5 | public static string Concat( string str0, string str1, string str2, string str3 ) |
6 | public bool Contains( string value ) |
7 | public static string Copy( string str ) |
8 | public void CopyTo( int sourceIndex, char[] destination, int destinationIndex, int count ) |
9 | public bool EndsWith( string value ) |
10 | public bool Equals( string value ) |
11 | public static bool Equals( string a, string b ) |
12 | public static string Format( string format, Object arg0 ) |
13 | public int IndexOf( char value ) |
14 | public int IndexOf( string value ) |
15 | public int IndexOf( char value, int startIndex ) |
16 | public int IndexOf( string value, int startIndex ) |
17 | public int IndexOfAny( char[] anyOf ) |
18 | public int IndexOfAny( char[] anyOf, int startIndex ) |
19 | public string Insert( int startIndex, string value ) |
20 | public static bool IsNullOrEmpty( string value ) |
21 | public static string Join( string separator, string[] value ) |
22 | public static string Join( string separator, string[] value, int startIndex, int count ) |
23 | public int LastIndexOf( char value ) |
24 | public int LastIndexOf( string value ) |
25 | public string Remove( int startIndex ) |
26 | public string Remove( int startIndex, int count ) |
27 | public string Replace( char oldChar, char newChar ) |
28 | public string Replace( string oldValue, string newValue ) |
29 | public string[] Split( params char[] separator ) |
30 | public string[] Split( char[] separator, int count ) |
31 | public bool StartsWith( string value ) |
32 | public char[] ToCharArray() |
33 | public char[] ToCharArray( int startIndex, int length ) |
34 | public string ToLower() |
35 | public string ToUpper() |
36 | public string Trim() |
C#中String类型的常用方法
最新推荐文章于 2025-02-25 19:30:00 发布