using System.Linq;
namespace SabreTools.ASN1
{
///
/// Methods related to Object Identifiers (OID) and dot notation
///
public static partial class ObjectIdentifier
{
///
/// Parse an OID in separated-value notation into dot notation
///
/// List of values to check against
/// List of values representing the dot notation
public static string? ParseOIDToDotNotation(ulong[]? values)
{
// If we have an invalid set of values, we can't do anything
if (values == null || values.Length == 0)
return null;
return string.Join(".", values.Select(v => v.ToString()).ToArray());
}
}
}