-
Notifications
You must be signed in to change notification settings - Fork 81
/
Copy pathGeneric.py
4060 lines (2076 loc) · 113 KB
/
Generic.py
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
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# encoding: utf-8
# module System.Collections.Generic calls itself Generic
# from mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
# by generator 1.145
""" NamespaceTracker represent a CLS namespace. """
# no imports
# no functions
# classes
class Comparer(object, IComparer, IComparer[T]):
# no doc
def Compare(self, x, y):
"""
Compare(self: Comparer[T], x: T, y: T) -> int
When overridden in a derived class, performs a comparison of two objects of the same type and
returns a value indicating whether one object is less than, equal to, or greater than the other.
x: The first object to compare.
y: The second object to compare.
Returns: A signed integer that indicates the relative values of x and y, as shown in the following
table.Value Meaning Less than zero x is less than y.Zero x equals y.Greater than zero x is
greater than y.
"""
pass
@staticmethod
def Create(comparison):
""" Create(comparison: Comparison[T]) -> Comparer[T] """
pass
def __cmp__(self, *args): #cannot find CLR method
""" x.__cmp__(y) <==> cmp(x,y) """
pass
def __init__(self, *args): #cannot find CLR method
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __reduce_ex__(self, *args): #cannot find CLR method
pass
def __repr__(self, *args): #cannot find CLR method
""" __repr__(self: object) -> str """
pass
class Dictionary(object, IDictionary[TKey, TValue], ICollection[KeyValuePair[TKey, TValue]], IEnumerable[KeyValuePair[TKey, TValue]], IEnumerable, IDictionary, ICollection, IReadOnlyDictionary[TKey, TValue], IReadOnlyCollection[KeyValuePair[TKey, TValue]], ISerializable, IDeserializationCallback):
"""
Dictionary[TKey, TValue]()
Dictionary[TKey, TValue](capacity: int)
Dictionary[TKey, TValue](comparer: IEqualityComparer[TKey])
Dictionary[TKey, TValue](capacity: int, comparer: IEqualityComparer[TKey])
Dictionary[TKey, TValue](dictionary: IDictionary[TKey, TValue])
Dictionary[TKey, TValue](dictionary: IDictionary[TKey, TValue], comparer: IEqualityComparer[TKey])
"""
def Add(self, key, value):
"""
Add(self: Dictionary[TKey, TValue], key: TKey, value: TValue)
Adds the specified key and value to the dictionary.
key: The key of the element to add.
value: The value of the element to add. The value can be null for reference types.
"""
pass
def Clear(self):
"""
Clear(self: Dictionary[TKey, TValue])
Removes all keys and values from the System.Collections.Generic.Dictionary.
"""
pass
def ContainsKey(self, key):
"""
ContainsKey(self: Dictionary[TKey, TValue], key: TKey) -> bool
Determines whether the System.Collections.Generic.Dictionary contains the specified key.
key: The key to locate in the System.Collections.Generic.Dictionary.
Returns: true if the System.Collections.Generic.Dictionary contains an element with the specified key;
otherwise, false.
"""
pass
def ContainsValue(self, value):
"""
ContainsValue(self: Dictionary[TKey, TValue], value: TValue) -> bool
Determines whether the System.Collections.Generic.Dictionary contains a specific value.
value: The value to locate in the System.Collections.Generic.Dictionary. The value can be null for
reference types.
Returns: true if the System.Collections.Generic.Dictionary contains an element with the specified value;
otherwise, false.
"""
pass
def GetEnumerator(self):
"""
GetEnumerator(self: Dictionary[TKey, TValue]) -> Enumerator
Returns an enumerator that iterates through the System.Collections.Generic.Dictionary.
Returns: A System.Collections.Generic.Dictionary structure for the System.Collections.Generic.Dictionary.
"""
pass
def GetObjectData(self, info, context):
"""
GetObjectData(self: Dictionary[TKey, TValue], info: SerializationInfo, context: StreamingContext)
Implements the System.Runtime.Serialization.ISerializable interface and returns the data needed
to serialize the System.Collections.Generic.Dictionary instance.
info: A System.Runtime.Serialization.SerializationInfo object that contains the information required
to serialize the System.Collections.Generic.Dictionary instance.
context: A System.Runtime.Serialization.StreamingContext structure that contains the source and
destination of the serialized stream associated with the System.Collections.Generic.Dictionary
instance.
"""
pass
def OnDeserialization(self, sender):
"""
OnDeserialization(self: Dictionary[TKey, TValue], sender: object)
Implements the System.Runtime.Serialization.ISerializable interface and raises the
deserialization event when the deserialization is complete.
sender: The source of the deserialization event.
"""
pass
def Remove(self, key):
"""
Remove(self: Dictionary[TKey, TValue], key: TKey) -> bool
Removes the value with the specified key from the System.Collections.Generic.Dictionary.
key: The key of the element to remove.
Returns: true if the element is successfully found and removed; otherwise, false. This method returns
false if key is not found in the System.Collections.Generic.Dictionary.
"""
pass
def TryGetValue(self, key, value):
""" TryGetValue(self: Dictionary[TKey, TValue], key: TKey) -> (bool, TValue) """
pass
def __add__(self, *args): #cannot find CLR method
""" x.__add__(y) <==> x+y """
pass
def __contains__(self, *args): #cannot find CLR method
"""
__contains__(self: IDictionary[TKey, TValue], key: TKey) -> bool
Determines whether the System.Collections.Generic.IDictionary contains an element with the
specified key.
key: The key to locate in the System.Collections.Generic.IDictionary.
Returns: true if the System.Collections.Generic.IDictionary contains an element with the key; otherwise,
false.
__contains__(self: IDictionary, key: object) -> bool
Determines whether the System.Collections.IDictionary object contains an element with the
specified key.
key: The key to locate in the System.Collections.IDictionary object.
Returns: true if the System.Collections.IDictionary contains an element with the key; otherwise, false.
"""
pass
def __getitem__(self, *args): #cannot find CLR method
""" x.__getitem__(y) <==> x[y] """
pass
def __init__(self, *args): #cannot find CLR method
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __iter__(self, *args): #cannot find CLR method
""" __iter__(self: IEnumerable) -> object """
pass
def __len__(self, *args): #cannot find CLR method
""" x.__len__() <==> len(x) """
pass
@staticmethod # known case of __new__
def __new__(self, *__args):
"""
__new__(cls: type)
__new__(cls: type, capacity: int)
__new__(cls: type, comparer: IEqualityComparer[TKey])
__new__(cls: type, capacity: int, comparer: IEqualityComparer[TKey])
__new__(cls: type, dictionary: IDictionary[TKey, TValue])
__new__(cls: type, dictionary: IDictionary[TKey, TValue], comparer: IEqualityComparer[TKey])
__new__(cls: type, info: SerializationInfo, context: StreamingContext)
"""
pass
def __reduce_ex__(self, *args): #cannot find CLR method
pass
def __repr__(self, *args): #cannot find CLR method
"""
__repr__(self: Dictionary[TKey, TValue]) -> str
__repr__(self: Dictionary[K, V]) -> str
"""
pass
def __setitem__(self, *args): #cannot find CLR method
""" x.__setitem__(i, y) <==> x[i]= """
pass
Comparer = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Gets the System.Collections.Generic.IEqualityComparer that is used to determine equality of keys for the dictionary.
Get: Comparer(self: Dictionary[TKey, TValue]) -> IEqualityComparer[TKey]
"""
Count = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Gets the number of key/value pairs contained in the System.Collections.Generic.Dictionary.
Get: Count(self: Dictionary[TKey, TValue]) -> int
"""
Keys = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Gets a collection containing the keys in the System.Collections.Generic.Dictionary.
Get: Keys(self: Dictionary[TKey, TValue]) -> KeyCollection
"""
Values = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Gets a collection containing the values in the System.Collections.Generic.Dictionary.
Get: Values(self: Dictionary[TKey, TValue]) -> ValueCollection
"""
Enumerator = None
KeyCollection = None
ValueCollection = None
class EqualityComparer(object, IEqualityComparer, IEqualityComparer[T]):
# no doc
def Equals(self, *__args):
"""
Equals(self: EqualityComparer[T], x: T, y: T) -> bool
When overridden in a derived class, determines whether two objects of type T are equal.
x: The first object to compare.
y: The second object to compare.
Returns: true if the specified objects are equal; otherwise, false.
"""
pass
def GetHashCode(self, obj=None):
"""
GetHashCode(self: EqualityComparer[T], obj: T) -> int
When overridden in a derived class, serves as a hash function for the specified object for
hashing algorithms and data structures, such as a hash table.
obj: The object for which to get a hash code.
Returns: A hash code for the specified object.
"""
pass
def __eq__(self, *args): #cannot find CLR method
""" x.__eq__(y) <==> x==y """
pass
def __init__(self, *args): #cannot find CLR method
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __reduce_ex__(self, *args): #cannot find CLR method
pass
def __repr__(self, *args): #cannot find CLR method
""" __repr__(self: object) -> str """
pass
class ICollection(IEnumerable[T], IEnumerable):
# no doc
def Add(self, item):
"""
Add(self: ICollection[T], item: T)
Adds an item to the System.Collections.Generic.ICollection.
item: The object to add to the System.Collections.Generic.ICollection.
"""
pass
def Clear(self):
"""
Clear(self: ICollection[T])
Removes all items from the System.Collections.Generic.ICollection.
"""
pass
def Contains(self, item):
"""
Contains(self: ICollection[T], item: T) -> bool
Determines whether the System.Collections.Generic.ICollection contains a specific value.
item: The object to locate in the System.Collections.Generic.ICollection.
Returns: true if item is found in the System.Collections.Generic.ICollection; otherwise, false.
"""
pass
def CopyTo(self, array, arrayIndex):
""" CopyTo(self: ICollection[T], array: Array[T], arrayIndex: int) """
pass
def Remove(self, item):
"""
Remove(self: ICollection[T], item: T) -> bool
Removes the first occurrence of a specific object from the
System.Collections.Generic.ICollection.
item: The object to remove from the System.Collections.Generic.ICollection.
Returns: true if item was successfully removed from the System.Collections.Generic.ICollection;
otherwise, false. This method also returns false if item is not found in the original
System.Collections.Generic.ICollection.
"""
pass
def __add__(self, *args): #cannot find CLR method
""" x.__add__(y) <==> x+y """
pass
def __contains__(self, *args): #cannot find CLR method
""" __contains__[T](enumerable: IEnumerable[T], value: T) -> bool """
pass
def __init__(self, *args): #cannot find CLR method
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __iter__(self, *args): #cannot find CLR method
""" __iter__(self: IEnumerable) -> object """
pass
Count = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Gets the number of elements contained in the System.Collections.Generic.ICollection.
Get: Count(self: ICollection[T]) -> int
"""
IsReadOnly = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Gets a value indicating whether the System.Collections.Generic.ICollection is read-only.
Get: IsReadOnly(self: ICollection[T]) -> bool
"""
class IComparer:
# no doc
def Compare(self, x, y):
"""
Compare(self: IComparer[T], x: T, y: T) -> int
Compares two objects and returns a value indicating whether one is less than, equal to, or
greater than the other.
x: The first object to compare.
y: The second object to compare.
Returns: A signed integer that indicates the relative values of x and y, as shown in the following
table.Value Meaning Less than zerox is less than y.Zerox equals y.Greater than zerox is greater
than y.
"""
pass
def __cmp__(self, *args): #cannot find CLR method
""" x.__cmp__(y) <==> cmp(x,y) """
pass
def __init__(self, *args): #cannot find CLR method
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
class IDictionary(ICollection[KeyValuePair[TKey, TValue]], IEnumerable[KeyValuePair[TKey, TValue]], IEnumerable):
# no doc
def Add(self, key, value):
"""
Add(self: IDictionary[TKey, TValue], key: TKey, value: TValue)
Adds an element with the provided key and value to the System.Collections.Generic.IDictionary.
key: The object to use as the key of the element to add.
value: The object to use as the value of the element to add.
"""
pass
def ContainsKey(self, key):
"""
ContainsKey(self: IDictionary[TKey, TValue], key: TKey) -> bool
Determines whether the System.Collections.Generic.IDictionary contains an element with the
specified key.
key: The key to locate in the System.Collections.Generic.IDictionary.
Returns: true if the System.Collections.Generic.IDictionary contains an element with the key; otherwise,
false.
"""
pass
def Remove(self, key):
"""
Remove(self: IDictionary[TKey, TValue], key: TKey) -> bool
Removes the element with the specified key from the System.Collections.Generic.IDictionary.
key: The key of the element to remove.
Returns: true if the element is successfully removed; otherwise, false. This method also returns false
if key was not found in the original System.Collections.Generic.IDictionary.
"""
pass
def TryGetValue(self, key, value):
""" TryGetValue(self: IDictionary[TKey, TValue], key: TKey) -> (bool, TValue) """
pass
def __add__(self, *args): #cannot find CLR method
""" x.__add__(y) <==> x+y """
pass
def __contains__(self, *args): #cannot find CLR method
""" __contains__(self: ICollection[KeyValuePair[TKey, TValue]], item: KeyValuePair[TKey, TValue]) -> bool """
pass
def __getitem__(self, *args): #cannot find CLR method
""" x.__getitem__(y) <==> x[y] """
pass
def __init__(self, *args): #cannot find CLR method
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __iter__(self, *args): #cannot find CLR method
""" __iter__(self: IEnumerable) -> object """
pass
def __len__(self, *args): #cannot find CLR method
""" x.__len__() <==> len(x) """
pass
def __setitem__(self, *args): #cannot find CLR method
""" x.__setitem__(i, y) <==> x[i]= """
pass
Keys = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Gets an System.Collections.Generic.ICollection containing the keys of the System.Collections.Generic.IDictionary.
Get: Keys(self: IDictionary[TKey, TValue]) -> ICollection[TKey]
"""
Values = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Gets an System.Collections.Generic.ICollection containing the values in the System.Collections.Generic.IDictionary.
Get: Values(self: IDictionary[TKey, TValue]) -> ICollection[TValue]
"""
class IEnumerable(IEnumerable):
# no doc
def GetEnumerator(self):
"""
GetEnumerator(self: IEnumerable[T]) -> IEnumerator[T]
Returns an enumerator that iterates through the collection.
Returns: A System.Collections.Generic.IEnumerator that can be used to iterate through the collection.
"""
pass
def __init__(self, *args): #cannot find CLR method
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
class IEnumerator(IDisposable, IEnumerator):
# no doc
def next(self, *args): #cannot find CLR method
""" next(self: object) -> object """
pass
def __enter__(self, *args): #cannot find CLR method
"""
__enter__(self: IDisposable) -> object
Provides the implementation of __enter__ for objects which implement IDisposable.
"""
pass
def __exit__(self, *args): #cannot find CLR method
"""
__exit__(self: IDisposable, exc_type: object, exc_value: object, exc_back: object)
Provides the implementation of __exit__ for objects which implement IDisposable.
"""
pass
def __init__(self, *args): #cannot find CLR method
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __iter__(self, *args): #cannot find CLR method
""" __iter__[T](self: IEnumerator[T]) -> object """
pass
Current = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Gets the element in the collection at the current position of the enumerator.
Get: Current(self: IEnumerator[T]) -> T
"""
class IEqualityComparer:
# no doc
def Equals(self, x, y):
"""
Equals(self: IEqualityComparer[T], x: T, y: T) -> bool
Determines whether the specified objects are equal.
x: The first object of type T to compare.
y: The second object of type T to compare.
Returns: true if the specified objects are equal; otherwise, false.
"""
pass
def GetHashCode(self, obj):
"""
GetHashCode(self: IEqualityComparer[T], obj: T) -> int
Returns a hash code for the specified object.
obj: The System.Object for which a hash code is to be returned.
Returns: A hash code for the specified object.
"""
pass
def __eq__(self, *args): #cannot find CLR method
""" x.__eq__(y) <==> x==y """
pass
def __init__(self, *args): #cannot find CLR method
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
class IList(ICollection[T], IEnumerable[T], IEnumerable):
# no doc
def IndexOf(self, item):
"""
IndexOf(self: IList[T], item: T) -> int
Determines the index of a specific item in the System.Collections.Generic.IList.
item: The object to locate in the System.Collections.Generic.IList.
Returns: The index of item if found in the list; otherwise, -1.
"""
pass
def Insert(self, index, item):
"""
Insert(self: IList[T], index: int, item: T)
Inserts an item to the System.Collections.Generic.IList at the specified index.
index: The zero-based index at which item should be inserted.
item: The object to insert into the System.Collections.Generic.IList.
"""
pass
def RemoveAt(self, index):
"""
RemoveAt(self: IList[T], index: int)
Removes the System.Collections.Generic.IList item at the specified index.
index: The zero-based index of the item to remove.
"""
pass
def __contains__(self, *args): #cannot find CLR method
"""
__contains__(self: ICollection[T], item: T) -> bool
Determines whether the System.Collections.Generic.ICollection contains a specific value.
item: The object to locate in the System.Collections.Generic.ICollection.
Returns: true if item is found in the System.Collections.Generic.ICollection; otherwise, false.
"""
pass
def __getitem__(self, *args): #cannot find CLR method
""" x.__getitem__(y) <==> x[y] """
pass
def __init__(self, *args): #cannot find CLR method
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __iter__(self, *args): #cannot find CLR method
""" __iter__(self: IEnumerable) -> object """
pass
def __len__(self, *args): #cannot find CLR method
""" x.__len__() <==> len(x) """
pass
def __setitem__(self, *args): #cannot find CLR method
""" x.__setitem__(i, y) <==> x[i]= """
pass
class IReadOnlyCollection(IEnumerable[T], IEnumerable):
# no doc
def __contains__(self, *args): #cannot find CLR method
""" __contains__[T](enumerable: IEnumerable[T], value: T) -> bool """
pass
def __init__(self, *args): #cannot find CLR method
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __iter__(self, *args): #cannot find CLR method
""" __iter__(self: IEnumerable) -> object """
pass
Count = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Get: Count(self: IReadOnlyCollection[T]) -> int
"""
class IReadOnlyDictionary(IReadOnlyCollection[KeyValuePair[TKey, TValue]], IEnumerable[KeyValuePair[TKey, TValue]], IEnumerable):
# no doc
def ContainsKey(self, key):
""" ContainsKey(self: IReadOnlyDictionary[TKey, TValue], key: TKey) -> bool """
pass
def TryGetValue(self, key, value):
""" TryGetValue(self: IReadOnlyDictionary[TKey, TValue], key: TKey) -> (bool, TValue) """
pass
def __contains__(self, *args): #cannot find CLR method
""" __contains__[KeyValuePair`2](enumerable: IEnumerable[KeyValuePair[TKey, TValue]], value: KeyValuePair[TKey, TValue]) -> bool """
pass
def __getitem__(self, *args): #cannot find CLR method
""" x.__getitem__(y) <==> x[y] """
pass
def __init__(self, *args): #cannot find CLR method
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __iter__(self, *args): #cannot find CLR method
""" __iter__(self: IEnumerable) -> object """
pass
Keys = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Get: Keys(self: IReadOnlyDictionary[TKey, TValue]) -> IEnumerable[TKey]
"""
Values = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Get: Values(self: IReadOnlyDictionary[TKey, TValue]) -> IEnumerable[TValue]
"""
class IReadOnlyList(IReadOnlyCollection[T], IEnumerable[T], IEnumerable):
# no doc
def __contains__(self, *args): #cannot find CLR method
""" __contains__[T](enumerable: IEnumerable[T], value: T) -> bool """
pass
def __getitem__(self, *args): #cannot find CLR method
""" x.__getitem__(y) <==> x[y] """
pass
def __init__(self, *args): #cannot find CLR method
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __iter__(self, *args): #cannot find CLR method
""" __iter__(self: IEnumerable) -> object """
pass
class ISet(ICollection[T], IEnumerable[T], IEnumerable):
# no doc
def Add(self, item):
"""
Add(self: ISet[T], item: T) -> bool
Adds an element to the current set and returns a value to indicate if the element was
successfully added.
item: The element to add to the set.
Returns: true if the element is added to the set; false if the element is already in the set.
"""
pass
def ExceptWith(self, other):
"""
ExceptWith(self: ISet[T], other: IEnumerable[T])
Removes all elements in the specified collection from the current set.
other: The collection of items to remove from the set.
"""
pass
def IntersectWith(self, other):
"""
IntersectWith(self: ISet[T], other: IEnumerable[T])
Modifies the current set so that it contains only elements that are also in a specified
collection.
other: The collection to compare to the current set.
"""
pass
def IsProperSubsetOf(self, other):
"""
IsProperSubsetOf(self: ISet[T], other: IEnumerable[T]) -> bool
Determines whether the current set is a proper (strict) subset of a specified collection.
other: The collection to compare to the current set.
Returns: true if the current set is a proper subset of other; otherwise, false.
"""
pass
def IsProperSupersetOf(self, other):
"""
IsProperSupersetOf(self: ISet[T], other: IEnumerable[T]) -> bool
Determines whether the current set is a proper (strict) superset of a specified collection.
other: The collection to compare to the current set.
Returns: true if the current set is a proper superset of other; otherwise, false.
"""
pass
def IsSubsetOf(self, other):
"""
IsSubsetOf(self: ISet[T], other: IEnumerable[T]) -> bool
Determines whether a set is a subset of a specified collection.
other: The collection to compare to the current set.
Returns: true if the current set is a subset of other; otherwise, false.
"""
pass
def IsSupersetOf(self, other):
"""
IsSupersetOf(self: ISet[T], other: IEnumerable[T]) -> bool
Determines whether the current set is a superset of a specified collection.
other: The collection to compare to the current set.
Returns: true if the current set is a superset of other; otherwise, false.
"""
pass
def Overlaps(self, other):
"""
Overlaps(self: ISet[T], other: IEnumerable[T]) -> bool
Determines whether the current set overlaps with the specified collection.
other: The collection to compare to the current set.
Returns: true if the current set and other share at least one common element; otherwise, false.
"""
pass
def SetEquals(self, other):
"""
SetEquals(self: ISet[T], other: IEnumerable[T]) -> bool
Determines whether the current set and the specified collection contain the same elements.
other: The collection to compare to the current set.
Returns: true if the current set is equal to other; otherwise, false.
"""
pass
def SymmetricExceptWith(self, other):
"""
SymmetricExceptWith(self: ISet[T], other: IEnumerable[T])
Modifies the current set so that it contains only elements that are present either in the
current set or in the specified collection, but not both.
other: The collection to compare to the current set.
"""
pass
def UnionWith(self, other):
"""
UnionWith(self: ISet[T], other: IEnumerable[T])
Modifies the current set so that it contains all elements that are present in both the current
set and in the specified collection.
other: The collection to compare to the current set.
"""
pass
def __add__(self, *args): #cannot find CLR method
""" x.__add__(y) <==> x+y """
pass
def __contains__(self, *args): #cannot find CLR method
"""
__contains__(self: ICollection[T], item: T) -> bool
Determines whether the System.Collections.Generic.ICollection contains a specific value.
item: The object to locate in the System.Collections.Generic.ICollection.
Returns: true if item is found in the System.Collections.Generic.ICollection; otherwise, false.
"""
pass
def __init__(self, *args): #cannot find CLR method
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __iter__(self, *args): #cannot find CLR method
""" __iter__(self: IEnumerable) -> object """
pass
def __len__(self, *args): #cannot find CLR method
""" x.__len__() <==> len(x) """
pass
class KeyNotFoundException(SystemException, ISerializable, _Exception):
"""
The exception that is thrown when the key specified for accessing an element in a collection does not match any key in the collection.
KeyNotFoundException()
KeyNotFoundException(message: str)
KeyNotFoundException(message: str, innerException: Exception)
"""
def add_SerializeObjectState(self, *args): #cannot find CLR method
""" add_SerializeObjectState(self: Exception, value: EventHandler[SafeSerializationEventArgs]) """
pass
def remove_SerializeObjectState(self, *args): #cannot find CLR method
""" remove_SerializeObjectState(self: Exception, value: EventHandler[SafeSerializationEventArgs]) """
pass
def __init__(self, *args): #cannot find CLR method
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
@staticmethod # known case of __new__
def __new__(self, message=None, innerException=None):
"""
__new__(cls: type)
__new__(cls: type, message: str)
__new__(cls: type, message: str, innerException: Exception)
__new__(cls: type, info: SerializationInfo, context: StreamingContext)
"""
pass
def __reduce_ex__(self, *args): #cannot find CLR method
pass
def __str__(self, *args): #cannot find CLR method
pass
class KeyValuePair(object):
""" KeyValuePair[TKey, TValue](key: TKey, value: TValue) """
def ToString(self):
"""
ToString(self: KeyValuePair[TKey, TValue]) -> str
Returns a string representation of the System.Collections.Generic.KeyValuePair, using the string
representations of the key and value.
Returns: A string representation of the System.Collections.Generic.KeyValuePair, which includes the
string representations of the key and value.
"""
pass
@staticmethod # known case of __new__
def __new__(self, key, value):
"""
__new__(cls: type, key: TKey, value: TValue)
__new__[KeyValuePair`2]() -> KeyValuePair[TKey, TValue]
"""
pass
Key = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Gets the key in the key/value pair.
Get: Key(self: KeyValuePair[TKey, TValue]) -> TKey
"""
Value = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Gets the value in the key/value pair.
Get: Value(self: KeyValuePair[TKey, TValue]) -> TValue
"""
class LinkedList(object, ICollection[T], IEnumerable[T], IEnumerable, ICollection, IReadOnlyCollection[T], ISerializable, IDeserializationCallback):
"""
LinkedList[T]()
LinkedList[T](collection: IEnumerable[T])
"""
def AddAfter(self, node, *__args):
"""
AddAfter(self: LinkedList[T], node: LinkedListNode[T], value: T) -> LinkedListNode[T]
Adds a new node containing the specified value after the specified existing node in the
System.Collections.Generic.LinkedList.
node: The System.Collections.Generic.LinkedListNode after which to insert a new
System.Collections.Generic.LinkedListNode containing value.
value: The value to add to the System.Collections.Generic.LinkedList.
Returns: The new System.Collections.Generic.LinkedListNode containing value.
AddAfter(self: LinkedList[T], node: LinkedListNode[T], newNode: LinkedListNode[T])
Adds the specified new node after the specified existing node in the
System.Collections.Generic.LinkedList.
node: The System.Collections.Generic.LinkedListNode after which to insert newNode.
newNode: The new System.Collections.Generic.LinkedListNode to add to the
System.Collections.Generic.LinkedList.
"""
pass
def AddBefore(self, node, *__args):
"""
AddBefore(self: LinkedList[T], node: LinkedListNode[T], newNode: LinkedListNode[T])
Adds the specified new node before the specified existing node in the
System.Collections.Generic.LinkedList.
node: The System.Collections.Generic.LinkedListNode before which to insert newNode.
newNode: The new System.Collections.Generic.LinkedListNode to add to the
System.Collections.Generic.LinkedList.
AddBefore(self: LinkedList[T], node: LinkedListNode[T], value: T) -> LinkedListNode[T]
Adds a new node containing the specified value before the specified existing node in the
System.Collections.Generic.LinkedList.
node: The System.Collections.Generic.LinkedListNode before which to insert a new
System.Collections.Generic.LinkedListNode containing value.
value: The value to add to the System.Collections.Generic.LinkedList.
Returns: The new System.Collections.Generic.LinkedListNode containing value.