Пример #1
0
        private void Init()
        {
            if (MarkProperty.GetGetMethod() != null)
            {
                _IsStatic = MarkProperty.GetGetMethod().IsStatic;
            }
            else
            {
                _IsStatic = MarkProperty.GetSetMethod().IsStatic;
            }

            _CanRead  = SharpProperty.GetGetMethod() != null;
            _CanWrite = SharpProperty.GetSetMethod() != null;

            _AccessAttribute = ReflectionUtil.GetAccessAttributeEnum(SharpProperty);
        }
Пример #2
0
        private void Init()
        {
            //MemberZType = ZTypeCache.GetBySharpType(MarkProperty.PropertyType);

            if (MarkProperty.GetGetMethod() != null)
            {
                IsStatic = MarkProperty.GetGetMethod().IsStatic;
            }
            else
            {
                IsStatic = MarkProperty.GetSetMethod().IsStatic;
            }

            ZNames   = ZDescriptionHelper.GetZNames(MarkProperty);
            CanRead  = SharpProperty.GetGetMethod() != null;
            CanWrite = SharpProperty.GetSetMethod() != null;

            AccessAttribute = ReflectionUtil.GetAccessAttributeEnum(SharpProperty);
        }
Пример #3
0
 set => SetValue(MarkProperty, value);