/// <summary> /// Check if this subscription equals another subscription /// </summary> /// <param name="baseSub">The base subscription for comparison</param> /// <param name="other">The subscription to compare to</param> /// <returns>True if the elements of both subscriptiosn are equal, otherwise false</returns> public static bool IsEqual(this IAzureSubscription baseSub, IAzureSubscription other) { return((baseSub == null && other == null) || (baseSub.CheckExtensionsEqual(other) && string.Equals(baseSub.Id, other.Id, StringComparison.OrdinalIgnoreCase) && string.Equals(baseSub.Name, other.Name, StringComparison.OrdinalIgnoreCase) && string.Equals(baseSub.State, other.State, StringComparison.OrdinalIgnoreCase))); }