Пример #1
0
        static void SoundCompletionShared(SystemSoundId id, IntPtr clientData)
        {
            GCHandle gch = GCHandle.FromIntPtr(clientData);
            var      ss  = (SystemSound)gch.Target;

            ss.completionRoutine();
        }
Пример #2
0
        static void SoundCompletionShared(SystemSoundId id, IntPtr clientData)
        {
            GCHandle gch = GCHandle.FromIntPtr(clientData);
            var      ss  = gch.Target as SystemSound;

            if (ss?.completionRoutine is not null)
            {
                ss.completionRoutine();
            }
        }
Пример #3
0
		static void SoundCompletionShared (SystemSoundId id, IntPtr clientData)
		{
			GCHandle gch = GCHandle.FromIntPtr (clientData);
			var ss = (SystemSound) gch.Target;

			ss.completionRoutine ();
		}