Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Collect() [5/5]

static void System.GC.Collect ( int generation,
GCCollectionMode mode,
bool blocking,
bool compacting )
inlinestatic

Definition at line 139 of file GC.cs.

140 {
141 if (generation < 0)
142 {
143 throw new ArgumentOutOfRangeException("generation", SR.ArgumentOutOfRange_GenericPositive);
144 }
145 if (mode < GCCollectionMode.Default || mode > GCCollectionMode.Optimized)
146 {
147 throw new ArgumentOutOfRangeException("mode", SR.ArgumentOutOfRange_Enum);
148 }
149 int num = 0;
150 if (mode == GCCollectionMode.Optimized)
151 {
152 num |= 4;
153 }
154 if (compacting)
155 {
156 num |= 8;
157 }
158 if (blocking)
159 {
160 num |= 2;
161 }
162 else if (!compacting)
163 {
164 num |= 1;
165 }
166 _Collect(generation, num);
167 }
static void _Collect(int generation, int mode)

References System.GC._Collect(), System.SR.ArgumentOutOfRange_Enum, and System.SR.ArgumentOutOfRange_GenericPositive.