| File: Data\Frames\HijackArgs.cs | Web Access |
| Project: src\runtime\src\native\managed\cdac\Microsoft.Diagnostics.DataContractReader.Contracts\Microsoft.Diagnostics.DataContractReader.Contracts.csproj (Microsoft.Diagnostics.DataContractReader.Contracts) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; namespace Microsoft.Diagnostics.DataContractReader.Data; [CdacType(nameof(DataType.HijackArgs))] internal partial class HijackArgs : IData<HijackArgs> { public IReadOnlyDictionary<string, TargetNUInt> Registers { get; private set; } [MemberNotNull(nameof(Registers))] partial void OnInit(Target target, TargetPointer address) { Target.TypeInfo type = target.GetTypeInfo(DataType.HijackArgs); Dictionary<string, TargetNUInt> registers = new(type.Fields.Count); foreach ((string name, Target.FieldInfo field) in type.Fields) { TargetNUInt value = target.ReadNUInt(address + (ulong)field.Offset); registers.Add(name, value); } Registers = registers; } }