FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pythonnet/src/testing/mp_lengthtest.cs at master · pythonnet/pythonnet · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
pythonnet
/
pythonnet
Public
Notifications
You must be signed in to change notification settings
Fork
780
Star
5.5k
Code
Issues
153
Pull requests
12
Discussions
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
pythonnet
/
src
/
testing
/
mp_lengthtest.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
171 lines (134 loc) · 3.7 KB
Breadcrumbs
pythonnet
/
src
/
testing
/
mp_lengthtest.cs
Copy path
File metadata and controls
171 lines (134 loc) · 3.7 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
using
System
;
using
System
.
Collections
;
using
System
.
Collections
.
Generic
;
namespace
Python
.
Test
{
public
class
MpLengthCollectionTest
:
ICollection
{
private
readonly
List
<
int
>
items
;
public
MpLengthCollectionTest
(
)
{
SyncRoot
=
new
object
(
)
;
items
=
new
List
<
int
>
{
1
,
2
,
3
}
;
}
public
int
Count
=>
items
.
Count
;
public
object
SyncRoot
{
get
;
private
set
;
}
public
bool
IsSynchronized
=>
false
;
public
void
CopyTo
(
Array
array
,
int
index
)
{
throw
new
NotImplementedException
(
)
;
}
public
IEnumerator
GetEnumerator
(
)
{
throw
new
NotImplementedException
(
)
;
}
}
public
class
MpLengthExplicitCollectionTest
:
ICollection
{
private
readonly
List
<
int
>
items
;
private
readonly
object
syncRoot
;
public
MpLengthExplicitCollectionTest
(
)
{
syncRoot
=
new
object
(
)
;
items
=
new
List
<
int
>
{
9
,
10
}
;
}
int
ICollection
.
Count
=>
items
.
Count
;
object
ICollection
.
SyncRoot
=>
syncRoot
;
bool
ICollection
.
IsSynchronized
=>
false
;
void
ICollection
.
CopyTo
(
Array
array
,
int
index
)
{
throw
new
NotImplementedException
(
)
;
}
IEnumerator
IEnumerable
.
GetEnumerator
(
)
{
throw
new
NotImplementedException
(
)
;
}
}
public
class
MpLengthGenericCollectionTest
<
T
>
:
ICollection
<
T
>
{
private
readonly
List
<
T
>
items
;
public
MpLengthGenericCollectionTest
(
)
{
SyncRoot
=
new
object
(
)
;
items
=
new
List
<
T
>
(
)
;
}
public
int
Count
=>
items
.
Count
;
public
object
SyncRoot
{
get
;
private
set
;
}
public
bool
IsSynchronized
=>
false
;
public
bool
IsReadOnly
=>
false
;
public
void
Add
(
T
item
)
{
items
.
Add
(
item
)
;
}
public
void
Clear
(
)
{
items
.
Clear
(
)
;
}
public
bool
Contains
(
T
item
)
{
return
items
.
Contains
(
item
)
;
}
public
void
CopyTo
(
T
[
]
array
,
int
arrayIndex
)
{
items
.
CopyTo
(
array
,
arrayIndex
)
;
}
public
IEnumerator
GetEnumerator
(
)
{
return
(
(
IEnumerable
)
items
)
.
GetEnumerator
(
)
;
}
public
bool
Remove
(
T
item
)
{
return
items
.
Remove
(
item
)
;
}
IEnumerator
<
T
>
IEnumerable
<
T
>
.
GetEnumerator
(
)
{
return
items
.
GetEnumerator
(
)
;
}
}
public
class
MpLengthExplicitGenericCollectionTest
<
T
>
:
ICollection
<
T
>
{
private
readonly
List
<
T
>
items
;
public
MpLengthExplicitGenericCollectionTest
(
)
{
items
=
new
List
<
T
>
(
)
;
}
int
ICollection
<
T
>
.
Count
=>
items
.
Count
;
bool
ICollection
<
T
>
.
IsReadOnly
=>
false
;
public
void
Add
(
T
item
)
{
items
.
Add
(
item
)
;
}
void
ICollection
<
T
>
.
Clear
(
)
{
items
.
Clear
(
)
;
}
bool
ICollection
<
T
>
.
Contains
(
T
item
)
{
return
items
.
Contains
(
item
)
;
}
void
ICollection
<
T
>
.
CopyTo
(
T
[
]
array
,
int
arrayIndex
)
{
items
.
CopyTo
(
array
,
arrayIndex
)
;
}
IEnumerator
<
T
>
IEnumerable
<
T
>
.
GetEnumerator
(
)
{
return
items
.
GetEnumerator
(
)
;
}
IEnumerator
IEnumerable
.
GetEnumerator
(
)
{
return
(
(
IEnumerable
)
items
)
.
GetEnumerator
(
)
;
}
bool
ICollection
<
T
>
.
Remove
(
T
item
)
{
return
items
.
Remove
(
item
)
;
}
}
}
Back
|
FazBrowse Home
|
New Git URL