예제 #1
0
 private static void AddDeviceProfilers(List <ProfilerChoise> profilers)
 {
     foreach (DevDevice device in DevDeviceList.GetDevices())
     {
         // ISSUE: object of a compiler-generated type is created
         // ISSUE: variable of a compiler-generated type
         AttachProfilerUI.\u003CAddDeviceProfilers\u003Ec__AnonStoreyA9 profilersCAnonStoreyA9 = new AttachProfilerUI.\u003CAddDeviceProfilers\u003Ec__AnonStoreyA9();
         bool flag = (device.features & DevDeviceFeatures.PlayerConnection) != DevDeviceFeatures.None;
         if (device.isConnected && flag)
         {
             // ISSUE: reference to a compiler-generated field
             profilersCAnonStoreyA9.url = "device://" + device.id;
             // ISSUE: reference to a compiler-generated method
             // ISSUE: reference to a compiler-generated method
             profilers.Add(new ProfilerChoise()
             {
                 Name       = device.name,
                 Enabled    = true,
                 IsSelected = new Func <bool>(profilersCAnonStoreyA9.\u003C\u003Em__1ED),
                 ConnectTo  = new System.Action(profilersCAnonStoreyA9.\u003C\u003Em__1EE)
             });
         }
     }
 }
 private static void AddDeviceProfilers(List<ProfilerChoise> profilers)
 {
   foreach (DevDevice device in DevDeviceList.GetDevices())
   {
     // ISSUE: object of a compiler-generated type is created
     // ISSUE: variable of a compiler-generated type
     AttachProfilerUI.\u003CAddDeviceProfilers\u003Ec__AnonStoreyA9 profilersCAnonStoreyA9 = new AttachProfilerUI.\u003CAddDeviceProfilers\u003Ec__AnonStoreyA9();
     bool flag = (device.features & DevDeviceFeatures.PlayerConnection) != DevDeviceFeatures.None;
     if (device.isConnected && flag)
     {
       // ISSUE: reference to a compiler-generated field
       profilersCAnonStoreyA9.url = "device://" + device.id;
       // ISSUE: reference to a compiler-generated method
       // ISSUE: reference to a compiler-generated method
       profilers.Add(new ProfilerChoise()
       {
         Name = device.name,
         Enabled = true,
         IsSelected = new Func<bool>(profilersCAnonStoreyA9.\u003C\u003Em__1ED),
         ConnectTo = new System.Action(profilersCAnonStoreyA9.\u003C\u003Em__1EE)
       });
     }
   }
 }