Exemple #1
0
        internal bool Equals(ProjectRunConfiguration other)
        {
            var dict1 = new Dictionary <string, string> ();
            var dict2 = new Dictionary <string, string> ();

            var thisData = new ProjectItemMetadata();

            Write(thisData);
            GetProps(MainPropertyGroup, dict1);
            GetProps(thisData, dict1);

            var otherData = new ProjectItemMetadata();

            other.Write(otherData);
            GetProps(other.MainPropertyGroup, dict2);
            GetProps(otherData, dict2);

            if (dict1.Count != dict2.Count)
            {
                return(false);
            }
            foreach (var tp in dict1)
            {
                string v;
                if (!dict2.TryGetValue(tp.Key, out v) || tp.Value != v)
                {
                    return(false);
                }
            }
            return(true);
        }
		internal bool Equals (ProjectRunConfiguration other)
		{
			var dict1 = new Dictionary<string, string> ();
			var dict2 = new Dictionary<string, string> ();

			var thisData = new ProjectItemMetadata ();
			Write (thisData);
			GetProps (MainPropertyGroup, dict1);
			GetProps (thisData, dict1);

			var otherData = new ProjectItemMetadata ();
			other.Write (otherData);
			GetProps (other.MainPropertyGroup, dict2);
			GetProps (otherData, dict2);

			if (dict1.Count != dict2.Count)
				return false;
			foreach (var tp in dict1) {
				string v;
				if (!dict2.TryGetValue (tp.Key, out v) || tp.Value != v)
					return false;
			}
			return true;
		}