Skip to content

Commit 7be62f6

Browse files
Apply suggestions from code review
Co-authored-by: Copilot <[email protected]>
1 parent 7facd01 commit 7be62f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

xml/System.Reflection/IReflect.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@
5555
<format type="text/markdown"><![CDATA[
5656
5757
## Remarks
58-
Since .NET 10, no COM object can be successfully cast to this interface. It is recommended to project and define a managed definition of `IDispatch` or `IDispatchEx` if access is needed.
58+
Since .NET 10, no COM object casts successfully to this interface. It is recommended to project and define a managed definition of `IDispatch` or `IDispatchEx` if access is needed.
5959
60-
From .NET 5 until .NET 9, COM objects that implement `IDispatchEx` can be cast to this interface, but all methods will throw an exception.
60+
From .NET 5 until .NET 9, COM objects that implement `IDispatchEx` can be cast to this interface, but all methods throw `TypeLoadException`.
6161
6262
On .NET Framework, the <xref:System.Reflection.IReflect> interface is used to interoperate with the [IDispatch interface](/windows/win32/api/oaidl/nn-oaidl-idispatch). <xref:System.Reflection.IReflect> defines a subset of the <xref:System.Type> reflection methods. Implementing this interface enables a type to customize its behavior when the object is being accessed from COM as an `IDispatch` object. The <xref:System.Runtime.InteropServices.CustomMarshalers.ExpandoToDispatchExMarshaler> class can be used to marshal an object that implements <xref:System.Reflection.IReflect> or <xref:System.Runtime.InteropServices.Expando.IExpando> as a COM `IDispatch` object, and vice versa.
63-
63+
6464
]]></format>
6565
</remarks>
6666
<altmember cref="T:System.Runtime.InteropServices.CustomMarshalers.ExpandoToDispatchExMarshaler" />

0 commit comments

Comments
 (0)