EDN Admin
Well-known member
Hello.<br/>
Im trying to convert the properties of an object model generated with xsd.exe in c# to c++.<br/>
I dont must have serialize or deserialize features, i would create only a simple object model in c++ that reflect the c# obect model.<br/>
I use reflection.<br/>
my problem is this:<br/>
<br/>
<br/>
<br/>
how i can create a simil class in c++?<br/>
Whats mean this property ?<br/>
<br/>
why the type is object and not a complex/simple type? <br/>
<br/>
thanks.
View the full article
Im trying to convert the properties of an object model generated with xsd.exe in c# to c++.<br/>
I dont must have serialize or deserialize features, i would create only a simple object model in c++ that reflect the c# obect model.<br/>
I use reflection.<br/>
my problem is this:<br/>
<br/>
Code:
<br/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]<br/>
[System.SerializableAttribute()]<br/>
[System.Diagnostics.DebuggerStepThroughAttribute()]<br/>
[System.ComponentModel.DesignerCategoryAttribute("code")]<br/>
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.iai-tech.org/ifcXML/IFC2x3/FINAL")]<br/>
public partial class IfcFillAreaStyleHatchingStartOfNextHatchLine<br/>
{<br/>
private object itemField;<br/>
<br/>
/// <remarks/><br/>
[System.Xml.Serialization.XmlElementAttribute("IfcOneDirectionRepeatFactor", typeof(IfcOneDirectionRepeatFactor), IsNullable = true)]<br/>
[System.Xml.Serialization.XmlElementAttribute("IfcPositiveLengthMeasure", typeof(IfcPositiveLengthMeasure1), IsNullable = true)]<br/>
[System.Xml.Serialization.XmlElementAttribute("IfcTwoDirectionRepeatFactor", typeof(IfcTwoDirectionRepeatFactor), IsNullable = true)]<br/>
public object Item<br/>
{<br/>
get<br/>
{<br/>
return this.itemField;<br/>
}<br/>
set<br/>
{<br/>
this.itemField = value;<br/>
}<br/>
}<br/>
}<br/>
<br/>
how i can create a simil class in c++?<br/>
Whats mean this property ?<br/>
Code:
<br/>
[System.Xml.Serialization.XmlElementAttribute("IfcOneDirectionRepeatFactor", typeof(IfcOneDirectionRepeatFactor), IsNullable = true)]<br/>
[System.Xml.Serialization.XmlElementAttribute("IfcPositiveLengthMeasure", typeof(IfcPositiveLengthMeasure1), IsNullable = true)]<br/>
[System.Xml.Serialization.XmlElementAttribute("IfcTwoDirectionRepeatFactor", typeof(IfcTwoDirectionRepeatFactor), IsNullable = true)]<br/>
public object Item<br/>
{<br/>
get<br/>
{<br/>
return this.itemField;<br/>
}<br/>
set<br/>
{<br/>
this.itemField = value;<br/>
}<br/>
}<br/>
why the type is object and not a complex/simple type? <br/>
<br/>
thanks.
View the full article