Пример #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Body.GetHashCode();
         hashCode = (hashCode * 397) ^ Name.GetHashCode();
         hashCode = (hashCode * 397) ^ IsEntryPoint.GetHashCode();
         return(hashCode);
     }
 }
Пример #2
0
 private bool Equals(MethodDeclaration other)
 {
     return(Equals(Body, other.Body) && Equals(Name, other.Name) && IsEntryPoint.Equals(other.IsEntryPoint));
 }