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); }
private PhysicalCharacteristicsInfo(PhysicalCharacteristicType physicalCharacteristic) { PhysicalCharacteristic = physicalCharacteristic; }