Beispiel #1
0
        public VPropertyInfo(VM vm, PropertyDefinition property, VType declaringType)
        {
            this.vm       = vm;
            this.property = property;

            _Name          = property.Name;
            _DeclaringType = declaringType;
            _CanRead       = property.GetMethod != null;
            _CanWrite      = property.SetMethod != null;

            if (_CanRead)
            {
                getMethod = declaringType.GetMethod(property.GetMethod.Name);
            }
            if (_CanWrite)
            {
                setMethod = declaringType.GetMethod(property.SetMethod.Name);
            }

            BuildAttributes();
        }