| File: System\Formats\Nrbf\MemberPrimitiveTypedRecord.cs | Web Access |
| Project: System.Formats.Nrbf.csproj (System.Formats.Nrbf) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.Formats.Nrbf; /// <summary> /// Represents a primitive value other than <see langword="string"/>. /// </summary> /// <remarks> /// MemberPrimitiveTyped records are described in <see href="https://learn.microsoft.com/openspecs/windows_protocols/ms-nrbf/c0a190b2-762c-46b9-89f2-c7dabecfc084">[MS-NRBF] 2.5.1</see>. /// </remarks> internal sealed class MemberPrimitiveTypedRecord<T> : PrimitiveTypeRecord<T> where T : unmanaged { internal MemberPrimitiveTypedRecord(T value) : base(value) => Id = default; internal MemberPrimitiveTypedRecord(T value, SerializationRecordId id) : base(value) => Id = id; public override SerializationRecordType RecordType => SerializationRecordType.MemberPrimitiveTyped; /// <inheritdoc /> public override SerializationRecordId Id { get; } }