public static string GetPlainString(NSM.ResourceExtensionParameterValue item) { string str = null; bool isPublic = string.Equals( item.Type, PublicTypeStr, StringComparison.OrdinalIgnoreCase); if (item != null && isPublic) { str = item.Value; } return str; }
public static SecureString GetSecureString(NSM.ResourceExtensionParameterValue item) { SecureString secureStr = null; bool isPrivate = string.Equals( item.Type, PrivateTypeStr, StringComparison.OrdinalIgnoreCase); if (item != null && isPrivate) { secureStr = GetSecureString(item.Value); } return secureStr; }