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);
        }