コード例 #1
0
 public bool Equals(SubscriptionOption other)
 {
     return(other != null &&
            SubscriptionId == other.SubscriptionId &&
            TenantId == other.TenantId &&
            DisplayName == other.DisplayName &&
            State == other.State);
 }
コード例 #2
0
        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);
        }
コード例 #3
0
        internal SubscriptionOption(SubscriptionOption option)
        {
            if (option == null)
            {
                return;
            }

            SubscriptionId = option.SubscriptionId;
            TenantId       = option.TenantId;
            DisplayName    = option.DisplayName;
            State          = option.State;
        }