Exemplo n.º 1
0
 public static RxEventInfo Build(Compiler context, RxTypeInfo rxTypeInfo, EventInfo eventInfo, XElement eventMemberElement, string xid)
 {
     RxEventInfo instance = new RxEventInfo();
     instance.id = xid;
     instance.caption = instance.memberName = eventInfo.Name;
     instance.SetUri(rxTypeInfo, string.Concat("#", eventInfo.Name));
     instance.BuildComments(context, eventMemberElement);
     instance.memberInfo = eventInfo;
     //instance.BuildAttributesElement(memberElement, memberInfo.GetCustomAttributes(false));
     return instance;
 }
 public static RxPropertyInfo Build(Compiler context, RxTypeInfo typeInfo, PropertyInfo propInfo, XElement fieldMemberElement, string xid)
 {
     id = xid;
     caption = memberName = propInfo.Name;
     BuildComments(context, fieldMemberElement);
     memberInfo = propInfo;
     propertyTypeRef = propInfo.PropertyType.ToXMemberRef();
     memberInfo = propInfo;
     canRead = propInfo.CanRead;
     canWrite = propInfo.CanWrite;
     //BuildAttributesElement(memberElement, memberInfo.GetCustomAttributes(false));
 }
        public void Build(Compiler context, RxTypeInfo typeInfo, MethodInfo methodInfo, XElement methodMemberElement, string xid)
        {
            id = xid;
            caption = memberName = methodInfo.Name;
            SetUri(typeInfo, string.Concat("#", methodInfo.Name));
            BuildComments(context, methodMemberElement);
            isPublic = methodInfo.IsPublic;
            isStatic = methodInfo.IsStatic;

            memberInfo = methodInfo;
            //BuildAttributesElement(memberElement, memberInfo.GetCustomAttributes(false));
        }
Exemplo n.º 4
0
        public static RxFieldInfo Build(Compiler context, RxTypeInfo typeInfo, FieldInfo fieldInfo, XElement fieldMemberElement, string xid)
        {
            RxFieldInfo instance = new RxFieldInfo();

            instance.id = xid;
            instance.caption = instance.memberName = fieldInfo.Name;
            instance.SetUri(typeInfo, string.Concat("#", fieldInfo.Name));
            instance.BuildComments(context, fieldMemberElement);
            instance.isPublic = fieldInfo.IsPublic;
            instance.isStatic = fieldInfo.IsStatic;
            instance.isLiteral = fieldInfo.IsLiteral;
            if (fieldInfo.IsLiteral)
            {
                instance.literalValue = fieldInfo.GetRawConstantValue().ToString();
            }
            instance.memberInfo = fieldInfo;
            instance.fieldTypeRef = fieldInfo.FieldType.ToXMemberRef();
            //BuildAttributesElement(memberElement, memberInfo.GetCustomAttributes(false));
            return instance;
        }