示例#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);
 }
示例#2
0
 /// <summary>
 /// Finds <c>IProperty</c> in <c>inClass</c> instance representing same property, but other version of <c>property</c>.
 /// </summary>
 /// <param name="inClass">Class where other version of property should be found.</param>
 /// <param name="property">Property to which other version is to be found.</param>
 private IProperty findProperty(IClass inClass, IProperty property)
 {
     foreach (IProperty elProperty in inClass.Properties)
     {
         if (MemberComparator.SameProperties(property, elProperty))
         {
             return(elProperty);
         }
     }
     return(null);
 }
示例#3
0
 /// <summary>
 /// Determines if <c>change</c> represent body change of specified <c>property</c>.
 /// </summary>
 private bool bodyChangeEquals(SourceChange change, IProperty property)
 {
     return(change.OldEntity == change.NewEntity && change.NewEntity is IProperty &&
            MemberComparator.SameProperties((IProperty)change.NewEntity, property));
 }
示例#4
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));
 }