public string GetDetails(DependencyDuplicate duplicates)
        {
            var details = new StringBuilder();

            Describe(details, duplicates.Dependency1);
            details.Append(" duplicates ");
            Describe(details, duplicates.Dependency2);
            switch (duplicates.Reason)
            {
            case DependencyDuplicationReason.Name:
                details.Append(", they both have the same name.");
                break;

            case DependencyDuplicationReason.Type:
                details.Append(", they both have the same type.");
                break;

            case DependencyDuplicationReason.NameAndType:
                details.Append(", they both have the same name and type.");
                break;

            case DependencyDuplicationReason.Reference:
                details.Append(", they both reference the same component " + duplicates.Dependency1.ReferencedComponentName);
                break;
            }
            return(details.ToString());
        }
		public string GetDetails(DependencyDuplicate duplicates)
		{
			var details = new StringBuilder();
			Describe(details, duplicates.Dependency1);
			details.Append(" duplicates ");
			Describe(details, duplicates.Dependency2);
			switch (duplicates.Reason)
			{
				case DependencyDuplicationReason.Name:
					details.Append(", they both have the same name.");
					break;
				case DependencyDuplicationReason.Type:
					details.Append(", they both have the same type.");
					break;
				case DependencyDuplicationReason.NameAndType:
					details.Append(", they both have the same namd and type.");
					break;
				case DependencyDuplicationReason.Reference:
					details.Append(", they both reference the same component " + duplicates.Dependency1.ReferencedComponentName);
					break;
			}
			return details.ToString();
		}
Esempio n. 3
0
 protected bool Equals(DependencyDuplicate other)
 {
     return(Equals(Dependency1, other.Dependency1) && Equals(Dependency2, other.Dependency2) && Reason.Equals(other.Reason));
 }
Esempio n. 4
0
		protected bool Equals(DependencyDuplicate other)
		{
			return Equals(Dependency1, other.Dependency1) && Equals(Dependency2, other.Dependency2) && Reason.Equals(other.Reason);
		}