public void GoToType(DTE2 application, string assembly, string typename)
 {
     using (var converter = new AutoTest.UI.CodeReflection.TypeConverter(assembly))
     {
         try
         {
             var signature = converter.ToSignature(typename);
             if (signature != null)
             {
                 if (signature.Type == UI.CodeReflection.SignatureTypes.Class)
                     AutoTest.VS.Util.MethodFinder_Slow.GotoTypeByFullName(application, signature.Name);
                 if (signature.Type == UI.CodeReflection.SignatureTypes.Method || signature.Type == UI.CodeReflection.SignatureTypes.Field)
                     AutoTest.VS.Util.MethodFinder_Slow.GotoMethodByFullname(signature.Name, application);
             }
         }
         catch
         {
         }
     }
 }
예제 #2
0
 public void GoToType(DTE2 application, string assembly, string typename)
 {
     using (var converter = new AutoTest.UI.CodeReflection.TypeConverter(assembly))
     {
         try
         {
             var signature = converter.ToSignature(typename);
             if (signature != null)
             {
                 if (signature.Type == UI.CodeReflection.SignatureTypes.Class)
                 {
                     AutoTest.VS.Util.MethodFinder_Slow.GotoTypeByFullName(application, signature.Name);
                 }
                 if (signature.Type == UI.CodeReflection.SignatureTypes.Method || signature.Type == UI.CodeReflection.SignatureTypes.Field)
                 {
                     AutoTest.VS.Util.MethodFinder_Slow.GotoMethodByFullname(signature.Name, application);
                 }
             }
         }
         catch
         {
         }
     }
 }