using System; using System.Xml; namespace ArchestrAServices.Common.Extensions; public static class StringExtensions { public static int CompareTo(this XmlQualifiedName value, XmlQualifiedName other) { int num = 0; if (value != null && other != null) { num = value.IsEmpty.CompareTo(other.IsEmpty); if (num == 0) { num = string.Compare(value.Namespace, other.Namespace, StringComparison.Ordinal); if (num == 0) { num = string.Compare(value.Name, other.Name, StringComparison.Ordinal); } } } else if (value == null && other != null) { num = -1; } else if (value != null) { num = 1; } return num; } }