16 references to IsComObject
Microsoft.Build.Tasks.CodeAnalysis (1)
RCWForCurrentContext.cs (1)
116Marshal.IsComObject(_rcwForCurrentCtx))
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\BinderHelper.cs (1)
181return obj != null && Marshal.IsComObject(obj);
Microsoft.VisualStudio.LanguageServices (4)
Interop\ComHandle.cs (3)
34else if (Marshal.IsComObject(handleOrManagedObject)) 58if (handle != null && !Marshal.IsComObject(handle)) 75Debug.Assert(_handle == null || Marshal.IsComObject(_handle), "Invariant broken!");
Snippets\SnippetExpansionClient.cs (1)
362if (xmlNode != null && Marshal.IsComObject(xmlNode))
PresentationFramework (2)
MS\Internal\Controls\ConnectionPointCookie.cs (1)
47else if (sink == null || !eventInterface.IsInstanceOfType(sink) && !Marshal.IsComObject(sink))
System\Windows\Standard\Utilities.cs (1)
213Assert.IsTrue(Marshal.IsComObject(t));
System.ComponentModel.TypeConverter (1)
System\ComponentModel\ReferenceConverter.cs (1)
101if (!Marshal.IsComObject(value) && value is IComponent comp)
System.Runtime.InteropServices (4)
System\Runtime\InteropServices\ComAwareEventInfo.cs (2)
32if (Marshal.IsComObject(target)) 50if (Marshal.IsComObject(target))
System\Runtime\InteropServices\Marshalling\ComImportInteropInterfaceDetailsStrategy.cs (1)
194/// <remarks>The returned object must be an object such that a call to <see cref="Marshal.IsComObject(object)"/> would return true.</remarks>
System\Runtime\InteropServices\Marshalling\ComObject.cs (1)
47Debug.Assert(Marshal.IsComObject(_runtimeCallableWrapper));
System.Windows.Forms (2)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
4079if (obj is not null && !Marshal.IsComObject(obj))
System\Windows\Forms\Design\EventsTab.cs (1)
28public override bool CanExtend(object? extendee) => extendee is null || !Marshal.IsComObject(extendee);
UIAutomationClient (1)
MS\Internal\Automation\UiaCoreApi.cs (1)
1126&& !Marshal.IsComObject(arr[1])