Esempio n. 1
0
 internal static CSHandleScope Create()
 {
     CSHandleScope scope = new CSHandleScope();
     CSHandleContainer container = CSHandleContainer.GetCurrent();
     scope.handleIndex = container.handles.Count;
     scope.memoryListIndex = container.memoryList.Count;
     return scope;
 }
Esempio n. 2
0
        internal static CSHandleScope Create()
        {
            CSHandleScope     scope     = new CSHandleScope();
            CSHandleContainer container = CSHandleContainer.GetCurrent();

            scope.handleIndex     = container.handles.Count;
            scope.memoryListIndex = container.memoryList.Count;
            return(scope);
        }