GetGenerationWR() private method

private GetGenerationWR ( IntPtr handle ) : int
handle IntPtr
return int
コード例 #1
0
ファイル: gc.cs プロジェクト: wwkkww1983/ZJCredit
        public static int GetGeneration(WeakReference wo)
        {
            int generationWr = GC.GetGenerationWR(wo.m_handle);

            GC.KeepAlive((object)wo);
            return(generationWr);
        }