コード例 #1
0
        public virtual bool IsEqual(MySmoObjectBase newValue)
        {
            if (ExtraParams.Length != newValue.ExtraParams.Length)
            {
                return(false);
            }

            if (this.ExtraParams.Where((t, i) => t != newValue.ExtraParams[i]).Any())
            {
                return(false);
            }

            return(SourceSmoObject.GetType() == newValue.SourceSmoObject.GetType() &&
                   Name == newValue.Name);
        }
コード例 #2
0
        public virtual bool IsEqual(MySmoObjectBase newValue)
        {
            if (ExtraParams.Length != newValue.ExtraParams.Length)
            {
                return(false);
            }
            for (int i = 0; i < ExtraParams.Length; i++)
            {
                if (ExtraParams[i] != newValue.ExtraParams[i])
                {
                    return(false);
                }
            }

            return(SourceSmoObject.GetType() == newValue.SourceSmoObject.GetType() &&
                   Name == newValue.Name);
        }