Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d8000bf

Browse files
MarkFernmairaw
authored andcommitted
2 Mistakes? In GetEndComSlot & GetStartComSlot? (dotnet#2292)
1 parent 7c7d533 commit d8000bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xml/System.Runtime.InteropServices/Marshal.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3234,7 +3234,7 @@
32343234
<format type="text/markdown"><![CDATA[
32353235

32363236
## Remarks
3237-
This method returns the zero-based, v-table number for an interface or a class. When used on a class, the slot number returned refers to the class interface for the class. If the class interface is auto-dual, this method always returns -1 to indicate that the dispatch-only interface does not expose a v-table to managed clients. You can use <xref:System.Runtime.InteropServices.Marshal.GetEndComSlot%2A> and <xref:System.Runtime.InteropServices.Marshal.GetStartComSlot%2A?displayProperty=nameWithType> in conjunction with <xref:System.Runtime.InteropServices.Marshal.GetMethodInfoForComSlot%2A?displayProperty=nameWithType> to pass slots within a specified range. For additional information, see [Introducing the Class Interface](https://msdn.microsoft.com/library/733c0dd2-12e5-46e6-8de1-39d5b25df024).
3237+
This method returns the zero-based, v-table number for an interface or a class. When used on a class, the slot number returned refers to the class interface for the class. If the class interface is auto-dispatch, this method always returns -1 to indicate that the dispatch-only interface does not expose a v-table to managed clients. You can use <xref:System.Runtime.InteropServices.Marshal.GetEndComSlot%2A> and <xref:System.Runtime.InteropServices.Marshal.GetStartComSlot%2A?displayProperty=nameWithType> in conjunction with <xref:System.Runtime.InteropServices.Marshal.GetMethodInfoForComSlot%2A?displayProperty=nameWithType> to pass slots within a specified range. For additional information, see [Introducing the Class Interface](https://msdn.microsoft.com/library/733c0dd2-12e5-46e6-8de1-39d5b25df024).
32383238

32393239
]]></format>
32403240
</remarks>
@@ -4821,7 +4821,7 @@ There is a difference in the behavior of the `GetLastWin32Error` method on .NET
48214821
<Parameter Name="t" Type="System.Type" />
48224822
</Parameters>
48234823
<Docs>
4824-
<param name="t">A type that represents an interface.</param>
4824+
<param name="t">A type that represents an interface or a class.</param>
48254825
<summary>Gets the first slot in the virtual function table (v-table or VTBL) that contains user-defined methods.</summary>
48264826
<returns>The first VTBL slot that contains user-defined methods. The first slot is 3 if the interface is based on <see href="https://docs.microsoft.com/windows/desktop/api/unknwn/nn-unknwn-iunknown">IUnknown</see>, and 7 if the interface is based on [IDispatch](https://msdn.microsoft.com/library/ebbff4bc-36b2-4861-9efa-ffa45e013eb5).</returns>
48274827
<remarks>

0 commit comments

Comments
 (0)