diff options
Diffstat (limited to 'crypto/src/asn1/Asn1RelativeOid.cs')
-rw-r--r-- | crypto/src/asn1/Asn1RelativeOid.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crypto/src/asn1/Asn1RelativeOid.cs b/crypto/src/asn1/Asn1RelativeOid.cs index f1b9bc274..587d41d2c 100644 --- a/crypto/src/asn1/Asn1RelativeOid.cs +++ b/crypto/src/asn1/Asn1RelativeOid.cs @@ -134,8 +134,7 @@ namespace Org.BouncyCastle.Asn1 return Objects.EnsureSingletonInitialized(ref m_identifier, m_contents, ParseContents); } - // TODO[api] - //[Obsolete("Use 'GetID' instead")] + [Obsolete("Use 'GetID' instead")] public string Id => GetID(); public override string ToString() => GetID(); @@ -180,7 +179,7 @@ namespace Org.BouncyCastle.Asn1 internal static void CheckIdentifier(string identifier) { if (identifier == null) - throw new ArgumentNullException("identifier"); + throw new ArgumentNullException(nameof(identifier)); if (identifier.Length > MaxIdentifierLength) throw new ArgumentException("exceeded relative OID contents length limit"); if (!IsValidIdentifier(identifier, from: 0)) |