EDN Admin
Well-known member
hello.<br/>
I wish transform the classes of an .xsd created with xsd.exe in c# in c++ classes via .net reflection .
<br/>
My problem is to recognize the primitive data(integers , doubles ecc... )from the c# classes because in c++ i use it differently from complex types.<br/>
<br/>
1)How i can recognize a primitive data in c# classes ?<br/>
I see that in my xsd there are some data like "ex:double-wrapper" that is defined in the xsd as :<br/>
<br/>
<br/>
i see that in the wrapper there are always a primitive data , like:<br/>
base="xs:double" , but can be exist a hierarchy.<br/>
Is possible with reflection extract the base type information ?<br/>
but I can have 2/3 levels of derivation from the double or integers, for example the wrapper inherit from double (one level of derivation),and im not sure about the whole xml<br/>
anoter problem is that these wrappers not inherit from a primitive type , but incapsulate it.<br/>
thanks.<br/>
View the full article
I wish transform the classes of an .xsd created with xsd.exe in c# in c++ classes via .net reflection .
<br/>
My problem is to recognize the primitive data(integers , doubles ecc... )from the c# classes because in c++ i use it differently from complex types.<br/>
<br/>
1)How i can recognize a primitive data in c# classes ?<br/>
I see that in my xsd there are some data like "ex:double-wrapper" that is defined in the xsd as :<br/>
Code:
<br/>
<xs:element name="double-wrapper" nillable="true <br/>
<xs:complexType><br/>
<xs:simpleContent><br/>
<xs:extension base="xs:double <br/>
<xs:attributeGroup ref="ex:instanceAttributes"/><br/>
</xs:extension><br/>
</xs:simpleContent><br/>
</xs:complexType><br/>
</xs:element><br/>
<br/>
i see that in the wrapper there are always a primitive data , like:<br/>
base="xs:double" , but can be exist a hierarchy.<br/>
Is possible with reflection extract the base type information ?<br/>
but I can have 2/3 levels of derivation from the double or integers, for example the wrapper inherit from double (one level of derivation),and im not sure about the whole xml<br/>
anoter problem is that these wrappers not inherit from a primitive type , but incapsulate it.<br/>
thanks.<br/>
View the full article