File: src\libraries\Common\src\System\Security\Cryptography\Asn1\AttributeAsn.manual.cs | Web Access |
Project: src\src\libraries\System.Security.Cryptography\src\System.Security.Cryptography.csproj (System.Security.Cryptography) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #pragma warning disable CA1510 namespace System.Security.Cryptography.Asn1 { internal partial struct AttributeAsn { public AttributeAsn(AsnEncodedData attribute) { if (attribute is null) { throw new ArgumentNullException(nameof(attribute)); } AttrType = attribute.Oid!.Value!; AttrValues = new[] { new ReadOnlyMemory<byte>(attribute.RawData) }; } } } |