Advertisement
Guest User

Untitled

a guest
Feb 13th, 2014
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.36 KB | None | 0 0
  1. private void ProcessContents(List<Asset> contents)
  2. {
  3.     contents.ForEach((current) =>
  4.     {
  5.         if (current.Contents != null)
  6.             ProcessContents(current.Contents);
  7.         else
  8.         {
  9.             // _api = new EveApi(); at class scope
  10.             var pt = _api.EveApiCore.FindProductType(current.TypeID);
  11.             string name = pt.Name;
  12.             // do some stuff with the current item/name
  13.         }
  14.     });
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement