Skip to content

Commit fc01b2e

Browse files
authored
Update System.Collection declaration (#3241)
1 parent 89ae532 commit fc01b2e

File tree

2 files changed

+108
-12
lines changed

2 files changed

+108
-12
lines changed

src/nanoFramework.System.Collections/nf_system_collections.cpp

Lines changed: 78 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//
1+
//
22
// Copyright (c) .NET Foundation and Contributors
33
// See LICENSE file in the project root for full license information.
44
//
@@ -9,6 +9,71 @@
99

1010
static const CLR_RT_MethodHandler method_lookup[] =
1111
{
12+
nullptr,
13+
nullptr,
14+
nullptr,
15+
nullptr,
16+
nullptr,
17+
nullptr,
18+
nullptr,
19+
nullptr,
20+
nullptr,
21+
nullptr,
22+
nullptr,
23+
nullptr,
24+
nullptr,
25+
nullptr,
26+
nullptr,
27+
nullptr,
28+
nullptr,
29+
nullptr,
30+
nullptr,
31+
nullptr,
32+
nullptr,
33+
nullptr,
34+
nullptr,
35+
nullptr,
36+
nullptr,
37+
nullptr,
38+
nullptr,
39+
nullptr,
40+
nullptr,
41+
nullptr,
42+
nullptr,
43+
nullptr,
44+
nullptr,
45+
nullptr,
46+
nullptr,
47+
nullptr,
48+
nullptr,
49+
nullptr,
50+
nullptr,
51+
nullptr,
52+
nullptr,
53+
nullptr,
54+
nullptr,
55+
nullptr,
56+
nullptr,
57+
nullptr,
58+
nullptr,
59+
nullptr,
60+
nullptr,
61+
nullptr,
62+
nullptr,
63+
nullptr,
64+
nullptr,
65+
nullptr,
66+
nullptr,
67+
nullptr,
68+
nullptr,
69+
nullptr,
70+
nullptr,
71+
nullptr,
72+
nullptr,
73+
nullptr,
74+
nullptr,
75+
nullptr,
76+
nullptr,
1277
nullptr,
1378
nullptr,
1479
nullptr,
@@ -35,13 +100,13 @@ static const CLR_RT_MethodHandler method_lookup[] =
35100
nullptr,
36101
nullptr,
37102
Library_nf_system_collections_System_Collections_Hashtable::Clear___VOID,
38-
NULL,
39-
NULL,
40-
NULL,
41-
NULL,
42-
NULL,
43-
NULL,
44-
NULL,
103+
nullptr,
104+
nullptr,
105+
nullptr,
106+
nullptr,
107+
nullptr,
108+
nullptr,
109+
nullptr,
45110
Library_nf_system_collections_System_Collections_Hashtable::InsertNative___VOID__OBJECT__OBJECT__BOOLEAN__I4,
46111
Library_nf_system_collections_System_Collections_Hashtable::GetNative___OBJECT__OBJECT__I4,
47112
Library_nf_system_collections_System_Collections_Hashtable::ContainsNative___BOOLEAN__OBJECT__I4,
@@ -97,14 +162,17 @@ static const CLR_RT_MethodHandler method_lookup[] =
97162
Library_nf_system_collections_System_Collections_Stack::Push___VOID__OBJECT,
98163
nullptr,
99164
nullptr,
165+
nullptr,
166+
nullptr,
167+
nullptr,
100168
};
101169

102170
const CLR_RT_NativeAssemblyData g_CLR_AssemblyNative_nanoFramework_System_Collections =
103171
{
104172
"nanoFramework.System.Collections",
105-
0x40DC251F,
173+
0xECAABF30,
106174
method_lookup,
107-
{ 100, 0, 2, 0 }
175+
{ 100, 0, 3, 0 }
108176
};
109177

110178
// clang-format on

src/nanoFramework.System.Collections/nf_system_collections.h

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//
1+
//
22
// Copyright (c) .NET Foundation and Contributors
33
// Portions Copyright (c) Microsoft Corporation. All rights reserved.
44
// See LICENSE file in the project root for full license information.
@@ -20,9 +20,37 @@ struct Library_nf_system_collections_System_Collections_Bucket
2020
//--//
2121
};
2222

23+
struct Library_nf_system_collections_System_Collections_Generic_ICollectionDebugView_1
24+
{
25+
static const int FIELD___collection = 1;
26+
27+
//--//
28+
};
29+
30+
struct Library_nf_system_collections_System_Collections_Generic_List_1__Enumerator
31+
{
32+
static const int FIELD___list = 1;
33+
static const int FIELD___version = 2;
34+
static const int FIELD___index = 3;
35+
static const int FIELD___current = 4;
36+
37+
//--//
38+
};
39+
40+
struct Library_nf_system_collections_System_Collections_Generic_List_1
41+
{
42+
static const int FIELD_STATIC__s_emptyArray = 0;
43+
44+
static const int FIELD___items = 1;
45+
static const int FIELD___size = 2;
46+
static const int FIELD___version = 3;
47+
48+
//--//
49+
};
50+
2351
struct Library_nf_system_collections_System_Collections_Hashtable
2452
{
25-
static const int FIELD_STATIC___syncLock = 0;
53+
static const int FIELD_STATIC___syncLock = 1;
2654

2755
static const int FIELD___buckets = 1;
2856
static const int FIELD___loadsize = 2;

0 commit comments

Comments
 (0)