Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
C# Point Record
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
namespace FSharpFromCSharp
{
// Token: 0x02000006 RID: 6
public class CsharpPoint : IEquatable<CsharpPoint>
{
// Token: 0x06000006 RID: 6 RVA: 0x0000209B File Offset: 0x0000029B
[return: Nullable(1)]
public virtual CsharpPoint <>Clone()
{
return new CsharpPoint(this);
}
// Token: 0x17000001 RID: 1
// (get) Token: 0x06000007 RID: 7 RVA: 0x000020A3 File Offset: 0x000002A3
protected virtual Type EqualityContract
{
[return: Nullable(1)]
get
{
return typeof(CsharpPoint);
}
}
// Token: 0x06000008 RID: 8 RVA: 0x000020AF File Offset: 0x000002AF
public CsharpPoint(int X, int Y, int Z)
{
this.X = X;
this.Y = Y;
this.Z = Z;
base..ctor();
}
// Token: 0x17000002 RID: 2
// (get) Token: 0x06000009 RID: 9 RVA: 0x000020CD File Offset: 0x000002CD
// (set) Token: 0x0600000A RID: 10 RVA: 0x000020D5 File Offset: 0x000002D5
public int X { get; set; }
// Token: 0x17000003 RID: 3
// (get) Token: 0x0600000B RID: 11 RVA: 0x000020DE File Offset: 0x000002DE
// (set) Token: 0x0600000C RID: 12 RVA: 0x000020E6 File Offset: 0x000002E6
public int Y { get; set; }
// Token: 0x17000004 RID: 4
// (get) Token: 0x0600000D RID: 13 RVA: 0x000020EF File Offset: 0x000002EF
// (set) Token: 0x0600000E RID: 14 RVA: 0x000020F7 File Offset: 0x000002F7
public int Z { get; set; }
// Token: 0x0600000F RID: 15 RVA: 0x00002100 File Offset: 0x00000300
public override int GetHashCode()
{
return ((EqualityComparer<Type>.Default.GetHashCode(this.EqualityContract) * -1521134295 + EqualityComparer<int>.Default.GetHashCode(this.<X>k__BackingField)) * -1521134295 + EqualityComparer<int>.Default.GetHashCode(this.<Y>k__BackingField)) * -1521134295 + EqualityComparer<int>.Default.GetHashCode(this.<Z>k__BackingField);
}
// Token: 0x06000010 RID: 16 RVA: 0x00002162 File Offset: 0x00000362
[NullableContext(2)]
public override bool Equals(object obj)
{
return this.Equals(obj as CsharpPoint);
}
// Token: 0x06000011 RID: 17 RVA: 0x00002170 File Offset: 0x00000370
public virtual bool Equals([Nullable(2)] CsharpPoint A_1)
{
return A_1 != null && this.EqualityContract == A_1.EqualityContract && EqualityComparer<int>.Default.Equals(this.<X>k__BackingField, A_1.<X>k__BackingField) && EqualityComparer<int>.Default.Equals(this.<Y>k__BackingField, A_1.<Y>k__BackingField) && EqualityComparer<int>.Default.Equals(this.<Z>k__BackingField, A_1.<Z>k__BackingField);
}
// Token: 0x06000012 RID: 18 RVA: 0x000021D7 File Offset: 0x000003D7
protected CsharpPoint([Nullable(1)] CsharpPoint A_1)
{
this.X = A_1.<X>k__BackingField;
this.Y = A_1.<Y>k__BackingField;
this.Z = A_1.<Z>k__BackingField;
}
// Token: 0x06000013 RID: 19 RVA: 0x00002204 File Offset: 0x00000404
public void Deconstruct(out int X, out int Y, out int Z)
{
X = this.X;
Y = this.Y;
Z = this.Z;
}
// Token: 0x06000014 RID: 20 RVA: 0x0000221E File Offset: 0x0000041E
bool IEquatable<CsharpPoint>.Equals(CsharpPoint other)
{
return this.Equals(other);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.