public bool Equals(SubscriptionOption other) { return(other != null && SubscriptionId == other.SubscriptionId && TenantId == other.TenantId && DisplayName == other.DisplayName && State == other.State); }
internal static SubscriptionOption Combine(SubscriptionOption o1, SubscriptionOption o2) { var result = new SubscriptionOption() { SubscriptionId = o1.SubscriptionId ?? o2.SubscriptionId, TenantId = o1.TenantId ?? o2.TenantId, DisplayName = o1.DisplayName ?? o2.DisplayName, State = o1.State ?? o2.State, }; return(result); }
internal SubscriptionOption(SubscriptionOption option) { if (option == null) { return; } SubscriptionId = option.SubscriptionId; TenantId = option.TenantId; DisplayName = option.DisplayName; State = option.State; }