|
// <auto-generated/>
#nullable enable
using Microsoft.Diagnostics.DataContractReader;
using Microsoft.Diagnostics.DataContractReader.Contracts;
using Microsoft.Diagnostics.DataContractReader.Generated;
namespace Microsoft.Diagnostics.DataContractReader.Data;
/// <summary>Wraps the <c>System.Collections.Generic.List`1</c> type.</summary>
partial class List
{
private static readonly string[] _typeNames = new[] { "System.Collections.Generic.List`1" };
public TargetPointer Address { get; }
partial void OnInit(Target target, TargetPointer address);
public List(Target target, TargetPointer address)
{
Address = address;
LayoutSet layouts = LayoutSet.Resolve(target, _typeNames);
{
layouts.Select(address, out var t, out var b, out var n, "_items", "Items");
Items = target.ReadPointerField(b, t, n);
}
{
layouts.Select(address, out var t, out var b, out var n, "_size", "Size");
Size = target.ReadField<int>(b, t, n);
}
OnInit(target, address);
}
static List IData<List>.Create(Target target, TargetPointer address)
=> new List(target, address);
}
|