FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pythonnet/src/testing/classtest.cs at drop-python2 · filmor/pythonnet · GitHub
filmor
/
pythonnet
Public
forked from
pythonnet/pythonnet
Notifications
You must be signed in to change notification settings
Fork
1
Star
1
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
pythonnet
/
src
/
testing
/
classtest.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
62 lines (53 loc) · 1.18 KB
Breadcrumbs
pythonnet
/
src
/
testing
/
classtest.cs
Copy path
File metadata and controls
62 lines (53 loc) · 1.18 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
using
System
.
Collections
;
namespace
Python
.
Test
{
/// <summary>
/// Supports CLR class unit tests.
/// </summary>
public
class
ClassTest
{
public
static
ArrayList
GetArrayList
(
)
{
var
list
=
new
ArrayList
(
)
;
for
(
var
i
=
0
;
i
<
10
;
i
++
)
{
list
.
Add
(
i
)
;
}
return
list
;
}
public
static
Hashtable
GetHashtable
(
)
{
var
dict
=
new
Hashtable
(
)
;
dict
.
Add
(
"one"
,
1
)
;
dict
.
Add
(
"two"
,
2
)
;
dict
.
Add
(
"three"
,
3
)
;
dict
.
Add
(
"four"
,
4
)
;
dict
.
Add
(
"five"
,
5
)
;
return
dict
;
}
public
static
IEnumerator
GetEnumerator
(
)
{
var
temp
=
"test string"
;
return
temp
.
GetEnumerator
(
)
;
}
}
public
class
ClassCtorTest1
{
public
string
value
;
public
ClassCtorTest1
(
)
{
value
=
"default"
;
}
}
public
class
ClassCtorTest2
{
public
string
value
;
public
ClassCtorTest2
(
string
v
)
{
value
=
v
;
}
}
internal
class
InternalClass
{
}
}
Back
|
FazBrowse Home
|
New Git URL