public override bool Equals(object obj) { // Check for null if (obj == null) { return(false); } // Check for type if (this.GetType() != obj.GetType()) { return(false); } // Cast as IfcRoot IfcConnectionGeometry root = (IfcConnectionGeometry)obj; return(this == root); }
public override void IfcParse(int propIndex, IPropertyValue value) { switch (propIndex) { case 0: case 1: case 2: case 3: case 4: case 5: case 6: case 7: case 8: case 9: base.IfcParse(propIndex, value); break; case 10: _connectionConstraint = (IfcConnectionGeometry) value.EntityVal; break; default: this.HandleUnexpectedAttribute(propIndex, value); break; } }
public override void IfcParse(int propIndex, IPropertyValue value) { switch (propIndex) { case 0: case 1: case 2: case 3: base.IfcParse(propIndex, value); break; case 4: _connectionGeometry = (IfcConnectionGeometry) value.EntityVal; break; case 5: _relatingElement = (IfcElement) value.EntityVal; break; case 6: _relatedElement = (IfcElement) value.EntityVal; break; default: this.HandleUnexpectedAttribute(propIndex, value); break; } }
public override void IfcParse(int propIndex, IPropertyValue value) { switch (propIndex) { case 0: case 1: case 2: case 3: base.IfcParse(propIndex, value); break; case 4: _relatingSpace = (IfcSpace) value.EntityVal; break; case 5: _relatedBuildingElement = (IfcElement) value.EntityVal; break; case 6: _connectionGeometry = (IfcConnectionGeometry) value.EntityVal; break; case 7: _physicalOrVirtualBoundary = (IfcPhysicalOrVirtualEnum) Enum.Parse(typeof (IfcPhysicalOrVirtualEnum), value.EnumVal, true); break; case 8: _internalOrExternalBoundary = (IfcInternalOrExternalEnum) Enum.Parse(typeof (IfcInternalOrExternalEnum), value.EnumVal, true); break; default: this.HandleUnexpectedAttribute(propIndex, value); break; } }