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 IfcDateAndTime root = (IfcDateAndTime)obj; return(this == root); }
public void IfcParse(int propIndex, IPropertyValue value) { switch (propIndex) { case 0: _relatingMonetaryUnit = (IfcMonetaryUnit) value.EntityVal; break; case 1: _relatedMonetaryUnit = (IfcMonetaryUnit) value.EntityVal; break; case 2: _exchangeRate = value.RealVal; break; case 3: _rateDateTime = (IfcDateAndTime) value.EntityVal; break; case 4: _rateSource = (IfcLibraryInformation) value.EntityVal; break; default: this.HandleUnexpectedAttribute(propIndex, value); break; } }
public void IfcParse(int propIndex, IPropertyValue value) { switch (propIndex) { case 0: _documentId = value.StringVal; break; case 1: _name = value.StringVal; break; case 2: _description = value.StringVal; break; case 3: if (_documentReferences == null) _documentReferences = new XbimSet<IfcDocumentReference>(this); _documentReferences.Add_Reversible((IfcDocumentReference) value.EntityVal); break; case 4: _purpose = value.StringVal; break; case 5: _intendedUse = value.StringVal; break; case 6: _scope = value.StringVal; break; case 7: _revision = value.StringVal; break; case 8: _documentOwner = (IfcActorSelect) value.EntityVal; break; case 9: if (_editors == null) _editors = new XbimSet<IfcActorSelect>(this); _editors.Add_Reversible((IfcActorSelect) value.EntityVal); break; case 10: _creationTime = (IfcDateAndTime) value.EntityVal; break; case 11: _lastRevisionTime = (IfcDateAndTime) value.EntityVal; break; case 12: _electronicFormat = (IfcDocumentElectronicFormat) value.EntityVal; break; case 13: _validFrom = (IfcCalendarDate) value.EntityVal; break; case 14: _validUntil = (IfcCalendarDate) value.EntityVal; break; case 15: _confidentiality = (IfcDocumentConfidentialityEnum) Enum.Parse(typeof (IfcDocumentConfidentialityEnum), value.EnumVal, true); break; case 16: _status = (IfcDocumentStatusEnum) Enum.Parse(typeof (IfcDocumentStatusEnum), value.EnumVal, true); break; default: this.HandleUnexpectedAttribute(propIndex, value); break; } }