-
Notifications
You must be signed in to change notification settings - Fork 615
/
Copy pathStubClasses.cs
482 lines (372 loc) · 9.2 KB
/
StubClasses.cs
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
namespace FastReport.Code
{
partial class AssemblyDescriptor
{
private void AddStubClasses()
{
const string stubClassesCSharp = @"
namespace System
{
internal static class Activator {}
internal static class AppContext {}
internal static class AppDomain {}
internal static class Environment {}
}
namespace System.IO
{
internal static class Directory {}
internal static class DirectoryInfo {}
internal static class DriveInfo {}
internal static class File {}
internal static class FileInfo {}
internal static class FileStream {}
internal static class FileSystemInfo {}
internal static class Path {}
internal static class StreamReader {}
}
namespace System.Diagnostics
{
internal static class FileVersionInfo {}
internal static class Process {}
internal static class ProcessModule {}
internal static class ProcessStartInfo {}
internal static class ProcessThread {}
internal static class ProcessThreadCollection {}
internal static class StackFrame {}
}
namespace System.Reflection
{
internal static class Assembly {}
internal static class AssemblyExtensions {}
internal static class Binder {}
internal static class ConstructorInfo {}
internal static class EventInfo {}
internal static class FieldInfo {}
internal static class LocalVariableInfo {}
internal static class MemberInfo {}
internal static class MethodBase {}
internal static class MethodInfo {}
internal static class Module {}
internal static class ParameterInfo {}
internal static class PropertyInfo {}
internal static class ReflectionContext {}
internal static class TypeInfo {}
}
namespace System.Timers
{
internal static class Timer {}
}
namespace System.Windows.Forms
{
internal static class Timer {}
}
namespace System.Threading
{
internal static class AsyncLocal {}
internal static class Barrier {}
internal static class Interlocked {}
internal static class Monitor {}
internal static class Mutex {}
internal static class Overlapped {}
internal static class Semaphore {}
internal static class SemaphoreSlim {}
internal static class SynchronizationContext {}
internal static class Thread {}
internal static class ThreadPool {}
internal static class Timer {}
internal static class Volatile {}
}
namespace System.Threading.Tasks
{
internal static class ConcurrentExclusiveSchedulerPair {}
internal static class Parallel {}
internal static class Task {}
internal static class Task<TResult> {}
internal static class TaskCompletionSource<TResult> {}
internal static class TaskFactory {}
internal static class TaskFactory<TResult> {}
internal static class TaskScheduler {}
}
namespace System.Net
{
internal static class AuthenticationManager {}
internal static class Authorization {}
internal static class Cookie {}
internal static class Dns {}
internal static class DnsEndPoint {}
internal static class EndPoint {}
internal static class FileWebRequest {}
internal static class FileWebResponse {}
internal static class FtpWebRequest {}
internal static class FtpWebResponse {}
internal static class HttpListener {}
internal static class HttpListenerContext {}
internal static class HttpListenerRequest {}
internal static class HttpListenerResponse {}
internal static class HttpWebRequest {}
internal static class HttpWebResponse {}
internal static class IPAddress {}
internal static class NetworkCredential {}
internal static class ServicePoint {}
internal static class ServicePointManager {}
internal static class TransportContext {}
internal static class WebClient {}
internal static class WebProxy {}
internal static class WebRequest {}
internal static class WebResponse {}
internal static class Uri {}
}
namespace System.Net.Http
{
internal static class ByteArrayContent {}
internal static class FormUrlEncodedContent {}
internal static class HttpClient {}
internal static class HttpContent {}
internal static class HttpMethod {}
internal static class HttpRequestMessage {}
internal static class HttpResponseMessage {}
internal static class MultipartContent {}
internal static class MultipartFormDataContent {}
internal static class ReadOnlyMemoryContent {}
internal static class StreamContent {}
internal static class StringContent {}
}
namespace System.Web.UI
{
internal static class Timer {}
}
namespace FastReport.Utils
{
internal static class Config {}
}
";
const string stubClassesVBNet = @"
Namespace System
Friend Class Activator
End Class
Friend Class AppContext
End Class
Friend Class AppDomain
End Class
Friend Class Environment
End Class
End Namespace
Namespace System.IO
Friend Class Directory
End Class
Friend Class DirectoryInfo
End Class
Friend Class DriveInfo
End Class
Friend Class File
End Class
Friend Class FileInfo
End Class
Friend Class FileStream
End Class
Friend Class FileSystemInfo
End Class
Friend Class Path
End Class
Friend Class StreamReader
End Class
End Namespace
Namespace System.Diagnostics
Friend Class FileVersionInfo
End Class
Friend Class Process
End Class
Friend Class ProcessClass
End Class
Friend Class ProcessStartInfo
End Class
Friend Class ProcessThread
End Class
Friend Class ProcessThreadCollection
End Class
Friend Class StackFrame
End Class
End Namespace
Namespace System.Reflection
Friend Class Assembly
End Class
Friend Class AssemblyExtensions
End Class
Friend Class Binder
End Class
Friend Class ConstructorInfo
End Class
Friend Class EventInfo
End Class
Friend Class FieldInfo
End Class
Friend Class LocalVariableInfo
End Class
Friend Class MemberInfo
End Class
Friend Class MethodBase
End Class
Friend Class MethodInfo
End Class
Friend Class [Class]
End Class
Friend Class ParameterInfo
End Class
Friend Class PropertyInfo
End Class
Friend Class ReflectionContext
End Class
Friend Class TypeInfo
End Class
End Namespace
Namespace System.Timers
Friend Class Timer
End Class
End Namespace
Namespace System.Windows.Forms
Friend Class Timer
End Class
End Namespace
Namespace System.Threading
Friend Class AsyncLocal
End Class
Friend Class Barrier
End Class
Friend Class Interlocked
End Class
Friend Class Monitor
End Class
Friend Class Mutex
End Class
Friend Class Overlapped
End Class
Friend Class Semaphore
End Class
Friend Class SemaphoreSlim
End Class
Friend Class SynchronizationContext
End Class
Friend Class Thread
End Class
Friend Class ThreadPool
End Class
Friend Class Timer
End Class
Friend Class Volatile
End Class
End Namespace
Namespace System.Threading.Tasks
Friend Class ConcurrentExclusiveSchedulerPair
End Class
Friend Class Parallel
End Class
Friend Class Task
End Class
Friend Class Task(Of TResult)
End Class
Friend Class TaskCompletionSource(Of TResult)
End Class
Friend Class TaskFactory
End Class
Friend Class TaskFactory(Of TResult)
End Class
Friend Class TaskScheduler
End Class
End Namespace
Namespace System.Net
Friend Class AuthenticationManager
End Class
Friend Class Authorization
End Class
Friend Class Cookie
End Class
Friend Class Dns
End Class
Friend Class DnsEndPoint
End Class
Friend Class EndPoint
End Class
Friend Class FileWebRequest
End Class
Friend Class FileWebResponse
End Class
Friend Class FtpWebRequest
End Class
Friend Class FtpWebResponse
End Class
Friend Class HttpListener
End Class
Friend Class HttpListenerContext
End Class
Friend Class HttpListenerRequest
End Class
Friend Class HttpListenerResponse
End Class
Friend Class HttpWebRequest
End Class
Friend Class HttpWebResponse
End Class
Friend Class IPAddress
End Class
Friend Class NetworkCredential
End Class
Friend Class ServicePoint
End Class
Friend Class ServicePointManager
End Class
Friend Class TransportContext
End Class
Friend Class WebClient
End Class
Friend Class WebProxy
End Class
Friend Class WebRequest
End Class
Friend Class WebResponse
End Class
Friend Class Uri
End Class
End Namespace
Namespace System.Net.Http
Friend Class ByteArrayContent
End Class
Friend Class FormUrlEncodedContent
End Class
Friend Class HttpClient
End Class
Friend Class HttpContent
End Class
Friend Class HttpMethod
End Class
Friend Class HttpRequestMessage
End Class
Friend Class HttpResponseMessage
End Class
Friend Class MultipartContent
End Class
Friend Class MultipartFormDataContent
End Class
Friend Class ReadOnlyMemoryContent
End Class
Friend Class StreamContent
End Class
Friend Class StringContent
End Class
End Namespace
Namespace System.Web.UI
Friend Class Timer
End Class
End Namespace
Namespace FastReport.Utils
Friend Class Config
End Class
End Namespace
";
if (Report.ScriptLanguage == Language.CSharp)
scriptText.Append(stubClassesCSharp);
else
scriptText.Append(stubClassesVBNet);
}
}
}