| File: Generated\361d1da7f942c932\Microsoft_Diagnostics_DataContractReader_Data.EEILException.g.cs | |
| Project: Microsoft.Diagnostics.DataContractReader.Contracts.csproj (Microsoft.Diagnostics.DataContractReader.Contracts) |
// <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>EEILException</c> type.</summary> partial class EEILException { private static readonly string[] _typeNames = new[] { "EEILException" }; [UsesDataDescriptorTypeSize] public static uint GetSize(Target target) => checked((uint)TypeLayout.Resolve(target, _typeNames).InstanceSize); [DataDescriptorDependency("Clauses", "pointer")] public static int GetClausesOffset(Target target) { TypeLayout layout = TypeLayout.Resolve(target, _typeNames); layout.Select(default, out var type, out _, out var name, "Clauses"); return type.Fields[name].Offset; } public TargetPointer Address { get; } private readonly Target _target; private readonly TypeLayout _layout; public EEILException(Target target, TargetPointer address) { Address = address; _target = target; _layout = TypeLayout.Resolve(target, _typeNames); } static EEILException IData<EEILException>.Create(Target target, TargetPointer address) => new EEILException(target, address); private TargetPointer _Clauses__value = default!; private bool _Clauses__read; [DataDescriptorDependency("Clauses", "pointer")] public partial TargetPointer Clauses { get { if (!_Clauses__read) { _layout.Select(Address, out var t, out var b, out var n, "Clauses"); _Clauses__value = b + (ulong)t.Fields[n].Offset; _Clauses__read = true; } return _Clauses__value; } } [DataDescriptorDependency("Clauses", "pointer")] internal bool TryReadAllFields() { try { _ = Clauses; return true; } catch (VirtualReadException) { return false; } } }