public Snapshot ToSnapshot(UInt64 pointerRadius) { Snapshot pointerPoolSnapshot = new Snapshot(); IList <SnapshotRegion> levelRegions = new List <SnapshotRegion>(); foreach (KeyValuePair <UInt64, UInt64> pointer in this) { SnapshotRegion levelRegion = new SnapshotRegion(pointer.Key.ToIntPtr(), 1); levelRegion.Expand(pointerRadius); levelRegions.Add(levelRegion); } pointerPoolSnapshot.AddSnapshotRegions(levelRegions); return(pointerPoolSnapshot); }