Exemple #1
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="HTTPMethod">An object to compare with.</param>
        public Int32 CompareTo(HTTPMethod HTTPMethod)
        {
            if ((Object)HTTPMethod == null)
            {
                throw new ArgumentNullException("The given HTTPMethod must not be null!");
            }

            return(MethodName.CompareTo(HTTPMethod.MethodName));
        }
 public int CompareTo(object obj)
 {
     return(MethodName.CompareTo(((SnoopMethodInformation)obj).MethodName));
 }