コード例 #1
0
 internal PropertyOrField([NotNull] FieldInfo field, [CanBeNull] MonoBehaviourPropertyAttribute attribute)
 {
     Field     = field;
     Property  = null;
     IsValid   = true;
     Attribute = attribute;
 }
コード例 #2
0
 internal PropertyOrField([NotNull] PropertyInfo property, [CanBeNull] MonoBehaviourPropertyAttribute attribute)
 {
     Field     = null;
     Property  = property;
     IsValid   = true;
     Attribute = attribute;
 }
コード例 #3
0
        public MemberSetter([NotNull] FieldInfo field, [CanBeNull] MonoBehaviourPropertyAttribute attribute)
        {
            _property = null;
            _field    = field;
            Attribute = attribute;
            IsValid   = true;

            _valueSetter = CompileFieldSetter(field);
        }
コード例 #4
0
        public MemberSetter([NotNull] PropertyInfo property, [CanBeNull] MonoBehaviourPropertyAttribute attribute)
        {
            _property = property;
            _field    = null;
            Attribute = attribute;
            IsValid   = true;

            _valueSetter = CompilePropertySetter(property);
        }