8 references to CoreAppContextSwitches
System.Private.Windows.Core (6)
System\Private\Windows\Ole\BinaryFormatUtilities.cs (2)
61if (!CoreAppContextSwitches.ClipboardDragDropEnableUnsafeBinaryFormatterSerialization) 204if (!CoreAppContextSwitches.ClipboardDragDropEnableUnsafeBinaryFormatterSerialization)
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (3)
386when (!CoreAppContextSwitches.ClipboardThrowExceptionsForGetAPIs && !e.IsCriticalException()) 400if (CoreAppContextSwitches.ClipboardThrowExceptionsForGetAPIs) 467when (!CoreAppContextSwitches.ClipboardThrowExceptionsForGetAPIs && (!request.TypedRequest || ex is not NotSupportedException))
System\Private\Windows\Ole\TypeBinder.cs (1)
70Debug.Assert(CoreAppContextSwitches.ClipboardDragDropEnableUnsafeBinaryFormatterSerialization);
System.Windows.Forms (2)
System\Windows\Forms\OLE\DropTarget.cs (1)
200bool enableSyncOverAsync = !CoreAppContextSwitches.DragDropDisableSyncOverAsync;
System\Windows\Forms\OLE\WinFormsOleServices.cs (1)
135if (CoreAppContextSwitches.ClipboardThrowExceptionsForGetAPIs)