예제 #1
0
 private static ContextMenuItemData[] ToArray(IEnumerable <ContextActionPrototype> enumerable, out int length)
 {
     ContextMenuItemData[] contextMenuItemDataArray;
     using (IEnumerator <ContextActionPrototype> enumerator = enumerable.GetEnumerator())
     {
         ContextMenuData.EnumerableConverter enumerableConverter = new ContextMenuData.EnumerableConverter();
         ContextMenuData.EnumerableConverter enumerator1         = enumerableConverter;
         enumerator1.enumerator = enumerable.GetEnumerator();
         enumerableConverter    = enumerator1;
         enumerableConverter.R();
         length = enumerableConverter.length;
         contextMenuItemDataArray = enumerableConverter.array;
     }
     return(contextMenuItemDataArray);
 }
 // Token: 0x06002C7B RID: 11387 RVA: 0x000A65F4 File Offset: 0x000A47F4
 private static ContextMenuItemData[] ToArray(IEnumerable <global::ContextActionPrototype> enumerable, out int length)
 {
     ContextMenuItemData[] array;
     using (enumerable.GetEnumerator())
     {
         ContextMenuData.EnumerableConverter enumerableConverter = new ContextMenuData.EnumerableConverter
         {
             enumerator = enumerable.GetEnumerator()
         };
         enumerableConverter.R();
         length = enumerableConverter.length;
         array  = enumerableConverter.array;
     }
     return(array);
 }
예제 #3
0
 private static ContextMenuItemData[] ToArray(IEnumerable<ContextActionPrototype> enumerable, out int length)
 {
     ContextMenuItemData[] contextMenuItemDataArray;
     using (IEnumerator<ContextActionPrototype> enumerator = enumerable.GetEnumerator())
     {
         ContextMenuData.EnumerableConverter enumerableConverter = new ContextMenuData.EnumerableConverter();
         ContextMenuData.EnumerableConverter enumerator1 = enumerableConverter;
         enumerator1.enumerator = enumerable.GetEnumerator();
         enumerableConverter = enumerator1;
         enumerableConverter.R();
         length = enumerableConverter.length;
         contextMenuItemDataArray = enumerableConverter.array;
     }
     return contextMenuItemDataArray;
 }