Skip to content

Commit e30fcd9

Browse files
Merge pull request #42668 from dotnet/main
Merge main into live
2 parents d3faf9d + bd6965b commit e30fcd9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/csharp/fundamentals/types/interfaces.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ You define an interface by using the [`interface`](../../language-reference/keyw
1818

1919
The name of an interface must be a valid C# [identifier name](../coding-style/identifier-names.md). By convention, interface names begin with a capital `I`.
2020

21-
Any class or struct that implements the <xref:System.IEquatable%601> interface must contain a definition for an <xref:System.IEquatable%601.Equals%2A> method that matches the signature that the interface specifies. As a result, you can count on a class that implements `IEquatable<T>` to contain an `Equals` method with which an instance of the class can determine whether it's equal to another instance of the same class.
21+
Any class or struct that implements the <xref:System.IEquatable%601> interface must contain a definition for an <xref:System.IEquatable%601.Equals%2A> method that matches the signature that the interface specifies. As a result, you can count on a class of type `T` that implements `IEquatable<T>` to contain an `Equals` method with which an instance of this class can determine whether it's equal to another instance of the same class.
2222

2323
The definition of `IEquatable<T>` doesn't provide an implementation for `Equals`. A class or struct can implement multiple interfaces, but a class can only inherit from a single class.
2424

docs/framework/unmanaged-api/debugging/corgcreferencetype-enumeration.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ typedef enum {
3232
CorHandleStrongDependent = 64,
3333
CorHandleStrongAsyncPinned = 128,
3434
CorHandleStrongSizedByref = 256,
35+
CorHandleWeakWinRT = 512,
3536

3637
CorReferenceStack = 0x80000001,
37-
CorReferenceFinalizer = 0x80000002,
38+
CorReferenceFinalizer = 80000002, // Note the constant is decimal, not hexadecimal
3839

3940
CorHandleStrongOnly = 0x1E3,
4041
CorHandleWeakOnly = 0xC,
@@ -54,6 +55,7 @@ typedef enum {
5455
|`CorHandleStrongDependent`|A handle to a dependent object from the object handle table.|
5556
|`CorHandleStrongAsyncPinned`|An asynchronous pinned object from the object handle table.|
5657
|`CorHandleStrongSizedByref`|A strong handle that keeps an approximate size of the collective closure of all objects and object roots at garbage collection time.|
58+
|`CorHandleWeakWinRT`|A weak handle to a RCW (Runtime Callable Wrapper). An RCW is a managed object that proxies calls to an underlying COM object.|
5759
|`CorReferenceStack`|A reference from the managed stack.|
5860
|`CorReferenceFinalizer`|A reference from the finalizer queue.|
5961
|CorHandleStrongOnly|Return only strong references from the handle table. This value is used by the [ICorDebugProcess5::EnumerateHandles](icordebugprocess5-enumeratehandles-method.md) method only.|

0 commit comments

Comments
 (0)