Exemplo n.º 1
0
        public static PhysicalCharacteristicsInfo CreatePhysicalCharacteristicsInfo(PhysicalCharacteristicType physicalCharacteristicType)
        {
            if (physicalCharacteristicType == PhysicalCharacteristicType.Other)
            {
                throw new InvalidOperationException("Use CreateOtherPhysicalCharacteristicsInfo factory method to create a physical characteristic info of type 'Other'");
            }

            return(new PhysicalCharacteristicsInfo(physicalCharacteristicType));
        }
        public static PhysicalCharacteristicsInfo CreatePhysicalCharacteristicsInfo(PhysicalCharacteristicType physicalCharacteristicType)
        {
            if (physicalCharacteristicType == PhysicalCharacteristicType.Other)
            {
                throw new InvalidOperationException("Use CreateOtherPhysicalCharacteristicsInfo factory method to create a physical characteristic info of type 'Other'");
            }

            return new PhysicalCharacteristicsInfo(physicalCharacteristicType);
        }
Exemplo n.º 3
0
 private PhysicalCharacteristicsInfo(PhysicalCharacteristicType physicalCharacteristic)
 {
     PhysicalCharacteristic = physicalCharacteristic;
 }
 private PhysicalCharacteristicsInfo(PhysicalCharacteristicType physicalCharacteristic)
 {
     PhysicalCharacteristic = physicalCharacteristic;
 }