Exemple #1
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                _currency = (IfcCurrencyEnum)System.Enum.Parse(typeof(IfcCurrencyEnum), value.EnumVal, true);
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
        public void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
                _currency = (IfcCurrencyEnum)Enum.Parse(typeof(IfcCurrencyEnum), value.EnumVal, true);
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
 public void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
             _currency = (IfcCurrencyEnum) Enum.Parse(typeof (IfcCurrencyEnum), value.EnumVal, true);
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
Exemple #4
0
 public IfcMonetaryUnit(IfcCurrencyEnum __Currency)
 {
     this._Currency = __Currency;
 }