Esempio n. 1
0
 /// <summary>
 /// Returns <c>true</c> if all members of given <see cref="type"/> should be considered secret settings, or <c>false</c> otherwise.
 /// </summary>
 public static bool IsSecret([NotNull] Type type)
 => IsInSecureScope || SecretAttributes.Any(attr => AttributeHelper.Has(type, attr));
Esempio n. 2
0
 /// <summary>
 /// Returns <c>true</c> if given <see cref="member"/> should be considered a secret setting, or <c>false</c> otherwise.
 /// </summary>
 public static bool IsSecret([NotNull] MemberInfo member)
 => IsInSecureScope || SecretAttributes.Any(attr => AttributeHelper.Has(member, attr));