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); }
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); }
set => SetValue(MarkProperty, value);