17 references to AsPrimitive
System.Formats.Asn1 (17)
System\Formats\Asn1\AsnWriter.BitString.cs (1)
88
WriteTag(tag.
AsPrimitive
());
System\Formats\Asn1\AsnWriter.Boolean.cs (1)
25
WriteBooleanCore(tag?.
AsPrimitive
() ?? Asn1Tag.Boolean, value);
System\Formats\Asn1\AsnWriter.Enumerated.cs (2)
40
WriteEnumeratedValue(tag?.
AsPrimitive
() ?? Asn1Tag.Enumerated, value.GetType(), value);
69
WriteEnumeratedValue(tag?.
AsPrimitive
() ?? Asn1Tag.Enumerated, typeof(TEnum), value);
System\Formats\Asn1\AsnWriter.GeneralizedTime.cs (1)
37
tag?.
AsPrimitive
() ?? Asn1Tag.GeneralizedTime,
System\Formats\Asn1\AsnWriter.Integer.cs (5)
27
WriteIntegerCore(tag?.
AsPrimitive
() ?? Asn1Tag.Integer, value);
46
WriteNonNegativeIntegerCore(tag?.
AsPrimitive
() ?? Asn1Tag.Integer, value);
64
WriteIntegerCore(tag?.
AsPrimitive
() ?? Asn1Tag.Integer, value);
89
WriteIntegerCore(tag?.
AsPrimitive
() ?? Asn1Tag.Integer, value);
110
WriteIntegerUnsignedCore(tag?.
AsPrimitive
() ?? Asn1Tag.Integer, value);
System\Formats\Asn1\AsnWriter.Null.cs (1)
24
WriteNullCore(tag?.
AsPrimitive
() ?? Asn1Tag.Null);
System\Formats\Asn1\AsnWriter.OctetString.cs (1)
96
WriteTag(tag.
AsPrimitive
());
System\Formats\Asn1\AsnWriter.Oid.cs (2)
67
WriteTag(tag?.
AsPrimitive
() ?? Asn1Tag.ObjectIdentifier);
75
WriteObjectIdentifierCore(tag?.
AsPrimitive
() ?? Asn1Tag.ObjectIdentifier, oidValue);
System\Formats\Asn1\AsnWriter.Text.cs (1)
100
WriteTag(tag.
AsPrimitive
());
System\Formats\Asn1\AsnWriter.UtcTime.cs (2)
31
WriteUtcTimeCore(tag?.
AsPrimitive
() ?? Asn1Tag.UtcTime, value);
68
WriteUtcTimeCore(tag?.
AsPrimitive
() ?? Asn1Tag.UtcTime, value);