public static SecureString GetSecureValue(this SettingsOverridesTypeSectionParameter parameter, string storeName) { if (parameter.IsEncrypted) { return(FabricValidatorUtility.DecryptValue(storeName, parameter.Value)); } else { if (string.IsNullOrEmpty(parameter.Value)) { return(null); } return(FabricValidatorUtility.CharArrayToSecureString(parameter.Value.ToCharArray())); } }
public SecureString GetSecureValue(string storeName) { if (this.IsEncrypted) { return(FabricValidatorUtility.DecryptValue(storeName, this.Value)); } else { if (string.IsNullOrEmpty(this.Value)) { return(null); } return(FabricValidatorUtility.CharArrayToSecureString(this.Value.ToCharArray())); } }