-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathSymUnmanagedAsyncStepInfo.cs
More file actions
39 lines (33 loc) · 1.22 KB
/
SymUnmanagedAsyncStepInfo.cs
File metadata and controls
39 lines (33 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the License.txt file in the project root for more information.
using System;
namespace Microsoft.DiaSymReader
{
public struct SymUnmanagedAsyncStepInfo : IEquatable<SymUnmanagedAsyncStepInfo>
{
public int YieldOffset { get; }
public int ResumeOffset { get; }
public int ResumeMethod { get; }
public SymUnmanagedAsyncStepInfo(int yieldOffset, int resumeOffset, int resumeMethod)
{
YieldOffset = yieldOffset;
ResumeOffset = resumeOffset;
ResumeMethod = resumeMethod;
}
public override bool Equals(object? obj)
{
return obj is SymUnmanagedAsyncStepInfo && Equals((SymUnmanagedAsyncStepInfo)obj);
}
public bool Equals(SymUnmanagedAsyncStepInfo other)
{
return YieldOffset == other.YieldOffset
&& ResumeMethod == other.ResumeMethod
&& ResumeOffset == other.ResumeOffset;
}
public override int GetHashCode()
{
return YieldOffset ^ ResumeMethod ^ ResumeOffset;
}
}
}