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); }
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); }