FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
ClearScript/ClearScriptTest/StaticTestClass.cs at master · ClearFoundry/ClearScript · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
ClearFoundry
/
ClearScript
Public
Notifications
You must be signed in to change notification settings
Fork
167
Star
2k
Code
Issues
18
Pull requests
6
Discussions
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
ClearScript
/
ClearScriptTest
/
StaticTestClass.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
48 lines (39 loc) · 1.86 KB
Breadcrumbs
ClearScript
/
ClearScriptTest
/
StaticTestClass.cs
Copy path
File metadata and controls
48 lines (39 loc) · 1.86 KB
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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
using
System
;
namespace
Microsoft
.
ClearScript
.
Test
{
public
static
class
StaticTestClass
{
public
static
int
[
]
StaticField
;
public
static
short
StaticScalarField
;
public
static
TestEnum
StaticEnumField
;
public
static
TimeSpan
StaticStructField
;
public
static
int
[
]
StaticProperty
{
get
;
set
;
}
public
static
short
StaticScalarProperty
{
get
;
set
;
}
public
static
TestEnum
StaticEnumProperty
{
get
;
set
;
}
public
static
TimeSpan
StaticStructProperty
{
get
;
set
;
}
public
static
byte
StaticReadOnlyProperty
=>
93
;
public
static
event
EventHandler
<
TestEventArgs
<
short
>
>
StaticEvent
;
public
static
void
StaticFireEvent
(
short
arg
)
{
StaticEvent
?
.
Invoke
(
typeof
(
StaticTestClass
)
,
new
TestEventArgs
<
short
>
{
Arg
=
arg
}
)
;
}
public
static
double
StaticMethod
(
string
arg1
,
int
arg2
)
{
return
TestUtil
.
CalcTestValue
(
new
Guid
(
"e9bc20b4-3f24-4c99-b2dd-34d7e533bc10"
)
,
typeof
(
StaticTestClass
)
,
arg1
.
Length
,
arg2
)
;
}
public
static
double
StaticMethod
<
T
>
(
string
arg1
,
int
arg2
,
T
arg3
)
where
T
:
struct
{
return
TestUtil
.
CalcTestValue
(
new
Guid
(
"1f78dcb0-ecd9-4497-b67a-88684a5b3352"
)
,
typeof
(
StaticTestClass
)
,
arg1
.
Length
,
arg2
,
arg3
.
ToString
(
)
.
Length
)
;
}
public
static
double
StaticMethod
<
T
>
(
int
arg
)
where
T
:
struct
{
return
TestUtil
.
CalcTestValue
(
new
Guid
(
"6298f0a4-01c7-4600-870b-99917b92a4de"
)
,
typeof
(
StaticTestClass
)
,
typeof
(
T
)
.
Name
.
Length
,
arg
)
;
}
public
static
double
StaticBindTestMethod
<
T
>
(
T
arg
)
{
return
TestUtil
.
CalcTestValue
(
new
Guid
(
"d1e979f2-47cd-44fa-a21a-7b215f18bd67"
)
,
typeof
(
StaticTestClass
)
,
typeof
(
T
)
,
arg
)
;
}
}
}
Back
|
FazBrowse Home
|
New Git URL