917 references to Requires
mscorlib (549)
microsoft\win32\oavariantlib.cs (1)
104
Contract.
Requires
(ctype != null);
microsoft\win32\registrykey.cs (1)
1732
Contract.
Requires
(path != null);
system\appdomain.cs (7)
1036
Contract.
Requires
(providedSecurityInfo != null);
1054
Contract.
Requires
(activationContext != null);
1157
Contract.
Requires
(args != null);
1175
Contract.
Requires
(args != null);
3517
Contract.
Requires
(info != null);
3729
Contract.
Requires
(arg != null && arg is Object[]);
3730
Contract.
Requires
(((Object[])arg).Length >= 8);
system\array.cs (1)
614
Contract.
Requires
(low <= hi);
system\arraysegment.cs (4)
294
Contract.
Requires
(arraySegment.Array != null);
295
Contract.
Requires
(arraySegment.Offset >= 0);
296
Contract.
Requires
(arraySegment.Count >= 0);
297
Contract.
Requires
(arraySegment.Offset + arraySegment.Count <= arraySegment.Array.Length);
system\attribute.cs (13)
30
Contract.
Requires
(element != null);
31
Contract.
Requires
(type != null);
32
Contract.
Requires
(type.IsSubclassOf(typeof(Attribute)) || type == typeof(Attribute));
95
Contract.
Requires
(property != null);
138
Contract.
Requires
(element != null);
139
Contract.
Requires
(type != null);
140
Contract.
Requires
(type.IsSubclassOf(typeof(Attribute)) || type == typeof(Attribute));
169
Contract.
Requires
(ev != null);
187
Contract.
Requires
(element != null);
218
Contract.
Requires
(param != null);
239
Contract.
Requires
(param != null);
329
Contract.
Requires
(param != null);
330
Contract.
Requires
(type != null);
system\charenumerator.cs (1)
30
Contract.
Requires
(str != null);
system\collections\generic\arraysorthelper.cs (126)
295
Contract.
Requires
(keys != null);
296
Contract.
Requires
(comparer != null);
297
Contract.
Requires
(left >= 0);
298
Contract.
Requires
(length >= 0);
299
Contract.
Requires
(length <= keys.Length);
300
Contract.
Requires
(length + left <= keys.Length);
310
Contract.
Requires
(keys != null);
311
Contract.
Requires
(comparer != null);
312
Contract.
Requires
(lo >= 0);
313
Contract.
Requires
(hi < keys.Length);
357
Contract.
Requires
(keys != null);
358
Contract.
Requires
(comparer != null);
359
Contract.
Requires
(lo >= 0);
360
Contract.
Requires
(hi > lo);
361
Contract.
Requires
(hi < keys.Length);
394
Contract.
Requires
(keys != null);
395
Contract.
Requires
(comparer != null);
396
Contract.
Requires
(lo >= 0);
397
Contract.
Requires
(hi > lo);
398
Contract.
Requires
(hi < keys.Length);
414
Contract.
Requires
(keys != null);
415
Contract.
Requires
(comparer != null);
416
Contract.
Requires
(lo >= 0);
417
Contract.
Requires
(lo < keys.Length);
438
Contract.
Requires
(keys != null);
439
Contract.
Requires
(lo >= 0);
440
Contract.
Requires
(hi >= lo);
441
Contract.
Requires
(hi <= keys.Length);
597
Contract.
Requires
(keys != null);
598
Contract.
Requires
(0 <= a && a < keys.Length);
599
Contract.
Requires
(0 <= b && b < keys.Length);
624
Contract.
Requires
(keys != null);
625
Contract.
Requires
(0 <= left && left < keys.Length);
626
Contract.
Requires
(0 <= right && right < keys.Length);
696
Contract.
Requires
(keys != null);
697
Contract.
Requires
(left >= 0);
698
Contract.
Requires
(length >= 0);
699
Contract.
Requires
(length <= keys.Length);
700
Contract.
Requires
(length + left <= keys.Length);
710
Contract.
Requires
(keys != null);
711
Contract.
Requires
(lo >= 0);
712
Contract.
Requires
(hi < keys.Length);
756
Contract.
Requires
(keys != null);
757
Contract.
Requires
(lo >= 0);
758
Contract.
Requires
(hi > lo);
759
Contract.
Requires
(hi < keys.Length);
800
Contract.
Requires
(keys != null);
801
Contract.
Requires
(lo >= 0);
802
Contract.
Requires
(hi > lo);
803
Contract.
Requires
(hi < keys.Length);
819
Contract.
Requires
(keys != null);
820
Contract.
Requires
(lo >= 0);
821
Contract.
Requires
(lo < keys.Length);
842
Contract.
Requires
(keys != null);
843
Contract.
Requires
(lo >= 0);
844
Contract.
Requires
(hi >= lo);
845
Contract.
Requires
(hi <= keys.Length);
947
Contract.
Requires
(keys != null);
948
Contract.
Requires
(values == null || values.Length >= keys.Length);
949
Contract.
Requires
(comparer != null);
950
Contract.
Requires
(0 <= a && a < keys.Length);
951
Contract.
Requires
(0 <= b && b < keys.Length);
1050
Contract.
Requires
(keys != null);
1051
Contract.
Requires
(values != null);
1052
Contract.
Requires
(comparer != null);
1053
Contract.
Requires
(left >= 0);
1054
Contract.
Requires
(length >= 0);
1055
Contract.
Requires
(length <= keys.Length);
1056
Contract.
Requires
(length + left <= keys.Length);
1057
Contract.
Requires
(length + left <= values.Length);
1067
Contract.
Requires
(keys != null);
1068
Contract.
Requires
(values != null);
1069
Contract.
Requires
(comparer != null);
1070
Contract.
Requires
(lo >= 0);
1071
Contract.
Requires
(hi < keys.Length);
1115
Contract.
Requires
(keys != null);
1116
Contract.
Requires
(values != null);
1117
Contract.
Requires
(comparer != null);
1118
Contract.
Requires
(lo >= 0);
1119
Contract.
Requires
(hi > lo);
1120
Contract.
Requires
(hi < keys.Length);
1153
Contract.
Requires
(keys != null);
1154
Contract.
Requires
(values != null);
1155
Contract.
Requires
(comparer != null);
1156
Contract.
Requires
(lo >= 0);
1157
Contract.
Requires
(hi > lo);
1158
Contract.
Requires
(hi < keys.Length);
1174
Contract.
Requires
(keys != null);
1175
Contract.
Requires
(comparer != null);
1176
Contract.
Requires
(lo >= 0);
1177
Contract.
Requires
(lo < keys.Length);
1203
Contract.
Requires
(keys != null);
1204
Contract.
Requires
(values != null);
1205
Contract.
Requires
(comparer != null);
1206
Contract.
Requires
(lo >= 0);
1207
Contract.
Requires
(hi >= lo);
1208
Contract.
Requires
(hi <= keys.Length);
1407
Contract.
Requires
(keys != null);
1408
Contract.
Requires
(values != null);
1409
Contract.
Requires
(left >= 0);
1410
Contract.
Requires
(length >= 0);
1411
Contract.
Requires
(length <= keys.Length);
1412
Contract.
Requires
(length + left <= keys.Length);
1413
Contract.
Requires
(length + left <= values.Length);
1423
Contract.
Requires
(keys != null);
1424
Contract.
Requires
(values != null);
1425
Contract.
Requires
(lo >= 0);
1426
Contract.
Requires
(hi < keys.Length);
1470
Contract.
Requires
(keys != null);
1471
Contract.
Requires
(values != null);
1472
Contract.
Requires
(lo >= 0);
1473
Contract.
Requires
(hi > lo);
1474
Contract.
Requires
(hi < keys.Length);
1515
Contract.
Requires
(keys != null);
1516
Contract.
Requires
(values != null);
1517
Contract.
Requires
(lo >= 0);
1518
Contract.
Requires
(hi > lo);
1519
Contract.
Requires
(hi < keys.Length);
1535
Contract.
Requires
(keys != null);
1536
Contract.
Requires
(lo >= 0);
1537
Contract.
Requires
(lo < keys.Length);
1563
Contract.
Requires
(keys != null);
1564
Contract.
Requires
(values != null);
1565
Contract.
Requires
(lo >= 0);
1566
Contract.
Requires
(hi >= lo);
1567
Contract.
Requires
(hi <= keys.Length);
system\collections\hashtable.cs (6)
559
Contract.
Requires
(array != null);
560
Contract.
Requires
(array.Rank == 1);
575
Contract.
Requires
(array != null);
576
Contract.
Requires
(array.Rank == 1);
628
Contract.
Requires
(array != null);
629
Contract.
Requires
(array.Rank == 1);
system\diagnostics\contracts\contractsbcl.cs (1)
164
Contract.
Requires
(originalException == null || failureKind == ContractFailureKind.PostconditionOnException);
system\enum.cs (4)
136
Contract.
Requires
(eT != null);
137
Contract.
Requires
(value != null);
156
Contract.
Requires
(eT != null);
157
Contract.
Requires
(value != null);
system\globalization\culturedata.cs (3)
2820
Contract.
Requires
(str != null);
2821
Contract.
Requires
(start >= 0);
2822
Contract.
Requires
(end >= 0);
system\globalization\datetimeformat.cs (2)
914
Contract.
Requires
(dtfi != null);
1069
Contract.
Requires
(dtfi != null);
system\globalization\datetimeformatinfo.cs (6)
348
Contract.
Requires
(cultureData != null);
349
Contract.
Requires
(cal != null);
366
Contract.
Requires
(cultureData != null);
1380
Contract.
Requires
(values.Length >= length);
1660
Contract.
Requires
(patterns1 != null);
1661
Contract.
Requires
(patterns2 != null);
system\io\binaryreader.cs (2)
326
Contract.
Requires
(buffer != null);
327
Contract.
Requires
(index >= 0 && count >= 0);
system\io\bufferedstream.cs (3)
134
Contract.
Requires
(_stream != null);
143
Contract.
Requires
(_stream != null);
152
Contract.
Requires
(_stream != null);
system\io\directory.cs (36)
107
Contract.
Requires
(path != null);
108
Contract.
Requires
(path.Length != 0);
644
Contract.
Requires
(path != null);
645
Contract.
Requires
(searchPattern != null);
646
Contract.
Requires
(searchOption == SearchOption.AllDirectories || searchOption == SearchOption.TopDirectoryOnly);
656
Contract.
Requires
(path != null);
657
Contract.
Requires
(searchPattern != null);
658
Contract.
Requires
(searchOption == SearchOption.AllDirectories || searchOption == SearchOption.TopDirectoryOnly);
716
Contract.
Requires
(path != null);
717
Contract.
Requires
(searchPattern != null);
718
Contract.
Requires
(searchOption == SearchOption.AllDirectories || searchOption == SearchOption.TopDirectoryOnly);
729
Contract.
Requires
(path != null);
730
Contract.
Requires
(searchPattern != null);
731
Contract.
Requires
(searchOption == SearchOption.AllDirectories || searchOption == SearchOption.TopDirectoryOnly);
788
Contract.
Requires
(path != null);
789
Contract.
Requires
(searchPattern != null);
790
Contract.
Requires
(searchOption == SearchOption.AllDirectories || searchOption == SearchOption.TopDirectoryOnly);
802
Contract.
Requires
(fullPath != null && fullPath.Length > 0);
803
Contract.
Requires
(userPath != null && userPath.Length > 0);
804
Contract.
Requires
(searchOption == SearchOption.AllDirectories || searchOption == SearchOption.TopDirectoryOnly);
826
Contract.
Requires
(path != null);
827
Contract.
Requires
(userPathOriginal != null);
828
Contract.
Requires
(searchPattern != null);
829
Contract.
Requires
(searchOption == SearchOption.AllDirectories || searchOption == SearchOption.TopDirectoryOnly);
881
Contract.
Requires
(path != null);
882
Contract.
Requires
(searchPattern != null);
883
Contract.
Requires
(searchOption == SearchOption.AllDirectories || searchOption == SearchOption.TopDirectoryOnly);
934
Contract.
Requires
(path != null);
935
Contract.
Requires
(searchPattern != null);
936
Contract.
Requires
(searchOption == SearchOption.AllDirectories || searchOption == SearchOption.TopDirectoryOnly);
988
Contract.
Requires
(path != null);
989
Contract.
Requires
(searchPattern != null);
990
Contract.
Requires
(searchOption == SearchOption.AllDirectories || searchOption == SearchOption.TopDirectoryOnly);
999
Contract.
Requires
(path != null);
1000
Contract.
Requires
(searchPattern != null);
1001
Contract.
Requires
(searchOption == SearchOption.AllDirectories || searchOption == SearchOption.TopDirectoryOnly);
system\io\directoryinfo.cs (13)
239
Contract.
Requires
(path != null);
362
Contract.
Requires
(searchPattern != null);
363
Contract.
Requires
(searchOption == SearchOption.AllDirectories || searchOption == SearchOption.TopDirectoryOnly);
420
Contract.
Requires
(searchPattern != null);
421
Contract.
Requires
(searchOption == SearchOption.AllDirectories || searchOption == SearchOption.TopDirectoryOnly);
474
Contract.
Requires
(searchPattern != null);
475
Contract.
Requires
(searchOption == SearchOption.AllDirectories || searchOption == SearchOption.TopDirectoryOnly);
517
Contract.
Requires
(searchPattern != null);
518
Contract.
Requires
(searchOption == SearchOption.AllDirectories || searchOption == SearchOption.TopDirectoryOnly);
558
Contract.
Requires
(searchPattern != null);
559
Contract.
Requires
(searchOption == SearchOption.AllDirectories || searchOption == SearchOption.TopDirectoryOnly);
599
Contract.
Requires
(searchPattern != null);
600
Contract.
Requires
(searchOption == SearchOption.AllDirectories || searchOption == SearchOption.TopDirectoryOnly);
system\io\file.cs (23)
148
Contract.
Requires
(sourceFileName != null);
149
Contract.
Requires
(destFileName != null);
150
Contract.
Requires
(sourceFileName.Length > 0);
151
Contract.
Requires
(destFileName.Length > 0);
829
Contract.
Requires
(path != null);
830
Contract.
Requires
(encoding != null);
831
Contract.
Requires
(path.Length > 0);
886
Contract.
Requires
(path != null);
887
Contract.
Requires
(encoding != null);
888
Contract.
Requires
(path.Length > 0);
974
Contract.
Requires
(path != null);
975
Contract.
Requires
(path.Length != 0);
976
Contract.
Requires
(bytes != null);
1017
Contract.
Requires
(path != null);
1018
Contract.
Requires
(encoding != null);
1019
Contract.
Requires
(path.Length != 0);
1127
Contract.
Requires
(writer != null);
1128
Contract.
Requires
(contents != null);
1171
Contract.
Requires
(path != null);
1172
Contract.
Requires
(encoding != null);
1173
Contract.
Requires
(path.Length > 0);
1303
Contract.
Requires
(sourceFileName != null);
1304
Contract.
Requires
(destinationFileName != null);
system\io\filesystemenumerable.cs (24)
43
Contract.
Requires
(path != null);
44
Contract.
Requires
(originalUserPath != null);
45
Contract.
Requires
(searchPattern != null);
53
Contract.
Requires
(path != null);
54
Contract.
Requires
(originalUserPath != null);
55
Contract.
Requires
(searchPattern != null);
64
Contract.
Requires
(path != null);
65
Contract.
Requires
(originalUserPath != null);
66
Contract.
Requires
(searchPattern != null);
74
Contract.
Requires
(path != null);
75
Contract.
Requires
(originalUserPath != null);
76
Contract.
Requires
(searchPattern != null);
195
Contract.
Requires
(path != null);
196
Contract.
Requires
(originalUserPath != null);
197
Contract.
Requires
(searchPattern != null);
198
Contract.
Requires
(searchOption == SearchOption.AllDirectories || searchOption == SearchOption.TopDirectoryOnly);
199
Contract.
Requires
(resultHandler != null);
525
Contract.
Requires
(localSearchData != null);
597
Contract.
Requires
(searchPattern != null);
614
Contract.
Requires
(fullSearchString != null);
615
Contract.
Requires
(fullPathMod != null);
616
Contract.
Requires
(fullSearchString.Length >= fullPathMod.Length);
635
Contract.
Requires
(fullPath != null);
636
Contract.
Requires
(searchPattern != null);
system\io\isolatedstorage\isolatedstoragefile.cs (2)
1250
Contract.
Requires
(searchPattern != null);
1600
Contract.
Requires
(path != null);
system\io\longpath.cs (34)
43
Contract.
Requires
(path != null);
52
Contract.
Requires
(path != null);
58
Contract.
Requires
(path1 != null);
59
Contract.
Requires
(path2 != null);
60
Contract.
Requires
(path2.Length != 0);
61
Contract.
Requires
(!IsPathRooted(path2));
94
Contract.
Requires
(path != null);
167
Contract.
Requires
(path != null);
192
Contract.
Requires
(sourceFileName != null);
193
Contract.
Requires
(destFileName != null);
194
Contract.
Requires
(sourceFileName.Length > 0);
195
Contract.
Requires
(destFileName.Length > 0);
209
Contract.
Requires
(fullSourceFileName != null);
210
Contract.
Requires
(fullDestFileName != null);
211
Contract.
Requires
(fullSourceFileName.Length > 0);
212
Contract.
Requires
(fullDestFileName.Length > 0);
256
Contract.
Requires
(path != null);
316
Contract.
Requires
(path != null);
326
Contract.
Requires
(path != null);
347
Contract.
Requires
(path != null);
367
Contract.
Requires
(path != null);
394
Contract.
Requires
(sourceFileName != null);
395
Contract.
Requires
(destFileName != null);
396
Contract.
Requires
(sourceFileName.Length > 0);
397
Contract.
Requires
(destFileName.Length > 0);
420
Contract.
Requires
(path != null);
449
Contract.
Requires
(path != null);
450
Contract.
Requires
(path.Length > 0);
623
Contract.
Requires
(sourceDirName != null);
624
Contract.
Requires
(destDirName != null);
625
Contract.
Requires
(sourceDirName.Length != 0);
626
Contract.
Requires
(destDirName.Length != 0);
936
Contract.
Requires
(path != null);
945
Contract.
Requires
(path != null);
system\io\pathhelper.cs (4)
65
Contract.
Requires
(charArrayPtr != null);
67
Contract.
Requires
(length == Path.MaxPath);
120
Contract.
Requires
(index >= 0 && index < Length);
130
Contract.
Requires
(index >= 0 && index < Length);
system\io\ReadLinesIterator.cs (4)
35
Contract.
Requires
(path != null);
36
Contract.
Requires
(path.Length > 0);
37
Contract.
Requires
(encoding != null);
38
Contract.
Requires
(reader != null);
system\io\stream.cs (12)
164
Contract.
Requires
(destination != null);
165
Contract.
Requires
(bufferSize > 0);
166
Contract.
Requires
(CanRead);
167
Contract.
Requires
(destination.CanWrite);
220
Contract.
Requires
(destination != null);
221
Contract.
Requires
(CanRead);
222
Contract.
Requires
(destination.CanWrite);
223
Contract.
Requires
(bufferSize > 0);
537
Contract.
Requires
(readWriteTask != null);
636
Contract.
Requires
(function != null);
637
Contract.
Requires
(stream != null);
638
Contract.
Requires
(buffer != null);
system\io\streamwriter.cs (5)
546
Contract.
Requires
(value != null);
635
Contract.
Requires
(count == 0 || (count > 0 && buffer != null));
636
Contract.
Requires
(index >= 0);
637
Contract.
Requires
(count >= 0);
638
Contract.
Requires
(buffer == null || (buffer != null && buffer.Length - index >= count));
system\io\textreader.cs (8)
234
Contract.
Requires
(buffer != null);
235
Contract.
Requires
(index >= 0);
236
Contract.
Requires
(count >= 0);
237
Contract.
Requires
(buffer.Length - index >= count);
262
Contract.
Requires
(buffer != null);
263
Contract.
Requires
(index >= 0);
264
Contract.
Requires
(count >= 0);
265
Contract.
Requires
(buffer.Length - index >= count);
system\object.cs (6)
131
Contract.
Requires
(typeName != null);
132
Contract.
Requires
(fieldName != null);
166
Contract.
Requires
(typeName != null);
167
Contract.
Requires
(fieldName != null);
180
Contract.
Requires
(typeName != null);
181
Contract.
Requires
(fieldName != null);
system\reflection\customattribute.cs (44)
1189
Contract.
Requires
(type != null);
1219
Contract.
Requires
(method != null);
1220
Contract.
Requires
(caType != null);
1247
Contract.
Requires
(ctor != null);
1248
Contract.
Requires
(caType != null);
1259
Contract.
Requires
(property != null);
1260
Contract.
Requires
(caType != null);
1271
Contract.
Requires
(e != null);
1272
Contract.
Requires
(caType != null);
1283
Contract.
Requires
(field != null);
1284
Contract.
Requires
(caType != null);
1295
Contract.
Requires
(parameter != null);
1296
Contract.
Requires
(caType != null);
1307
Contract.
Requires
(assembly != null);
1308
Contract.
Requires
(caType != null);
1319
Contract.
Requires
(module != null);
1320
Contract.
Requires
(caType != null);
1331
Contract.
Requires
(type != null);
1332
Contract.
Requires
(caType != null);
1414
Contract.
Requires
(method is RuntimeMethodInfo || method is RuntimeConstructorInfo);
1435
Contract.
Requires
(method != null);
1436
Contract.
Requires
(caType != null);
1480
Contract.
Requires
(ctor != null);
1481
Contract.
Requires
(caType != null);
1493
Contract.
Requires
(property != null);
1494
Contract.
Requires
(caType != null);
1512
Contract.
Requires
(e != null);
1513
Contract.
Requires
(caType != null);
1530
Contract.
Requires
(field != null);
1531
Contract.
Requires
(caType != null);
1543
Contract.
Requires
(parameter != null);
1544
Contract.
Requires
(caType != null);
1556
Contract.
Requires
(assembly != null);
1557
Contract.
Requires
(caType != null);
1571
Contract.
Requires
(module != null);
1572
Contract.
Requires
(caType != null);
2182
Contract.
Requires
(type != null);
2183
Contract.
Requires
(caType != null);
2255
Contract.
Requires
(method != null);
2256
Contract.
Requires
(caType != null);
2320
Contract.
Requires
(parameter != null);
2321
Contract.
Requires
(caType != null);
2437
Contract.
Requires
(field != null);
2438
Contract.
Requires
(caType != null);
system\reflection\emit\assemblybuilder.cs (1)
231
Contract.
Requires
(module != null);
system\reflection\emit\ilgenerator.cs (4)
35
Contract.
Requires
(incoming != null);
124
Contract.
Requires
(methodBuilder != null);
125
Contract.
Requires
(methodBuilder is MethodBuilder || methodBuilder is DynamicMethod);
1604
Contract.
Requires
(exc != null);
system\reflection\emit\signaturehelper.cs (2)
310
Contract.
Requires
(clsArgument != null);
311
Contract.
Requires
((optionalCustomModifiers == null && requiredCustomModifiers == null) || !clsArgument.ContainsGenericParameters);
system\reflection\emit\typebuilder.cs (2)
577
Contract.
Requires
(declMeth != null);
587
Contract.
Requires
(declType != null);
system\reflection\eventinfo.cs (2)
254
Contract.
Requires
(declaredType != null);
255
Contract.
Requires
(reflectedTypeCache != null);
system\reflection\mdimport.cs (1)
277
Contract.
Requires
(0 <= index && index < Length);
system\reflection\parameterinfo.cs (1)
476
Contract.
Requires
(member != null);
system\reflection\propertyinfo.cs (5)
215
Contract.
Requires
(declaredType != null);
216
Contract.
Requires
(reflectedTypeCache != null);
296
Contract.
Requires
(Name.Equals(target.Name));
297
Contract.
Requires
(this != target);
298
Contract.
Requires
(this.ReflectedType == target.ReflectedType);
system\resources\resourcewriter.cs (2)
600
Contract.
Requires
(writer != null);
730
Contract.
Requires
(store != null);
system\rttype.cs (11)
119
Contract.
Requires
(index < Count);
929
Contract.
Requires
(declaringType != null);
930
Contract.
Requires
(ReflectedType != null);
982
Contract.
Requires
(declaringType != null);
983
Contract.
Requires
(ReflectedType != null);
1228
Contract.
Requires
(ReflectedType != null);
1322
Contract.
Requires
(ReflectedType != null);
2401
Contract.
Requires
(memberInfo != null);
2402
Contract.
Requires
(name == null || (bindingFlags & BindingFlags.IgnoreCase) == 0 || (name.ToLower(CultureInfo.InvariantCulture).Equals(name)));
2483
Contract.
Requires
((object)type != null);
2518
Contract.
Requires
(methodBase != null);
system\runtime\compilerservices\datetimeconstantattribute.cs (2)
31
Contract.
Requires
(attr.Constructor.DeclaringType == typeof(DateTimeConstantAttribute));
32
Contract.
Requires
(attr.ConstructorArguments.Count == 1);
system\runtime\compilerservices\decimalconstantattribute.cs (1)
54
Contract.
Requires
(attr.Constructor.DeclaringType == typeof(DecimalConstantAttribute));
system\runtime\interopservices\windowsruntime\clrikeyvaluepairimpl.cs (2)
42
Contract.
Requires
(pair != null);
51
Contract.
Requires
(wrapper != null);
system\runtime\interopservices\windowsruntime\clripropertyvalueimpl.cs (4)
514
Contract.
Requires
(expectedBoxedType != null);
515
Contract.
Requires
(Marshal.SizeOf(expectedBoxedType) == Marshal.SizeOf(typeof(T)));
535
Contract.
Requires
(expectedArrayElementType != null);
536
Contract.
Requires
(Marshal.SizeOf(expectedArrayElementType) == Marshal.SizeOf(typeof(T)));
system\runtime\interopservices\windowsruntime\clrireferenceimpl.cs (4)
86
Contract.
Requires
(wrapper != null);
275
Contract.
Requires
(wrapper != null);
370
Contract.
Requires
(obj != null);
371
Contract.
Requires
(obj.GetType().IsArray);
system\runtime\interopservices\windowsruntime\constantsplittablemap.cs (5)
243
Contract.
Requires
(items != null);
244
Contract.
Requires
(first >= 0);
245
Contract.
Requires
(end >= 0);
246
Contract.
Requires
(first < items.Length);
247
Contract.
Requires
(end < items.Length);
system\runtime\interopservices\windowsruntime\enumeratortoiteratoradapter.cs (1)
83
Contract.
Requires
(enumerator != null);
system\runtime\interopservices\windowsruntime\eventregistrationtokentable.cs (2)
80
Contract.
Requires
(handler != null);
134
Contract.
Requires
(handler != null);
system\runtime\interopservices\windowsruntime\icustompropertyprovider.cs (6)
53
Contract.
Requires
(target != null);
54
Contract.
Requires
(propertyName != null);
74
Contract.
Requires
(target != null);
75
Contract.
Requires
(propertyName != null);
85
Contract.
Requires
(target != null);
86
Contract.
Requires
(propertyName != null);
system\runtime\interopservices\windowsruntime\imapviewtoireadonlydictionaryadapter.cs (1)
116
Contract.
Requires
(null != key);
system\runtime\interopservices\windowsruntime\iteratortoenumeratoradapter.cs (1)
118
Contract.
Requires
(iterator != null);
system\runtime\interopservices\windowsruntime\maptodictionaryadapter.cs (2)
163
Contract.
Requires
(null != key);
180
Contract.
Requires
(null != key);
system\runtime\interopservices\windowsruntime\windowsruntimemarshal.cs (16)
232
Contract.
Requires
(addMethod != null);
233
Contract.
Requires
(removeMethod != null);
263
Contract.
Requires
(instance != null);
264
Contract.
Requires
(removeMethod != null);
265
Contract.
Requires
(s_eventRegistrations != null);
290
Contract.
Requires
(removeMethod != null);
332
Contract.
Requires
(removeMethod != null);
498
Contract.
Requires
(s_eventRegistrations != null);
640
Contract.
Requires
(instance != null);
641
Contract.
Requires
(removeMethod != null);
648
Contract.
Requires
(instance != null);
649
Contract.
Requires
(removeMethod != null);
657
Contract.
Requires
(instance != null);
658
Contract.
Requires
(removeMethod != null);
659
Contract.
Requires
(s_eventRegistrations != null);
1054
Contract.
Requires
(Environment.IsWinRTSupported);
system\runtime\serialization\formatterservices.cs (1)
301
Contract.
Requires
(fi != null);
system\runtime\serialization\safeserializationmanager.cs (5)
325
Contract.
Requires
(serializedObject != null);
326
Contract.
Requires
(info != null);
327
Contract.
Requires
(typeof(ISerializable).IsAssignableFrom(serializedObject.GetType()));
328
Contract.
Requires
(serializedObject.GetType().IsAssignableFrom(info.ObjectType));
356
Contract.
Requires
(deserializedObject != null);
system\runtime\versioning\binarycompatibility.cs (2)
188
Contract.
Requires
(buildAgainstVersion > 0 || builtAgainstFramework == TargetFrameworkId.Unspecified);
270
Contract.
Requires
(!String.IsNullOrEmpty(targetFrameworkMoniker));
system\runtimehandles.cs (1)
1226
Contract.
Requires
(method != null);
system\security\builtinpermissionsets.cs (3)
284
Contract.
Requires
(!String.IsNullOrEmpty(permissionSetXml));
286
Contract.
Requires
(!String.IsNullOrEmpty(extensionXml));
326
Contract.
Requires
(!String.IsNullOrEmpty(extensionXml));
system\security\cryptography\cryptostream.cs (8)
345
Contract.
Requires
(CanRead);
346
Contract.
Requires
(offset >= 0);
347
Contract.
Requires
(count >= 0);
348
Contract.
Requires
(buffer.Length - offset >= count);
600
Contract.
Requires
(CanWrite);
601
Contract.
Requires
(offset >= 0);
602
Contract.
Requires
(count >= 0);
603
Contract.
Requires
(buffer.Length - offset >= count);
system\security\cryptography\hmac.cs (2)
187
Contract.
Requires
(createStandardHashAlgorithmCallback != null);
188
Contract.
Requires
(createFipsHashAlgorithmCallback != null);
system\security\cryptography\rsacryptoserviceprovider.cs (3)
352
Contract.
Requires
(rgbHash != null);
379
Contract.
Requires
(rgbHash != null);
380
Contract.
Requires
(rgbSignature != null);
system\security\cryptography\x509certificates\x509utils.cs (4)
130
Contract.
Requires
(key != null);
180
Contract.
Requires
(oid != null);
200
Contract.
Requires
(oid != null);
207
Contract.
Requires
(friendlyName != null);
system\string.cs (18)
271
Contract.
Requires
(strA != null);
272
Contract.
Requires
(strB != null);
325
Contract.
Requires
(strIn != null);
366
Contract.
Requires
(strA != null);
367
Contract.
Requires
(strB != null);
368
Contract.
Requires
(strA.Length == strB.Length);
420
Contract.
Requires
(strA != null);
421
Contract.
Requires
(strB != null);
464
Contract.
Requires
(strA != null);
465
Contract.
Requires
(strB != null);
1101
Contract.
Requires
(numReplaces >= 0);
1102
Contract.
Requires
(count >= 2);
1137
Contract.
Requires
(numReplaces >= 0);
1138
Contract.
Requires
(count >= 2);
1405
Contract.
Requires
(bytes != null);
1406
Contract.
Requires
(byteLength >= 0);
1539
Contract.
Requires
(dest != null);
1540
Contract.
Requires
(src != null);
system\text\encoding.cs (2)
1013
Contract.
Requires
(chars != null);
1014
Contract.
Requires
(count >= 0);
system\text\normalization.cs (2)
189
Contract.
Requires
(strInput != null);
226
Contract.
Requires
(strInput != null);
system\threading\Tasks\Task.cs (6)
2370
Contract.
Requires
(childTask != null);
2908
Contract.
Requires
(unhandledException != null);
2966
Contract.
Requires
(continuationAction != null);
4793
Contract.
Requires
(tc != null);
5246
Contract.
Requires
(tasks != null);
6593
Contract.
Requires
(outerTask != null);
system\threading\Tasks\TaskContinuation.cs (6)
244
Contract.
Requires
(task != null);
559
Contract.
Requires
(action != null);
575
Contract.
Requires
(action != null);
590
Contract.
Requires
(action != null);
591
Contract.
Requires
(scheduler != null);
748
Contract.
Requires
(callback != null);
system\threading\Tasks\TaskFactory.cs (3)
1693
Contract.
Requires
(tasksCopy != null);
1771
Contract.
Requires
(tasksCopy != null);
2477
Contract.
Requires
(tasks != null);
system\threading\Tasks\TaskScheduler.cs (1)
271
Contract.
Requires
(task != null);
system\threading\Tasks\TaskToApm.cs (5)
47
Contract.
Requires
(task != null);
127
Contract.
Requires
(antecedent != null);
128
Contract.
Requires
(callback != null);
129
Contract.
Requires
(asyncResult != null);
174
Contract.
Requires
(task != null);
system\type.cs (1)
1720
Contract.
Requires
(ifaceType != null);
system\typenameparser.cs (2)
211
Contract.
Requires
(asmName != null && asmName.Length > 0);
249
Contract.
Requires
(names != null && names.Length > 0);
System (10)
net\System\Net\_ChunkParser.cs (8)
100
Contract.
Requires
(dataSource != null);
101
Contract.
Requires
(internalBuffer != null);
104
Contract.
Requires
((initialBufferCount >= 0) && (initialBufferCount <= internalBuffer.Length));
105
Contract.
Requires
((initialBufferOffset >= 0) &&
160
Contract.
Requires
(userBuffer != null);
161
Contract.
Requires
((userBufferCount > 0) && (userBufferCount <= userBuffer.Length));
162
Contract.
Requires
((userBufferOffset >= 0) && (userBufferOffset + userBufferCount <= userBuffer.Length));
518
Contract.
Requires
(bytesRead >= 0);
net\System\Net\NetworkInformation\SystemUnicastIPAddressInformation.cs (2)
151
Contract.
Requires
((0 <= prefixLength) && (prefixLength <= 126));
152
Contract.
Requires
((family == AddressFamily.InterNetwork) || (family == AddressFamily.InterNetworkV6));
System.AddIn (77)
System\Addin\Hosting\ActivationWorker.cs (2)
36
System.Diagnostics.Contracts.Contract.
Requires
(pipeline != null);
37
System.Diagnostics.Contracts.Contract.
Requires
(pipeline.PipelineRootDirectory != null);
System\Addin\Hosting\AddInActivator.cs (1)
689
System.Diagnostics.Contracts.Contract.
Requires
(assembly != null);
System\Addin\Hosting\AddInController.cs (1)
49
System.Diagnostics.Contracts.Contract.
Requires
(impl != null);
System\Addin\Hosting\AddInControllerImpl.cs (5)
63
System.Diagnostics.Contracts.Contract.
Requires
(environment != null);
64
System.Diagnostics.Contracts.Contract.
Requires
(token != null);
105
System.Diagnostics.Contracts.Contract.
Requires
(addIn != null);
156
System.Diagnostics.Contracts.Contract.
Requires
(hostAddinView != null);
181
System.Diagnostics.Contracts.Contract.
Requires
(value != null);
System\Addin\Hosting\AddInToken.cs (9)
129
System.Diagnostics.Contracts.Contract.
Requires
(hostAdapter != null);
130
System.Diagnostics.Contracts.Contract.
Requires
(contract != null);
131
System.Diagnostics.Contracts.Contract.
Requires
(addinAdapter != null);
132
System.Diagnostics.Contracts.Contract.
Requires
(addinBase != null);
133
System.Diagnostics.Contracts.Contract.
Requires
(addin != null);
154
System.Diagnostics.Contracts.Contract.
Requires
(value != null);
166
System.Diagnostics.Contracts.Contract.
Requires
(value != null);
178
System.Diagnostics.Contracts.Contract.
Requires
(value != null);
349
System.Diagnostics.Contracts.Contract.
Requires
(rootDir != null || PipelineRootDirectory != null);
System\Addin\Hosting\InspectionWorker.cs (2)
194
System.Diagnostics.Contracts.Contract.
Requires
(assemblyFileName != null);
195
System.Diagnostics.Contracts.Contract.
Requires
(pipelineRootDirectory != null);
System\Addin\Hosting\PartialToken.cs (5)
37
System.Diagnostics.Contracts.Contract.
Requires
(hostAdapter != null);
38
System.Diagnostics.Contracts.Contract.
Requires
(contract != null);
39
System.Diagnostics.Contracts.Contract.
Requires
(addinAdapter != null);
40
System.Diagnostics.Contracts.Contract.
Requires
(addinBase != null);
55
System.Diagnostics.Contracts.Contract.
Requires
(value != null);
System\Addin\Hosting\RemotingHelper.cs (1)
65
System.Diagnostics.Contracts.Contract.
Requires
(guid != null && guid != s_emptyGuid);
System\Addin\Hosting\Store\AddIn.cs (1)
52
System.Diagnostics.Contracts.Contract.
Requires
(Path.IsPathRooted(fullPathToAddin));
System\Addin\Hosting\Store\AddInAdapter.cs (1)
104
System.Diagnostics.Contracts.Contract.
Requires
(addInBase != null);
System\Addin\Hosting\Store\PipelineComponent.cs (5)
164
System.Diagnostics.Contracts.Contract.
Requires
(systemAddInInReflLoaderContext != null);
165
System.Diagnostics.Contracts.Contract.
Requires
(systemAddInInReflLoaderContext.ReflectionOnly);
166
System.Diagnostics.Contracts.Contract.
Requires
(systemAddInContractsInReflLoaderContext != null);
167
System.Diagnostics.Contracts.Contract.
Requires
(systemAddInContractsInReflLoaderContext.ReflectionOnly);
179
System.Diagnostics.Contracts.Contract.
Requires
(Path.IsPathRooted(root));
System\Addin\Hosting\Utils.cs (12)
52
System.Diagnostics.Contracts.Contract.
Requires
(typeof(Attribute).IsAssignableFrom(attributeType));
149
System.Diagnostics.Contracts.Contract.
Requires
(!String.IsNullOrEmpty(path));
150
System.Diagnostics.Contracts.Contract.
Requires
(!String.IsNullOrEmpty(root));
153
System.Diagnostics.Contracts.Contract.
Requires
(String.Equals(path, Path.GetFullPath(path)));
154
System.Diagnostics.Contracts.Contract.
Requires
(String.Equals(root, Path.GetFullPath(root)));
173
System.Diagnostics.Contracts.Contract.
Requires
(!String.IsNullOrEmpty(assemblyRef));
174
System.Diagnostics.Contracts.Contract.
Requires
(!String.IsNullOrEmpty(assemblyDef));
183
System.Diagnostics.Contracts.Contract.
Requires
(!String.IsNullOrEmpty(assemblyDef1));
184
System.Diagnostics.Contracts.Contract.
Requires
(!String.IsNullOrEmpty(assemblyDef2));
193
System.Diagnostics.Contracts.Contract.
Requires
(!String.IsNullOrEmpty(typeAndAssemblyName1));
194
System.Diagnostics.Contracts.Contract.
Requires
(!String.IsNullOrEmpty(typeAndAssemblyName2));
205
System.Diagnostics.Contracts.Contract.
Requires
(!String.IsNullOrEmpty(assemblyRef));
System\Addin\MiniReflection\MetadataReader\Metadata.cs (1)
18
System.Diagnostics.Contracts.Contract.
Requires
((index & 0xFF000000U) == 0);
System\Addin\MiniReflection\MiniAssembly.cs (10)
51
System.Diagnostics.Contracts.Contract.
Requires
(assembly != null);
105
System.Diagnostics.Contracts.Contract.
Requires
(typeName != null);
143
System.Diagnostics.Contracts.Contract.
Requires
(token.Table == MDTables.Tables.AssemblyRef);
195
System.Diagnostics.Contracts.Contract.
Requires
(!String.IsNullOrEmpty(simpleName));
196
System.Diagnostics.Contracts.Contract.
Requires
(searchDirs != null);
254
System.Diagnostics.Contracts.Contract.
Requires
(assemblyA != null);
255
System.Diagnostics.Contracts.Contract.
Requires
(peFileB != null);
256
System.Diagnostics.Contracts.Contract.
Requires
(assemblyRefB.Table == MDTables.Tables.AssemblyRef);
276
System.Diagnostics.Contracts.Contract.
Requires
(peFile != null);
277
System.Diagnostics.Contracts.Contract.
Requires
(assemblyRef.Table == MDTables.Tables.AssemblyRef);
System\Addin\MiniReflection\MiniConstructorInfo.cs (1)
29
System.Diagnostics.Contracts.Contract.
Requires
(parameters != null);
System\Addin\MiniReflection\MiniModule.cs (2)
36
System.Diagnostics.Contracts.Contract.
Requires
(peFileName != null);
76
System.Diagnostics.Contracts.Contract.
Requires
(value != null);
System\Addin\MiniReflection\MiniParameterInfo.cs (3)
30
System.Diagnostics.Contracts.Contract.
Requires
(elementType <= CorElementType.String ||
39
System.Diagnostics.Contracts.Contract.
Requires
(parameterType != null);
40
System.Diagnostics.Contracts.Contract.
Requires
(IsValid(elementType));
System\Addin\MiniReflection\TypeInfo.cs (15)
78
System.Diagnostics.Contracts.Contract.
Requires
(assembly != null);
79
System.Diagnostics.Contracts.Contract.
Requires
(typeDef.Table == MDTables.Tables.TypeDef);
96
System.Diagnostics.Contracts.Contract.
Requires
(assembly != null);
97
System.Diagnostics.Contracts.Contract.
Requires
(!String.IsNullOrEmpty(typeName));
98
System.Diagnostics.Contracts.Contract.
Requires
(typeDef.Table == MDTables.Tables.TypeDef);
110
System.Diagnostics.Contracts.Contract.
Requires
(assembly != null);
111
System.Diagnostics.Contracts.Contract.
Requires
(module != null);
112
System.Diagnostics.Contracts.Contract.
Requires
(!String.IsNullOrEmpty(typeName));
113
System.Diagnostics.Contracts.Contract.
Requires
(typeDef.Table == MDTables.Tables.TypeDef);
136
System.Diagnostics.Contracts.Contract.
Requires
(referencingAssembly != null);
137
System.Diagnostics.Contracts.Contract.
Requires
(typeRefToken.Table == MDTables.Tables.TypeRef);
188
System.Diagnostics.Contracts.Contract.
Requires
(type != null);
724
System.Diagnostics.Contracts.Contract.
Requires
(ifaceType != null);
760
System.Diagnostics.Contracts.Contract.
Requires
(typeDefToken.Table == MDTables.Tables.TypeDef);
837
System.Diagnostics.Contracts.Contract.
Requires
(typeRef.Table == MDTables.Tables.TypeRef);
System.Core (168)
Microsoft\Win32\SafeHandles\BCryptSafeHandles.cs (1)
54
Contract.
Requires
(value != IntPtr.Zero);
Microsoft\Win32\SafeHandles\CapiSafeHandles.cs (2)
292
Contract.
Requires
(!IsInvalid && !IsClosed);
371
Contract.
Requires
(!IsInvalid && !IsClosed);
Microsoft\Win32\SafeHandles\NCryptSafeHandles.cs (4)
119
Contract.
Requires
((m_ownershipState == OwnershipState.Duplicate && m_holder != null) ||
121
Contract.
Requires
(m_holder == null || m_holder.m_ownershipState == OwnershipState.Holder);
418
Contract.
Requires
(newHandleValue != IntPtr.Zero);
419
Contract.
Requires
(!IsClosed);
System\Linq\Parallel\Scheduling\OrderPreservingPipeliningSpoolingTask.cs (12)
70
Contract.
Requires
(partition != null);
71
Contract.
Requires
(taskGroupState != null);
72
Contract.
Requires
(consumerWaiting != null);
73
Contract.
Requires
(producerWaiting != null && producerWaiting.Length == consumerWaiting.Length);
74
Contract.
Requires
(producerDone != null && producerDone.Length == consumerWaiting.Length);
75
Contract.
Requires
(buffers != null && buffers.Length == consumerWaiting.Length);
76
Contract.
Requires
(partitionIndex >= 0 && partitionIndex < consumerWaiting.Length);
157
Contract.
Requires
(groupState != null);
158
Contract.
Requires
(partitions != null);
159
Contract.
Requires
(producerDone != null && producerDone.Length == partitions.PartitionCount);
160
Contract.
Requires
(buffers != null && buffers.Length == partitions.PartitionCount);
161
Contract.
Requires
(bufferLocks != null);
System\Linq\Parallel\Scheduling\OrderPreservingSpoolingTask.cs (7)
52
Contract.
Requires
(groupState != null);
53
Contract.
Requires
(results != null);
54
Contract.
Requires
(sortHelper != null);
78
Contract.
Requires
(groupState != null);
79
Contract.
Requires
(partitions != null);
80
Contract.
Requires
(results != null);
81
Contract.
Requires
(results.Value == null);
System\Linq\Parallel\Scheduling\SpoolingTask.cs (6)
41
Contract.
Requires
(partitions.PartitionCount == channels.Length);
42
Contract.
Requires
(groupState != null);
94
Contract.
Requires
(partitions.PartitionCount == channels.Length);
95
Contract.
Requires
(groupState != null);
139
Contract.
Requires
(groupState != null);
210
Contract.
Requires
(source != null);
System\Security\Cryptography\AesCryptoServiceProvider.cs (3)
187
Contract.
Requires
(key != null);
253
Contract.
Requires
(key != null);
300
Contract.
Requires
(csp != null);
System\Security\Cryptography\BCryptHashAlgorithm.cs (3)
68
Contract.
Requires
(algorithm != null);
69
Contract.
Requires
(!String.IsNullOrEmpty(implementation));
234
Contract.
Requires
(stream != null);
System\Security\Cryptography\BCryptNative.cs (7)
481
Contract.
Requires
(algorithm != null);
482
Contract.
Requires
(property == HashPropertyName.HashLength ||
493
Contract.
Requires
(algorithm != null);
494
Contract.
Requires
(!String.IsNullOrEmpty(property));
536
Contract.
Requires
(!String.IsNullOrEmpty(algorithm));
579
Contract.
Requires
(!String.IsNullOrEmpty(algorithm));
580
Contract.
Requires
(!String.IsNullOrEmpty(implementation));
System\Security\Cryptography\CapiHashAlgorithm.cs (2)
32
Contract.
Requires
(!String.IsNullOrEmpty(provider));
33
Contract.
Requires
((CapiNative.AlgorithmClass)((uint)algorithm & (uint)CapiNative.AlgorithmClass.Hash) == CapiNative.AlgorithmClass.Hash);
System\Security\Cryptography\CapiNative.cs (12)
542
Contract.
Requires
(key != null);
608
Contract.
Requires
(hashHandle != null);
609
Contract.
Requires
(CapiNative.HashParameter.AlgorithmId <= parameter && parameter <= CapiNative.HashParameter.HashSize);
646
Contract.
Requires
(provider != null);
647
Contract.
Requires
(parameter == ProviderParameter.EnumerateAlgorithms);
718
Contract.
Requires
(provider != null);
719
Contract.
Requires
(((int)algorithm & (int)AlgorithmClass.DataEncryption) == (int)AlgorithmClass.DataEncryption);
720
Contract.
Requires
(key != null);
777
Contract.
Requires
(key != null);
778
Contract.
Requires
(parameter == KeyParameter.Mode || parameter == KeyParameter.ModeBits);
789
Contract.
Requires
(key != null && !key.IsInvalid && !key.IsClosed);
790
Contract.
Requires
(value != null);
System\Security\Cryptography\CapiSymmetricAlgorithm.cs (31)
50
Contract.
Requires
(0 < blockSize && blockSize % 8 == 0);
51
Contract.
Requires
(0 <= feedbackSize);
52
Contract.
Requires
(provider != null && !provider.IsInvalid && !provider.IsClosed);
53
Contract.
Requires
(key != null && !key.IsInvalid && !key.IsClosed);
107
Contract.
Requires
(m_key != null);
108
Contract.
Requires
(inputBuffer != null && inputCount <= inputBuffer.Length - inputOffset);
109
Contract.
Requires
(inputOffset >= 0);
110
Contract.
Requires
(inputCount > 0 && inputCount % InputBlockSize == 0);
111
Contract.
Requires
(outputBuffer != null && inputCount <= outputBuffer.Length - outputOffset);
112
Contract.
Requires
(inputOffset >= 0);
113
Contract.
Requires
(m_depadBuffer == null || (m_paddingMode != PaddingMode.None && m_paddingMode != PaddingMode.Zeros));
166
Contract.
Requires
(block != null && count >= block.Length - offset);
167
Contract.
Requires
(0 <= offset);
168
Contract.
Requires
(0 <= count);
243
Contract.
Requires
(m_key != null);
244
Contract.
Requires
(buffer != null && count <= buffer.Length - offset);
245
Contract.
Requires
(offset >= 0);
246
Contract.
Requires
(count > 0 && count % InputBlockSize == 0);
278
Contract.
Requires
(m_provider != null);
279
Contract.
Requires
(block != null && count <= block.Length - offset);
280
Contract.
Requires
(0 <= offset);
281
Contract.
Requires
(0 <= count);
364
Contract.
Requires
(blockSize % 8 == 0);
393
Contract.
Requires
(m_key != null);
394
Contract.
Requires
(buffer != null && count <= buffer.Length - offset);
395
Contract.
Requires
(offset >= 0);
396
Contract.
Requires
(count > 0 && count % InputBlockSize == 0);
427
Contract.
Requires
(m_key != null);
581
Contract.
Requires
(key != null);
582
Contract.
Requires
(cipherMode == CipherMode.ECB || iv != null);
583
Contract.
Requires
(0 <= feedbackSize);
System\Security\Cryptography\CngKey.cs (4)
39
Contract.
Requires
(keyHandle != null && !keyHandle.IsInvalid && !keyHandle.IsClosed);
40
Contract.
Requires
(kspHandle != null && !kspHandle.IsInvalid && !kspHandle.IsClosed);
797
Contract.
Requires
(keyHandle != null && !keyHandle.IsInvalid && !keyHandle.IsClosed);
798
Contract.
Requires
(creationParameters != null);
System\Security\Cryptography\ECDiffieHellmanCng.cs (1)
255
Contract.
Requires
(value != null);
System\Security\Cryptography\ECDiffieHellmanCngPublicKey.cs (2)
29
Contract.
Requires
(format != null);
79
Contract.
Requires
(key != null && key.AlgorithmGroup == CngAlgorithmGroup.ECDiffieHellman);
System\Security\Cryptography\ECDsaCng.cs (1)
168
Contract.
Requires
(value != null);
System\Security\Cryptography\NCryptNative.cs (65)
939
Contract.
Requires
(!String.IsNullOrEmpty(algorithm));
979
Contract.
Requires
(provider != null && !provider.IsInvalid && !provider.IsClosed);
980
Contract.
Requires
(!String.IsNullOrEmpty(algorithm));
1004
Contract.
Requires
(key != null);
1026
Contract.
Requires
(secretAgreement != null);
1027
Contract.
Requires
(!String.IsNullOrEmpty(kdf));
1028
Contract.
Requires
(!String.IsNullOrEmpty(hashAlgorithm));
1029
Contract.
Requires
(hmacKey == null || kdf == BCryptNative.KeyDerivationFunction.Hmac);
1107
Contract.
Requires
(secretAgreement != null);
1108
Contract.
Requires
(!String.IsNullOrEmpty(kdf));
1109
Contract.
Requires
(parameters != null);
1160
Contract.
Requires
(secretAgreement != null);
1161
Contract.
Requires
(!String.IsNullOrEmpty(hashAlgorithm));
1183
Contract.
Requires
(secretAgreement != null);
1184
Contract.
Requires
(!String.IsNullOrEmpty(hashAlgorithm));
1204
Contract.
Requires
(secretAgreement != null);
1205
Contract.
Requires
(label != null && seed != null);
1238
Contract.
Requires
(privateKey != null);
1239
Contract.
Requires
(otherPartyPublicKey != null);
1262
Contract.
Requires
(key != null);
1263
Contract.
Requires
(!String.IsNullOrEmpty(format));
1304
Contract.
Requires
(key != null);
1305
Contract.
Requires
(keySize > 0);
1331
Contract.
Requires
(key != null && !key.IsInvalid && !key.IsClosed);
1347
Contract.
Requires
(ncryptObject != null);
1348
Contract.
Requires
(propertyName != null);
1397
Contract.
Requires
(ncryptObject != null);
1398
Contract.
Requires
(propertyName != null);
1416
Contract.
Requires
(ncryptObject != null);
1417
Contract.
Requires
(propertyName != null);
1445
Contract.
Requires
(ncryptObject != null);
1446
Contract.
Requires
(propertyName != null);
1478
Contract.
Requires
(ncryptObject != null);
1479
Contract.
Requires
(propertyName != null);
1508
Contract.
Requires
(ncryptObject != null);
1509
Contract.
Requires
(propertyName != null);
1532
Contract.
Requires
(provider != null);
1533
Contract.
Requires
(keyBlob != null);
1534
Contract.
Requires
(!String.IsNullOrEmpty(format));
1561
Contract.
Requires
(provider != null);
1562
Contract.
Requires
(keyBlob != null);
1563
Contract.
Requires
(!String.IsNullOrEmpty(format));
1593
Contract.
Requires
(provider != null && !provider.IsInvalid && !provider.IsClosed);
1594
Contract.
Requires
(name != null);
1611
Contract.
Requires
(!String.IsNullOrEmpty(providerName));
1632
Contract.
Requires
(buffer != null);
1645
Contract.
Requires
(buffer != null);
1646
Contract.
Requires
(offset >= 0 && offset < buffer.Length);
1647
Contract.
Requires
(count >= 0 && buffer.Length - count >= offset);
1678
Contract.
Requires
(ncryptObject != null);
1679
Contract.
Requires
(propertyName != null);
1692
Contract.
Requires
(ncryptObject != null);
1693
Contract.
Requires
(propertyName != null);
1714
Contract.
Requires
(ncryptObject != null);
1715
Contract.
Requires
(propertyName != null);
1752
Contract.
Requires
(ncryptObject != null);
1753
Contract.
Requires
(propertyName != null);
1771
Contract.
Requires
(key != null);
1772
Contract.
Requires
(hash != null);
1816
Contract.
Requires
(key != null);
1817
Contract.
Requires
(hash != null);
1866
Contract.
Requires
(blob != null && blob.Length > 2 * sizeof(int));
1889
Contract.
Requires
(key != null);
1890
Contract.
Requires
(hash != null);
1891
Contract.
Requires
(signature != null);
System\Security\Cryptography\Rfc4050KeyFormatter.cs (5)
64
Contract.
Requires
(xml != null);
98
Contract.
Requires
(navigator != null);
155
Contract.
Requires
(navigator != null);
249
Contract.
Requires
(writer != null);
300
Contract.
Requires
(writer != null);
System.Numerics (18)
System\Numerics\BigIntegerBuilder.cs (18)
104
Contract.
Requires
(sign == +1 || sign == -1);
125
Contract.
Requires
(sign == +1 || sign == -1);
134
Contract.
Requires
(signSrc == +1 || signSrc == -1);
250
Contract.
Requires
(cu > 0);
267
Contract.
Requires
(cu > 0);
288
Contract.
Requires
(cu > 0 && cuExtra >= 0);
319
Contract.
Requires
(cu > 1 && cuExtra >= 0);
339
Contract.
Requires
(cuExtra >= 0);
365
Contract.
Requires
(cuExtra >= 0);
453
Contract.
Requires
(sign == +1 || sign == -1);
481
Contract.
Requires
(sign == +1 || sign == -1);
918
Contract.
Requires
(cuShift >= 0);
919
Contract.
Requires
(0 <= cbitShift);
969
Contract.
Requires
(cuShift >= 0);
970
Contract.
Requires
(0 <= cbitShift);
1017
Contract.
Requires
(cu >= 2);
1031
Contract.
Requires
(0 <= iu);
1049
Contract.
Requires
(0 < iuMin);
System.Windows.Forms (95)
winforms\Managed\System\WinForms\Control.cs (80)
7948
Contract.
Requires
(e != null);
7961
Contract.
Requires
(e != null);
8001
Contract.
Requires
(e != null);
8030
Contract.
Requires
(e != null);
8049
Contract.
Requires
(e != null);
8076
Contract.
Requires
(e != null);
8100
Contract.
Requires
(e != null);
8113
Contract.
Requires
(e != null);
8126
Contract.
Requires
(e != null);
8149
Contract.
Requires
(e != null);
8164
Contract.
Requires
(e != null);
8206
Contract.
Requires
(e != null);
8255
Contract.
Requires
(e != null);
8284
Contract.
Requires
(e != null);
8328
Contract.
Requires
(e != null);
8341
Contract.
Requires
(e != null);
8351
Contract.
Requires
(e != null);
8363
Contract.
Requires
(e != null);
8375
Contract.
Requires
(e != null);
8387
Contract.
Requires
(e != null);
8445
Contract.
Requires
(e != null);
8458
Contract.
Requires
(e != null);
8470
Contract.
Requires
(e != null);
8547
Contract.
Requires
(e != null);
8560
Contract.
Requires
(e != null);
8573
Contract.
Requires
(e != null);
8588
Contract.
Requires
(e != null);
8627
Contract.
Requires
(e != null);
8645
Contract.
Requires
(e != null);
8665
Contract.
Requires
(e != null);
8676
Contract.
Requires
(e != null);
8689
Contract.
Requires
(e != null);
8700
Contract.
Requires
(e != null);
8721
Contract.
Requires
(e != null);
8846
Contract.
Requires
(e != null);
8864
Contract.
Requires
(e != null);
8917
Contract.
Requires
(e != null);
8934
Contract.
Requires
(drgevent != null);
8946
Contract.
Requires
(drgevent != null);
8958
Contract.
Requires
(e != null);
8970
Contract.
Requires
(drgevent != null);
8983
Contract.
Requires
(gfbevent != null);
8994
Contract.
Requires
(e != null);
9019
Contract.
Requires
(e != null);
9039
Contract.
Requires
(hevent != null);
9061
Contract.
Requires
(e != null);
9088
Contract.
Requires
(e != null);
9099
Contract.
Requires
(e != null);
9110
Contract.
Requires
(e != null);
9125
Contract.
Requires
(levent != null);
9169
Contract.
Requires
(e != null);
9194
Contract.
Requires
(e != null);
9204
Contract.
Requires
(e != null);
9215
Contract.
Requires
(e != null);
9226
Contract.
Requires
(e != null);
9237
Contract.
Requires
(e != null);
9248
Contract.
Requires
(e != null);
9259
Contract.
Requires
(e != null);
9270
Contract.
Requires
(e != null);
9290
Contract.
Requires
(e != null);
9308
Contract.
Requires
(e != null);
9318
Contract.
Requires
(e != null);
9329
Contract.
Requires
(e != null);
9340
Contract.
Requires
(e != null);
9351
Contract.
Requires
(e != null);
9362
Contract.
Requires
(e != null);
9376
Contract.
Requires
(e != null);
9382
Contract.
Requires
(e != null);
9400
Contract.
Requires
(pevent != null);
9411
Contract.
Requires
(e != null);
9435
Contract.
Requires
(qcdevent != null);
9446
Contract.
Requires
(e != null);
9459
Contract.
Requires
(e != null);
9480
Contract.
Requires
(e != null);
9493
Contract.
Requires
(e != null);
9509
Contract.
Requires
(e != null);
9521
Contract.
Requires
(e != null);
9533
Contract.
Requires
(e != null);
9556
Contract.
Requires
(e != null);
9567
Contract.
Requires
(e != null);
winforms\Managed\System\WinForms\TreeView.cs (15)
2191
Contract.
Requires
(e != null);
2200
Contract.
Requires
(e != null);
2209
Contract.
Requires
(e != null);
2218
Contract.
Requires
(e != null);
2227
Contract.
Requires
(e != null);
2236
Contract.
Requires
(e != null);
2245
Contract.
Requires
(e != null);
2254
Contract.
Requires
(e != null);
2263
Contract.
Requires
(e != null);
2272
Contract.
Requires
(e != null);
2281
Contract.
Requires
(e != null);
2290
Contract.
Requires
(e != null);
2299
Contract.
Requires
(e != null);
2308
Contract.
Requires
(e != null);
2370
Contract.
Requires
(e != null);