Advertisement
Guest User

Untitled

a guest
Mar 14th, 2012
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.76 KB | None | 0 0
  1.             Decal.Filters.FileService fs = CoreManager.Current.FileService as Decal.Filters.FileService;
  2.  
  3.             Decal.Interop.Filters.SkillInfo skillinfo = null;
  4.             for (int i = 0; i < fs.SkillTable.Length; ++i)
  5.             {
  6.                 try
  7.                 {
  8.                     skillinfo = Core.CharacterFilter.Underlying.get_Skill((Decal.Interop.Filters.eSkillID)fs.SkillTable[i].Id);
  9.                     //Do stuff with skill
  10.                 }
  11.                 finally
  12.                 {
  13.                     if (skillinfo != null)
  14.                     {
  15.                         System.Runtime.InteropServices.Marshal.ReleaseComObject(skillinfo);
  16.                         skillinfo = null;
  17.                     }
  18.                 }
  19.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement