12 [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
17 MemberName = nullableMemberName;
18 ShowIfConditionMet = showIfConditionMet;
22 public override bool ShouldShow(
object target)
24 bool isNullable =
true;
26 isNullable = IsNullable(target, MemberName);
29 throw new InvalidCastException(
"Member " + MemberName +
" is not nullable.");
32 bool conditionMet = memberValue == null;
33 return ShowIfConditionMet ? conditionMet : !conditionMet;