JetBrains.EnvDTE.Client by JetBrains

<PackageReference Include="JetBrains.EnvDTE.Client" Version="20220221.47.0" />

 CodeElementModel

public sealed class CodeElementModel : IPrintable, IEquatable<CodeElementModel>
using JetBrains.Rd; using JetBrains.Rd.Base; using JetBrains.Rd.Util; using System; namespace JetBrains.Rider.Model { public sealed class CodeElementModel : IEquatable<CodeElementModel> { public static CtxReadDelegate<CodeElementModel> Read = new CtxReadDelegate<CodeElementModel>((object)<>c.<>9, (IntPtr)(void*)); public static CtxWriteDelegate<CodeElementModel> Write = new CtxWriteDelegate<CodeElementModel>((object)<>c.<>9, (IntPtr)(void*)); public int TypeId { get; set; } public int Id { get; set; } public CodeElementModel(int typeId, int id) { TypeId = typeId; Id = id; } public void Deconstruct(out int typeId, out int id) { typeId = TypeId; id = Id; } public override bool Equals(object obj) { if (obj == null) return false; if (this == obj) return true; if (obj.GetType() != GetType()) return false; return Equals((CodeElementModel)obj); } public bool Equals(CodeElementModel other) { if (other == null) return false; if (this == other) return true; if (TypeId == other.TypeId) return Id == other.Id; return false; } public override int GetHashCode() { int num = 0 * 31; int num2 = TypeId; int num3 = (num + num2.GetHashCode()) * 31; num2 = Id; return num3 + num2.GetHashCode(); } public void Print(PrettyPrinter printer) { printer.Println("CodeElementModel ("); PrettyPrinterIndentCookie val = printer.IndentCookie(); try { printer.Print("typeId = "); PrintableEx.PrintEx((object)TypeId, printer); printer.Println(); printer.Print("id = "); PrintableEx.PrintEx((object)Id, printer); printer.Println(); } finally { ((IDisposable)val).Dispose(); } printer.Print(")"); } public override string ToString() { SingleLinePrettyPrinter val = new SingleLinePrettyPrinter(); Print(val); return ((object)val).ToString(); } } }