Skip to content

Commit cc6a671

Browse files
committed
Remove dynamics and duck types NetOfficeFw#283 [breaking-change]
1 parent d1ad8f5 commit cc6a671

File tree

620 files changed

+1224
-1279
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

620 files changed

+1224
-1279
lines changed

Source/ADODB/DispatchInterfaces/Fields.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ public void CancelUpdate()
257257

258258
ICOMObject IEnumerableProvider<NetOffice.ADODBApi.Field>.GetComObjectEnumerator(ICOMObject parent)
259259
{
260-
return NetOffice.Utils.GetComObjectEnumeratorAsMethod(parent, this, false);
260+
return NetOffice.Utils.GetComObjectEnumeratorAsMethod(parent, this);
261261
}
262262

263263
IEnumerable IEnumerableProvider<NetOffice.ADODBApi.Field>.FetchVariantComObjectEnumerator(ICOMObject parent, ICOMObject enumerator)
@@ -290,7 +290,7 @@ public void CancelUpdate()
290290
[SupportByVersion("ADODB", 2.1,2.5)]
291291
IEnumerator NetRuntimeSystem.Collections.IEnumerable.GetEnumerator()
292292
{
293-
return NetOffice.Utils.GetProxyEnumeratorAsMethod(this, false);
293+
return NetOffice.Utils.GetProxyEnumeratorAsMethod(this);
294294
}
295295

296296
#endregion

Source/ADODB/DispatchInterfaces/Fields20.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public void Delete(object index)
193193

194194
ICOMObject IEnumerableProvider<object>.GetComObjectEnumerator(ICOMObject parent)
195195
{
196-
return NetOffice.Utils.GetComObjectEnumeratorAsMethod(parent, this, false);
196+
return NetOffice.Utils.GetComObjectEnumeratorAsMethod(parent, this);
197197
}
198198

199199
IEnumerable IEnumerableProvider<object>.FetchVariantComObjectEnumerator(ICOMObject parent, ICOMObject enumerator)
@@ -226,7 +226,7 @@ public IEnumerator<object> GetEnumerator()
226226
[SupportByVersion("ADODB", 2.5)]
227227
IEnumerator NetRuntimeSystem.Collections.IEnumerable.GetEnumerator()
228228
{
229-
return NetOffice.Utils.GetProxyEnumeratorAsMethod(this, true);
229+
return NetOffice.Utils.GetProxyEnumeratorAsMethod(this);
230230
}
231231

232232
#endregion

Source/ADODB/DispatchInterfaces/Fields20_Deprecated.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public void Delete(object index)
193193

194194
ICOMObject IEnumerableProvider<object>.GetComObjectEnumerator(ICOMObject parent)
195195
{
196-
return NetOffice.Utils.GetComObjectEnumeratorAsMethod(parent, this, false);
196+
return NetOffice.Utils.GetComObjectEnumeratorAsMethod(parent, this);
197197
}
198198

199199
IEnumerable IEnumerableProvider<object>.FetchVariantComObjectEnumerator(ICOMObject parent, ICOMObject enumerator)
@@ -226,7 +226,7 @@ public IEnumerator<object> GetEnumerator()
226226
[SupportByVersion("ADODB", 2.5)]
227227
IEnumerator NetRuntimeSystem.Collections.IEnumerable.GetEnumerator()
228228
{
229-
return NetOffice.Utils.GetProxyEnumeratorAsMethod(this, true);
229+
return NetOffice.Utils.GetProxyEnumeratorAsMethod(this);
230230
}
231231

232232
#endregion

Source/ADODB/DispatchInterfaces/Fields_Deprecated.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ public void CancelUpdate()
248248

249249
ICOMObject IEnumerableProvider<NetOffice.ADODBApi.Field_Deprecated>.GetComObjectEnumerator(ICOMObject parent)
250250
{
251-
return NetOffice.Utils.GetComObjectEnumeratorAsMethod(parent, this, false);
251+
return NetOffice.Utils.GetComObjectEnumeratorAsMethod(parent, this);
252252
}
253253

