Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void ProcessContents(List<Asset> contents)
- {
- contents.ForEach((current) =>
- {
- if (current.Contents != null)
- ProcessContents(current.Contents);
- else
- {
- // _api = new EveApi(); at class scope
- var pt = _api.EveApiCore.FindProductType(current.TypeID);
- string name = pt.Name;
- // do some stuff with the current item/name
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement