示例#1
0
 private static bool CheckReadonlyFilter(FieldInfo field, ResetOptions resetOptions)
 {
     return(!field.IsInitOnly || resetOptions.IsSet(ResetOptions.IncludeReadOnlyMembers));
 }
示例#2
0
 private static bool CheckNoAutoCleanFilter(MemberInfo member, ResetOptions resetOptions)
 {
     return(resetOptions.IsSet(ResetOptions.OverruleNoAutoClean) ||
            member.GetCustomAttributes(typeof(NoAutoCleanAttribute), true).Length == 0);
 }