254254
IEnumerable IEnumerableProvider<NetOffice.ADODBApi.Field_Deprecated>.FetchVariantComObjectEnumerator(ICOMObject parent, ICOMObject enumerator)
@@ -281,7 +281,7 @@ public void CancelUpdate()
281281
[SupportByVersion("ADODB", 2.5)]
282282
IEnumerator NetRuntimeSystem.Collections.IEnumerable.GetEnumerator()
283283
{
284-
return NetOffice.Utils.GetProxyEnumeratorAsMethod(this, false);
284+
return NetOffice.Utils.GetProxyEnumeratorAsMethod(this);
285285
}
286286

287287
#endregion

Source/ADODB/DispatchInterfaces/Parameters.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public NetOffice.ADODBApi._Parameter this[object index]
136136

137137
ICOMObject IEnumerableProvider<NetOffice.ADODBApi._Parameter>.GetComObjectEnumerator(ICOMObject parent)
138138
{
139-
return NetOffice.Utils.GetComObjectEnumeratorAsMethod(parent, this, false);
139+
return NetOffice.Utils.GetComObjectEnumeratorAsMethod(parent, this);
140140
}
141141

142142
IEnumerable IEnumerableProvider<NetOffice.ADODBApi._Parameter>.FetchVariantComObjectEnumerator(ICOMObject parent, ICOMObject enumerator)
@@ -169,7 +169,7 @@ public NetOffice.ADODBApi._Parameter this[object index]
169169
[SupportByVersion("ADODB", 2.1,2.5)]
170170
IEnumerator NetRuntimeSystem.Collections.IEnumerable.GetEnumerator()
171171
{
172-
return NetOffice.Utils.GetProxyEnumeratorAsMethod(this, false);
172+
return NetOffice.Utils.GetProxyEnumeratorAsMethod(this);
173173
}
174174

175175
#endregion

Source/ADODB/DispatchInterfaces/Parameters_Deprecated.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public void Refresh()
157157

158158
ICOMObject IEnumerableProvider<NetOffice.ADODBApi._Parameter_Deprecated>.GetComObjectEnumerator(ICOMObject parent)
159159
{
160-
return NetOffice.Utils.GetComObjectEnumeratorAsMethod(parent, this, false);
160+
return NetOffice.Utils.GetComObjectEnumeratorAsMethod(parent, this);
161161
}
162162

163163
IEnumerable IEnumerableProvider<NetOffice.ADODBApi._Parameter_Deprecated>.FetchVariantComObjectEnumerator(ICOMObject parent, ICOMObject enumerator)
@@ -190,7 +190,7 @@ public void Refresh()
190190
[SupportByVersion("ADODB", 2.5)]
191191
IEnumerator NetRuntimeSystem.Collections.IEnumerable.GetEnumerator()
192192
{
193-
return NetOffice.Utils.GetProxyEnumeratorAsMethod(this, false);
193+
return NetOffice.Utils.GetProxyEnumeratorAsMethod(this);
194194
}
195195

196196
#endregion

Source/ADODB/DispatchInterfaces/_Collection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public void Refresh()
142142

143143
ICOMObject IEnumerableProvider<object>.GetComObjectEnumerator(ICOMObject parent)
144144
{
145-
return NetOffice.Utils.GetComObjectEnumeratorAsMethod(parent, this, false);
145+
return NetOffice.Utils.GetComObjectEnumeratorAsMethod(parent, this);
146146
}
147147

