| File: System\Reflection\Metadata\Ecma335\EditAndContinueLogEntry.cs | Web Access |
| Project: src\runtime\src\libraries\System.Reflection.Metadata\src\System.Reflection.Metadata.csproj (System.Reflection.Metadata) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Diagnostics.CodeAnalysis; namespace System.Reflection.Metadata.Ecma335 { public readonly struct EditAndContinueLogEntry : IEquatable<EditAndContinueLogEntry> { public EntityHandle Handle { get; } public EditAndContinueOperation Operation { get; } public EditAndContinueLogEntry(EntityHandle handle, EditAndContinueOperation operation) { Handle = handle; Operation = operation; } public override bool Equals([NotNullWhen(true)] object? obj) => obj is EditAndContinueLogEntry editAndContinue && Equals(editAndContinue); public bool Equals(EditAndContinueLogEntry other) => Operation == other.Operation && Handle == other.Handle; public override int GetHashCode() => (int)Operation ^ Handle.GetHashCode(); } }