FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
ClearScript/ClearScriptTest/IExplicitTestInterface.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
/
IExplicitTestInterface.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
47 lines (39 loc) · 2.02 KB
Breadcrumbs
ClearScript
/
ClearScriptTest
/
IExplicitTestInterface.cs
Copy path
File metadata and controls
47 lines (39 loc) · 2.02 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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
using
System
;
namespace
Microsoft
.
ClearScript
.
Test
{
public
interface
IExplicitTestInterface
{
int
[
]
ExplicitInterfaceProperty
{
get
;
set
;
}
short
ExplicitInterfaceScalarProperty
{
get
;
set
;
}
TestEnum
ExplicitInterfaceEnumProperty
{
get
;
set
;
}
TimeSpan
ExplicitInterfaceStructProperty
{
get
;
set
;
}
byte
ExplicitInterfaceReadOnlyProperty
{
get
;
}
event
EventHandler
<
TestEventArgs
<
short
>
>
ExplicitInterfaceEvent
;
void
ExplicitInterfaceFireEvent
(
short
arg
)
;
double
ExplicitInterfaceMethod
(
string
arg1
,
int
arg2
)
;
double
ExplicitInterfaceMethod
<
T
>
(
string
arg1
,
int
arg2
,
T
arg3
)
where
T
:
struct
;
double
ExplicitInterfaceMethod
<
T
>
(
int
arg
)
where
T
:
struct
;
double
ExplicitInterfaceBindTestMethod
<
T
>
(
T
arg
)
;
}
public
static
class
ExplicitTestInterfaceExtensions
{
public
static
double
ExplicitInterfaceExtensionMethod
(
this
IExplicitTestInterface
self
,
string
arg1
,
int
arg2
)
{
return
TestUtil
.
CalcTestValue
(
new
Guid
(
"d758e3b9-52e3-46b5-ae5c-4d0b89bddc78"
)
,
self
,
arg1
.
Length
,
arg2
)
;
}
public
static
double
ExplicitInterfaceExtensionMethod
<
T
>
(
this
IExplicitTestInterface
self
,
string
arg1
,
int
arg2
,
T
arg3
)
where
T
:
struct
{
return
TestUtil
.
CalcTestValue
(
new
Guid
(
"185c7082-c55d-435f-b3eb-418f1c27617c"
)
,
self
,
arg1
.
Length
,
arg2
,
arg3
.
ToString
(
)
.
Length
)
;
}
public
static
double
ExplicitInterfaceExtensionMethod
<
T
>
(
this
IExplicitTestInterface
self
,
int
arg
)
where
T
:
struct
{
return
TestUtil
.
CalcTestValue
(
new
Guid
(
"768b93c3-0a86-4e45-92ab-4d37613d4e09"
)
,
self
,
typeof
(
T
)
.
Name
.
Length
,
arg
)
;
}
public
static
double
ExplicitInterfaceExtensionBindTestMethod
<
T
>
(
this
IExplicitTestInterface
self
,
T
arg
)
{
return
TestUtil
.
CalcTestValue
(
new
Guid
(
"35c244d4-1473-46ce-a9cf-d633034c967d"
)
,
self
,
typeof
(
T
)
,
arg
)
;
}
}
}
Back
|
FazBrowse Home
|
New Git URL