Class StringExtensions
- Namespace
- BSGameLib.Core
- Assembly
- BSGameLib.Core.dll
Extensions for strings and SecureString.
public static class StringExtensions
- Inheritance
-
StringExtensions
- Inherited Members
Methods
LimitAndPadRight(string, int, char)
Returns text cut to length characters, or padded on
the right with fillerChar to that length. A null text is treated as
empty.
public static string LimitAndPadRight(this string text, int length, char fillerChar)
Parameters
Returns
ToInsecureString(SecureString)
Returns the plain text of input.
public static string ToInsecureString(this SecureString input)
Parameters
inputSecureString
Returns
Remarks
The text is held in managed memory until it is collected, so only use it where a plain string is unavoidable.
ToSecureString(string)
Returns a read-only SecureString holding the characters of
input.
public static SecureString ToSecureString(this string input)
Parameters
inputstring