Exemplo n.º 1
0
 /// <summary>
 /// Finds <c>IMethod</c> in <c>inClass</c> instance representing same method overload, but other version of <c>method</c>.
 /// </summary>
 /// <param name="inClass">Class where other version of method should be found.</param>
 /// <param name="property">Method to which other version is to be found.</param>
 private IMethod findMethod(IClass inClass, IMethod method)
 {
     foreach (IMethod elMethod in inClass.Methods)
     {
         if (MemberComparator.SameMethodOverloads(elMethod, method))
         {
             return(elMethod);
         }
     }
     return(null);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Determines if <c>change</c> represent body change of specified <c>method</c>.
 /// </summary>
 private bool bodyChangeEquals(SourceChange change, IMethod method)
 {
     return(change.OldEntity == change.NewEntity && change.NewEntity is IMethod &&
            MemberComparator.SameMethodOverloads((IMethod)change.NewEntity, method));
 }