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