private CSharp_CancelEventCallbackCookie ( IntPtr jarg1 ) : void | ||
jarg1 | IntPtr | |
return | void |
static public void RemoveEventCallbackCookie(object in_cookie) { List <int> cookiesToRemove = new List <int>(); foreach (KeyValuePair <int, EventCallbackPackage> pair in m_mapEventCallbacks) { if (pair.Value.m_Cookie == in_cookie) { cookiesToRemove.Add(pair.Key); } } int Count = cookiesToRemove.Count; for (int ii = 0; ii < Count; ++ii) { int toRemove = cookiesToRemove[ii]; m_mapEventCallbacks.Remove(toRemove); AkSoundEnginePINVOKE.CSharp_CancelEventCallbackCookie((IntPtr)toRemove); } }
public static void RemoveEventCallbackCookie(object in_cookie) { var cookiesToRemove = new System.Collections.Generic.List <int>(); foreach (var pair in m_mapEventCallbacks) { if (pair.Value.m_Cookie == in_cookie) { cookiesToRemove.Add(pair.Key); } } var Count = cookiesToRemove.Count; for (var ii = 0; ii < Count; ++ii) { var toRemove = cookiesToRemove[ii]; m_mapEventCallbacks.Remove(toRemove); AkSoundEnginePINVOKE.CSharp_CancelEventCallbackCookie((System.IntPtr)toRemove); } }