namespace Delegates { public delegate bool GetTableName(uint nTable, char buf, uint buflen); } namespace ISXWoW { public class WoWDB { private Dictionary table = new Dictionary(); private static Delegates.GetTableName getTableName = Stubs.GetTableName; internal class Stubs { static public bool GetTableName(uint nTable, char buf, uint buflen) { IntPtr Address = LavishVM.GetAPI("ISXWoW.WoWDB", "GetTableName", 1); WoWDB.getTableName = (Delegates.GetTableName)Marshal.GetDelegateForFunctionPointer(Address, typeof(Delegates.GetTableName)); return false; } } #region Constructors public WoWDB() { } #endregion Constructors #region Public Methods #endregion } }