public override bool Equals(object obj) { var anotherSubscription = obj as AzureSubscription; if (anotherSubscription == null) { return false; } else { return anotherSubscription.Id == Id; } } }