Exemplo n.º 1
0
 private void Init()
 {
     IsStatic        = SharpField.IsStatic;
     ZNames          = ZDescriptionHelper.GetZNames(MarkField);
     CanRead         = true;
     CanWrite        = false;
     AccessAttribute = AccessAttributeEnum.Public;
 }
Exemplo n.º 2
0
 private void Init()
 {
     //MemberZType = ZTypeCache.GetBySharpType(SharpField.FieldType);
     IsStatic        = SharpField.IsStatic;
     ZNames          = ZDescriptionHelper.GetZNames(MarkField);
     CanRead         = true;
     CanWrite        = !SharpField.IsInitOnly;
     AccessAttribute = ReflectionUtil.GetAccessAttributeEnum(SharpField);
 }
Exemplo n.º 3
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);
        }