public static bool IsReferenceToMissingObsoleteMember(string namespaceName, string className)
 {
   // ISSUE: object of a compiler-generated type is created
   // ISSUE: variable of a compiler-generated type
   APIUpdaterHelper.\u003CIsReferenceToMissingObsoleteMember\u003Ec__AnonStoreyB1 memberCAnonStoreyB1 = new APIUpdaterHelper.\u003CIsReferenceToMissingObsoleteMember\u003Ec__AnonStoreyB1();
   // ISSUE: reference to a compiler-generated field
   memberCAnonStoreyB1.className = className;
   // ISSUE: reference to a compiler-generated field
   memberCAnonStoreyB1.namespaceName = namespaceName;
   try
   {
     // ISSUE: reference to a compiler-generated method
     return ((IEnumerable<Assembly>) AppDomain.CurrentDomain.GetAssemblies()).SelectMany<Assembly, System.Type>((Func<Assembly, IEnumerable<System.Type>>) (a => (IEnumerable<System.Type>) a.GetTypes())).FirstOrDefault<System.Type>(new Func<System.Type, bool>(memberCAnonStoreyB1.\u003C\u003Em__1FF)) != null;
   }
   catch (ReflectionTypeLoadException ex)
   {
     throw new Exception(ex.Message + ((IEnumerable<Exception>) ex.LoaderExceptions).Aggregate<Exception, string>(string.Empty, (Func<string, Exception, string>) ((acc, curr) => acc + "\r\n\t" + curr.Message)));
   }
 }
Exemplo n.º 2
0
 public static bool IsReferenceToMissingObsoleteMember(string namespaceName, string className)
 {
     // ISSUE: object of a compiler-generated type is created
     // ISSUE: variable of a compiler-generated type
     APIUpdaterHelper.\u003CIsReferenceToMissingObsoleteMember\u003Ec__AnonStoreyB1 memberCAnonStoreyB1 = new APIUpdaterHelper.\u003CIsReferenceToMissingObsoleteMember\u003Ec__AnonStoreyB1();
     // ISSUE: reference to a compiler-generated field
     memberCAnonStoreyB1.className = className;
     // ISSUE: reference to a compiler-generated field
     memberCAnonStoreyB1.namespaceName = namespaceName;
     try
     {
         // ISSUE: reference to a compiler-generated method
         return(((IEnumerable <Assembly>)AppDomain.CurrentDomain.GetAssemblies()).SelectMany <Assembly, System.Type>((Func <Assembly, IEnumerable <System.Type> >)(a => (IEnumerable <System.Type>)a.GetTypes())).FirstOrDefault <System.Type>(new Func <System.Type, bool>(memberCAnonStoreyB1.\u003C\u003Em__1FF)) != null);
     }
     catch (ReflectionTypeLoadException ex)
     {
         throw new Exception(ex.Message + ((IEnumerable <Exception>)ex.LoaderExceptions).Aggregate <Exception, string>(string.Empty, (Func <string, Exception, string>)((acc, curr) => acc + "\r\n\t" + curr.Message)));
     }
 }