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