Beispiel #1
0
        public int FindExceptionInformationByIP(NuGenExceptionInformation exceptionInformation)
        {
            int  result = 0;
            bool found  = false;

            while (!found && result < Exceptions.Count)
            {
                NuGenExceptionInformation existingInformation = Exceptions[result];

                if (existingInformation.CompareTo(exceptionInformation) == 0 && existingInformation.ThrowingMethodToken == exceptionInformation.ThrowingMethodToken && existingInformation.IP == exceptionInformation.IP)
                {
                    found = true;
                }
                else
                {
                    result++;
                }
            }

            return(found ? result : -1);
        }
		public int FindExceptionInformationByIP(NuGenExceptionInformation exceptionInformation)
		{
			int result = 0;
			bool found = false;

			while (!found && result < Exceptions.Count)
			{
				NuGenExceptionInformation existingInformation = Exceptions[result];

				if (existingInformation.CompareTo(exceptionInformation) == 0 && existingInformation.ThrowingMethodToken == exceptionInformation.ThrowingMethodToken && existingInformation.IP == exceptionInformation.IP)
				{
					found = true;
				}
				else
				{
					result++;
				}
			}

			return (found ? result : -1);
		}