Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge main into live #42668

Merged
merged 2 commits into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/csharp/fundamentals/types/interfaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ You define an interface by using the [`interface`](../../language-reference/keyw

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`.

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.
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.

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.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ typedef enum {
CorHandleStrongDependent = 64,
CorHandleStrongAsyncPinned = 128,
CorHandleStrongSizedByref = 256,
CorHandleWeakWinRT = 512,

CorReferenceStack = 0x80000001,
CorReferenceFinalizer = 0x80000002,
CorReferenceFinalizer = 80000002, // Note the constant is decimal, not hexadecimal

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