Example #1
0
        public GcTypeCollection SortCount()
        {
            GcTypeCollection clone = new GcTypeCollection(this);

            clone.Sort((left, right) => - left.Count.CompareTo(right.Count));
            return(clone);
        }
Example #2
0
        public GcTypeCollection SortGen()
        {
            GcTypeCollection clone = new GcTypeCollection(this);

            clone.Sort((left, right) => left.Gen.CompareTo(right.Gen));
            return(clone);
        }
Example #3
0
        public GcTypeCollection MinimumSize(int size)
        {
            GcTypeCollection clone = new GcTypeCollection(this.Count);

            foreach (GcType type in this)
            {
                if (type.Size >= size)
                {
                    clone.Add(type);
                }
            }
            clone.TrimExcess();
            return(clone);
        }