private void ValidateInteropOption(EnterpriseServicesInteropOption interopOption) { if (interopOption < EnterpriseServicesInteropOption.None || interopOption > EnterpriseServicesInteropOption.Full) { throw new ArgumentOutOfRangeException(nameof(interopOption)); } }