148148
IEnumerable IEnumerableProvider<object>.FetchVariantComObjectEnumerator(ICOMObject parent, ICOMObject enumerator)
@@ -175,7 +175,7 @@ public IEnumerator<object> GetEnumerator()
175175
[SupportByVersion("ADODB", 2.1,2.5)]
176176
IEnumerator NetRuntimeSystem.Collections.IEnumerable.GetEnumerator()
177177
{
178-
return NetOffice.Utils.GetProxyEnumeratorAsMethod(this, true);
178+
return NetOffice.Utils.GetProxyEnumeratorAsMethod(this);
179179
}
180180

181181
#endregion

Source/Access/DispatchInterfaces/AccessObjectProperties.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public bool IsMemberSafe(Int32 dispid)
213213

214214
ICOMObject IEnumerableProvider<NetOffice.AccessApi.AccessObjectProperty>.GetComObjectEnumerator(ICOMObject parent)
215215
{
216-
return NetOffice.Utils.GetComObjectEnumeratorAsMethod(parent, this, false);
216+
return NetOffice.Utils.GetComObjectEnumeratorAsMethod(parent, this);
217217
}
218218

219219
IEnumerable IEnumerableProvider<NetOffice.AccessApi.AccessObjectProperty>.FetchVariantComObjectEnumerator(ICOMObject parent, ICOMObject enumerator)
@@ -246,7 +246,7 @@ public bool IsMemberSafe(Int32 dispid)
246246
[SupportByVersion("Access", 9,10,11,12,14,15,16)]
247247
IEnumerator NetRuntimeSystem.Collections.IEnumerable.GetEnumerator()
248248
{
249-
return NetOffice.Utils.GetProxyEnumeratorAsMethod(this, false);
249+
return NetOffice.Utils.GetProxyEnumeratorAsMethod(this);
250250
}
251251

252252
#endregion

Source/Access/DispatchInterfaces/AllObjects.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public bool IsMemberSafe(Int32 dispid)
186186

187187
ICOMObject IEnumerableProvider<NetOffice.AccessApi.AccessObject>.GetComObjectEnumerator(ICOMObject parent)
188188
{
189-
return NetOffice.Utils.GetComObjectEnumeratorAsMethod(parent, this, false);
189+
return NetOffice.Utils.GetComObjectEnumeratorAsMethod(parent, this);
190190
}
191191

192192
IEnumerable IEnumerableProvider<NetOffice.AccessApi.AccessObject>.FetchVariantComObjectEnumerator(ICOMObject parent, ICOMObject enumerator)
@@ -219,7 +219,7 @@ public bool IsMemberSafe(Int32 dispid)
219219
[SupportByVersion("Access", 9,10,11,12,14,15,16)]
220220
IEnumerator NetRuntimeSystem.Collections.IEnumerable.GetEnumerator()
221221
{
222-
return NetOffice.Utils.GetProxyEnumeratorAsMethod(this, false);
222+
return NetOffice.Utils.GetProxyEnumeratorAsMethod(this);
223223
}
224224

225225
#endregion

Source/Access/DispatchInterfaces/Children.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public bool IsMemberSafe(Int32 dispid)
160160

161161
ICOMObject IEnumerableProvider<object>.GetComObjectEnumerator(ICOMObject parent)
162162
{
163-
return NetOffice.Utils.GetComObjectEnumeratorAsMethod(parent, this, false);
163+
return NetOffice.Utils.GetComObjectEnumeratorAsMethod(parent, this);
164164
}
165165

166166
IEnumerable IEnumerableProvider<object>.FetchVariantComObjectEnumerator(ICOMObject parent, ICOMObject enumerator)
@@ -193,7 +193,7 @@ public IEnumerator<object> GetEnumerator()
193193
[SupportByVersion("Access", 9,10,11,12,14,15,16)]
194194
IEnumerator NetRuntimeSystem.Collections.IEnumerable.GetEnumerator()
195195
{
196-
return NetOffice.Utils.GetProxyEnumeratorAsMethod(this, true);
196+
return NetOffice.Utils.GetProxyEnumeratorAsMethod(this);
197197
}
198198

199199
#endregion

0 commit comments

Comments
 (0)