Пример #1
0
 void ThrowIfNotSupported(Type type)
 {
     if (TypeHelper.AreTypesCompatible(type, SendReceiveExtensionType))
     {
         throw FxTrace.Exception.AsError(new InvalidOperationException(SR.ExtensionTypeNotSupported(SendReceiveExtensionType.FullName)));
     }
 }