diff --git a/X10D/StringExtensions.cs b/X10D/StringExtensions.cs index 512c007..f795f4e 100644 --- a/X10D/StringExtensions.cs +++ b/X10D/StringExtensions.cs @@ -134,8 +134,9 @@ /// Converts a to a . /// /// The to convert. + /// Whether or not to use this extension method. /// Returns a . - public static string ToString(this SecureString str) => - new NetworkCredential(String.Empty, str).Password; + public static string ToString(this SecureString str, bool extension) => + extension ? (new NetworkCredential(String.Empty, str).Password) : str.ToString(); } }