コード例 #1
0
 private static bool TargetsWindowsSpecificFramework(CustomAttribute targetFrameworkAttr)
 {
   // ISSUE: object of a compiler-generated type is created
   // ISSUE: variable of a compiler-generated type
   APIUpdaterHelper.\u003CTargetsWindowsSpecificFramework\u003Ec__AnonStoreyB2 frameworkCAnonStoreyB2 = new APIUpdaterHelper.\u003CTargetsWindowsSpecificFramework\u003Ec__AnonStoreyB2();
   if (!targetFrameworkAttr.get_AttributeType().get_FullName().Contains("System.Runtime.Versioning.TargetFrameworkAttribute"))
     return false;
   // ISSUE: reference to a compiler-generated field
   frameworkCAnonStoreyB2.regex = new Regex("\\.NETCore|\\.NETPortable");
   // ISSUE: reference to a compiler-generated method
   return ((IEnumerable<CustomAttributeArgument>) targetFrameworkAttr.get_ConstructorArguments()).Any<CustomAttributeArgument>(new Func<CustomAttributeArgument, bool>(frameworkCAnonStoreyB2.\u003C\u003Em__204));
 }
コード例 #2
0
 private static bool TargetsWindowsSpecificFramework(CustomAttribute targetFrameworkAttr)
 {
     // ISSUE: object of a compiler-generated type is created
     // ISSUE: variable of a compiler-generated type
     APIUpdaterHelper.\u003CTargetsWindowsSpecificFramework\u003Ec__AnonStoreyB2 frameworkCAnonStoreyB2 = new APIUpdaterHelper.\u003CTargetsWindowsSpecificFramework\u003Ec__AnonStoreyB2();
     if (!targetFrameworkAttr.get_AttributeType().get_FullName().Contains("System.Runtime.Versioning.TargetFrameworkAttribute"))
     {
         return(false);
     }
     // ISSUE: reference to a compiler-generated field
     frameworkCAnonStoreyB2.regex = new Regex("\\.NETCore|\\.NETPortable");
     // ISSUE: reference to a compiler-generated method
     return(((IEnumerable <CustomAttributeArgument>)targetFrameworkAttr.get_ConstructorArguments()).Any <CustomAttributeArgument>(new Func <CustomAttributeArgument, bool>(frameworkCAnonStoreyB2.\u003C\u003Em__204)));
 }