FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
MapWindow5/src/MW5.Shared/ArrayHelper.cs at develop · MapWindow/MapWindow5 · GitHub
MapWindow
/
MapWindow5
Public
Notifications
You must be signed in to change notification settings
Fork
102
Star
308
Code
Issues
14
Pull requests
12
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
MapWindow5
/
src
/
MW5.Shared
/
ArrayHelper.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
23 lines (22 loc) · 590 Bytes
Breadcrumbs
MapWindow5
/
src
/
MW5.Shared
/
ArrayHelper.cs
Copy path
File metadata and controls
23 lines (22 loc) · 590 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
;
namespace
MW5
.
Shared
{
public
static
class
ArrayHelper
{
public
static
void
CheckCopyTo
(
Array
array
,
int
arrayIndex
,
int
collectionSize
)
{
if
(
array
==
null
)
{
throw
new
NullReferenceException
(
)
;
}
if
(
arrayIndex
<
0
)
{
throw
new
ArgumentOutOfRangeException
(
""
)
;
}
if
(
collectionSize
>
array
.
Length
-
arrayIndex
)
{
throw
new
ArgumentException
(
"Array size is too small."
)
;
}
}
}
}
Back
|
FazBrowse Home
|
New Git URL