FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
MapWindow5/src/MW5.Shared/GcHelper.cs at develop · MapWindow/MapWindow5 · GitHub
MapWindow
MapWindow5
Repository navigation
Code
Issues
14
(14)
Pull requests
12
(12)
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
MapWindow5
/
src
/
MW5.Shared
/
GcHelper.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
23 lines (21 loc) · 527 Bytes
Breadcrumbs
MapWindow5
/
src
/
MW5.Shared
/
GcHelper.cs
Copy path
File metadata and controls
23 lines (21 loc) · 527 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using
System
;
using
System
.
Collections
.
Generic
;
using
System
.
Linq
;
using
System
.
Text
;
using
System
.
Threading
;
using
System
.
Threading
.
Tasks
;
namespace
MW5
.
Shared
{
public
static
class
GcHelper
{
public
static
void
Collect
(
int
sleepMilliSenconds
=
0
)
{
GC
.
Collect
(
GC
.
MaxGeneration
,
GCCollectionMode
.
Forced
)
;
GC
.
WaitForPendingFinalizers
(
)
;
if
(
sleepMilliSenconds
!=
0
)
{
Thread
.
Sleep
(
sleepMilliSenconds
)
;
}
}
}
}
Back
|
FazBrowse Home
|
New Git URL