/// <inheritdoc /> protected override bool ValidateMember(MemberInfo member) { bool valid = base.ValidateMember(member); valid &= UnityMemberDrawerHelper.ValidateMethod(filter, (MethodInfo)member); return(valid); }
/// <inheritdoc /> protected override bool ValidateMember(MemberInfo member) { bool valid = base.ValidateMember(member); FieldInfo field = member as FieldInfo; PropertyInfo property = member as PropertyInfo; MethodInfo method = member as MethodInfo; if (field != null) // Member is a field { valid &= UnityMemberDrawerHelper.ValidateField(filter, field); } else if (property != null) // Member is a property { valid &= UnityMemberDrawerHelper.ValidateProperty(filter, property); } else if (method != null) // Member is a method { valid &= UnityMemberDrawerHelper.ValidateMethod(filter, method); } return(valid); }