Beispiel #1
0
        /// <summary>
        /// Compares the equality of two locations.
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        //^ [Confined, MustOverride]
        public override bool Equals(object /*?*/ obj)
        {
            ILLocation /*?*/ ilLocation = obj as ILLocation;

            if (ilLocation == null)
            {
                return(false);
            }
            if (_offset != ilLocation._offset)
            {
                return(false);
            }
            if (_methodDefinition.Equals(ilLocation._methodDefinition))
            {
                return(false);
            }
            return(_binaryDocument.Location.Equals(ilLocation._binaryDocument.Location));
        }
Beispiel #2
0
 public bool Equals(CciAction other)
 {
     return(method.Equals(other.method));
 }