private static void Windows_Data_PropertyChangedEventArgs_Delegate_Handler(IntPtr result, IntPtr pNative)
        {
            List <EventHandler <PropertyChangedEventArgs> > list = null;

            LongExposureInfraredFrameSource.Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryGetValue(pNative, out list);
            object obj = list;

            lock (obj)
            {
                LongExposureInfraredFrameSource objThis = NativeObjectCache.GetObject <LongExposureInfraredFrameSource>(pNative);
                PropertyChangedEventArgs        args    = new PropertyChangedEventArgs(result);
                using (List <EventHandler <PropertyChangedEventArgs> > .Enumerator enumerator = list.GetEnumerator())
                {
                    while (enumerator.MoveNext())
                    {
                        EventHandler <PropertyChangedEventArgs> func = enumerator.Current;
                        EventPump.Instance.Enqueue(delegate
                        {
                            try
                            {
                                func(objThis, args);
                            }
                            catch
                            {
                            }
                        });
                    }
                }
            }
        }
 // Token: 0x06002D6B RID: 11627 RVA: 0x000DFF70 File Offset: 0x000DE370
 private void Dispose(bool disposing)
 {
     if (this._pNative == IntPtr.Zero)
     {
         return;
     }
     this.__EventCleanup();
     NativeObjectCache.RemoveObject <LongExposureInfraredFrameSource>(this._pNative);
     LongExposureInfraredFrameSource.Windows_Kinect_LongExposureInfraredFrameSource_ReleaseObject(ref this._pNative);
     this._pNative = IntPtr.Zero;
 }
        // Token: 0x06002D7B RID: 11643 RVA: 0x000E04DC File Offset: 0x000DE8DC
        public LongExposureInfraredFrameReader OpenReader()
        {
            if (this._pNative == IntPtr.Zero)
            {
                throw new ObjectDisposedException("LongExposureInfraredFrameSource");
            }
            IntPtr intPtr = LongExposureInfraredFrameSource.Windows_Kinect_LongExposureInfraredFrameSource_OpenReader(this._pNative);

            ExceptionHelper.CheckLastError();
            if (intPtr == IntPtr.Zero)
            {
                return(null);
            }
            return(NativeObjectCache.CreateOrGetObject <LongExposureInfraredFrameReader>(intPtr, (IntPtr n) => new LongExposureInfraredFrameReader(n)));
        }
        // Token: 0x06002D7C RID: 11644 RVA: 0x000E0550 File Offset: 0x000DE950
        private void __EventCleanup()
        {
            LongExposureInfraredFrameSource.Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks.TryAddDefault(this._pNative);
            List <EventHandler <FrameCapturedEventArgs> > list = LongExposureInfraredFrameSource.Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks[this._pNative];
            object obj = list;

            lock (obj)
            {
                if (list.Count > 0)
                {
                    list.Clear();
                    if (this._pNative != IntPtr.Zero)
                    {
                        IntPtr pNative = this._pNative;
                        if (LongExposureInfraredFrameSource.f__mg2 == null)
                        {
                            LongExposureInfraredFrameSource.f__mg2 = new LongExposureInfraredFrameSource._Windows_Kinect_FrameCapturedEventArgs_Delegate(LongExposureInfraredFrameSource.Windows_Kinect_FrameCapturedEventArgs_Delegate_Handler);
                        }
                        LongExposureInfraredFrameSource.Windows_Kinect_LongExposureInfraredFrameSource_add_FrameCaptured(pNative, LongExposureInfraredFrameSource.f__mg2, true);
                    }
                    LongExposureInfraredFrameSource._Windows_Kinect_FrameCapturedEventArgs_Delegate_Handle.Free();
                }
            }
            LongExposureInfraredFrameSource.Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(this._pNative);
            List <EventHandler <PropertyChangedEventArgs> > list2 = LongExposureInfraredFrameSource.Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[this._pNative];
            object obj2 = list2;

            lock (obj2)
            {
                if (list2.Count > 0)
                {
                    list2.Clear();
                    if (this._pNative != IntPtr.Zero)
                    {
                        IntPtr pNative2 = this._pNative;
                        if (LongExposureInfraredFrameSource.f__mg3 == null)
                        {
                            LongExposureInfraredFrameSource.f__mg3 = new LongExposureInfraredFrameSource._Windows_Data_PropertyChangedEventArgs_Delegate(LongExposureInfraredFrameSource.Windows_Data_PropertyChangedEventArgs_Delegate_Handler);
                        }
                        LongExposureInfraredFrameSource.Windows_Kinect_LongExposureInfraredFrameSource_add_PropertyChanged(pNative2, LongExposureInfraredFrameSource.f__mg3, true);
                    }
                    LongExposureInfraredFrameSource._Windows_Data_PropertyChangedEventArgs_Delegate_Handle.Free();
                }
            }
        }
 // Token: 0x06002D66 RID: 11622 RVA: 0x000DFF1D File Offset: 0x000DE31D
 internal LongExposureInfraredFrameSource(IntPtr pNative)
 {
     this._pNative = pNative;
     LongExposureInfraredFrameSource.Windows_Kinect_LongExposureInfraredFrameSource_AddRefObject(ref this._pNative);
 }