<Member Name="Trim" />
<Member Name="Trim(System.Char[])" />
<Member Name="TrimEnd(System.Char[])" />
+ <Member Name="TrimEnd" />
<Member Name="TrimStart(System.Char[])" />
+ <Member Name="TrimStart" />
<Member MemberType="Property" Name="Chars(System.Int32)" />
<Member MemberType="Property" Name="Length" />
<Member Status="ImplRoot" Name="System.Collections.IEnumerable.GetEnumerator" />
public System.String Trim() { throw null; }
public System.String Trim(params char[] trimChars) { throw null; }
public System.String TrimEnd(params char[] trimChars) { throw null; }
+ public System.String TrimEnd() { throw null; }
public System.String TrimStart(params char[] trimChars) { throw null; }
+ public System.String TrimStart() { throw null; }
}
[System.Runtime.InteropServices.ComVisibleAttribute(true)]
public abstract partial class StringComparer : System.Collections.Generic.IComparer<string>, System.Collections.Generic.IEqualityComparer<string>, System.Collections.IComparer, System.Collections.IEqualityComparer
}
return TrimHelper(trimChars,TrimHead);
}
-
-
+
+ // Removes a set of characters from the beginning of this string.
+ public String TrimStart() => TrimHelper(TrimHead);
+
+
// Removes a set of characters from the end of this string.
public String TrimEnd(params char[] trimChars) {
if (null==trimChars || trimChars.Length == 0) {
}
return TrimHelper(trimChars,TrimTail);
}
+
+ // Removes a set of characters from the end of this string.
+ public String TrimEnd()=> TrimHelper(TrimTail);
+
// Trims the whitespace from both ends of the string. Whitespace is defined by
// Char.IsWhiteSpace.