Exemplo n.º 1
0
 public void AddMenuItems(SerializedProperty property, GenericMenu menu)
 {
     // ISSUE: object of a compiler-generated type is created
     // ISSUE: variable of a compiler-generated type
     PropertyHandler.\u003CAddMenuItems\u003Ec__AnonStoreyAE itemsCAnonStoreyAe = new PropertyHandler.\u003CAddMenuItems\u003Ec__AnonStoreyAE();
     // ISSUE: reference to a compiler-generated field
     itemsCAnonStoreyAe.property = property;
     // ISSUE: reference to a compiler-generated field
     itemsCAnonStoreyAe.\u003C\u003Ef__this = this;
     if (this.contextMenuItems == null)
     {
         return;
     }
     // ISSUE: reference to a compiler-generated field
     System.Type type = itemsCAnonStoreyAe.property.serializedObject.targetObject.GetType();
     using (List <ContextMenuItemAttribute> .Enumerator enumerator = this.contextMenuItems.GetEnumerator())
     {
         while (enumerator.MoveNext())
         {
             ContextMenuItemAttribute current = enumerator.Current;
             // ISSUE: object of a compiler-generated type is created
             // ISSUE: variable of a compiler-generated type
             PropertyHandler.\u003CAddMenuItems\u003Ec__AnonStoreyAF itemsCAnonStoreyAf = new PropertyHandler.\u003CAddMenuItems\u003Ec__AnonStoreyAF();
             // ISSUE: reference to a compiler-generated field
             itemsCAnonStoreyAf.\u003C\u003Ef__ref\u0024174 = itemsCAnonStoreyAe;
             // ISSUE: reference to a compiler-generated field
             itemsCAnonStoreyAf.\u003C\u003Ef__this = this;
             // ISSUE: reference to a compiler-generated field
             itemsCAnonStoreyAf.method = type.GetMethod(current.function, BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);
             // ISSUE: reference to a compiler-generated field
             if (itemsCAnonStoreyAf.method != null)
             {
                 // ISSUE: reference to a compiler-generated method
                 menu.AddItem(new GUIContent(current.name), false, new GenericMenu.MenuFunction(itemsCAnonStoreyAf.\u003C\u003Em__1F9));
             }
         }
     }
 }
 public void AddMenuItems(SerializedProperty property, GenericMenu menu)
 {
   // ISSUE: object of a compiler-generated type is created
   // ISSUE: variable of a compiler-generated type
   PropertyHandler.\u003CAddMenuItems\u003Ec__AnonStoreyAE itemsCAnonStoreyAe = new PropertyHandler.\u003CAddMenuItems\u003Ec__AnonStoreyAE();
   // ISSUE: reference to a compiler-generated field
   itemsCAnonStoreyAe.property = property;
   // ISSUE: reference to a compiler-generated field
   itemsCAnonStoreyAe.\u003C\u003Ef__this = this;
   if (this.contextMenuItems == null)
     return;
   // ISSUE: reference to a compiler-generated field
   System.Type type = itemsCAnonStoreyAe.property.serializedObject.targetObject.GetType();
   using (List<ContextMenuItemAttribute>.Enumerator enumerator = this.contextMenuItems.GetEnumerator())
   {
     while (enumerator.MoveNext())
     {
       ContextMenuItemAttribute current = enumerator.Current;
       // ISSUE: object of a compiler-generated type is created
       // ISSUE: variable of a compiler-generated type
       PropertyHandler.\u003CAddMenuItems\u003Ec__AnonStoreyAF itemsCAnonStoreyAf = new PropertyHandler.\u003CAddMenuItems\u003Ec__AnonStoreyAF();
       // ISSUE: reference to a compiler-generated field
       itemsCAnonStoreyAf.\u003C\u003Ef__ref\u0024174 = itemsCAnonStoreyAe;
       // ISSUE: reference to a compiler-generated field
       itemsCAnonStoreyAf.\u003C\u003Ef__this = this;
       // ISSUE: reference to a compiler-generated field
       itemsCAnonStoreyAf.method = type.GetMethod(current.function, BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);
       // ISSUE: reference to a compiler-generated field
       if (itemsCAnonStoreyAf.method != null)
       {
         // ISSUE: reference to a compiler-generated method
         menu.AddItem(new GUIContent(current.name), false, new GenericMenu.MenuFunction(itemsCAnonStoreyAf.\u003C\u003Em__1F9));
       }
     }
   }
 }