Ejemplo n.º 1
0
        /// <inheritdoc />
        protected override bool ValidateMember(MemberInfo member)
        {
            bool valid = base.ValidateMember(member);

            valid &= UnityMemberDrawerHelper.ValidateMethod(filter, (MethodInfo)member);

            return(valid);
        }
Ejemplo n.º 2
0
        /// <inheritdoc />
        protected override bool ValidateMember(MemberInfo member)
        {
            bool valid = base.ValidateMember(member);

            FieldInfo    field    = member as FieldInfo;
            PropertyInfo property = member as PropertyInfo;

            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);
            }

            return(valid);
        }
Ejemplo n.º 3
0
 /// <inheritdoc />
 protected override UnityGetter BuildValue(string component, string name)
 {
     return(new UnityGetter(component, name, UnityMemberDrawerHelper.DeserializeParameterTypes(parameterTypesProperty)));
 }
Ejemplo n.º 4
0
        /// <inheritdoc />
        protected override void SetValue(UnityGetter value)
        {
            base.SetValue(value);

            UnityMemberDrawerHelper.SerializeParameterTypes(parameterTypesProperty, value != null ? value.parameterTypes : null);
        }