コード例 #1
0
 public bool Equals(ResourceGroupOption other)
 {
     return(other != null &&
            SubscriptionId == other.SubscriptionId &&
            Name == other.Name &&
            Location == other.Location &&
            ManagedBy == other.ManagedBy &&
            Tags == other.Tags &&
            Properties == other.Properties);
 }
コード例 #2
0
        internal ResourceGroupOption(ResourceGroupOption option)
        {
            if (option == null)
            {
                return;
            }

            Name       = option.Name;
            Location   = option.Location;
            ManagedBy  = option.Location;
            Tags       = option.Tags;
            Properties = option.Properties;
        }
コード例 #3
0
        internal static ResourceGroupOption Combine(ResourceGroupOption o1, ResourceGroupOption o2)
        {
            var result = new ResourceGroupOption()
            {
                SubscriptionId = o1.SubscriptionId ?? o2.SubscriptionId,
                Name           = o1.Name ?? o2.Name,
                Location       = o1.Location ?? o2.Location,
                ManagedBy      = o1.ManagedBy ?? o2.ManagedBy,
                Tags           = o1.Tags ?? o2.Tags,
                Properties     = o1.Properties ?? o2.Properties,
            };

            return(result);
        }