1291 references to Assert
mscorlib (627)
system\activator.cs (1)
433
Contract.
Assert
(AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled || securityInfo == null);
system\appdomain.cs (8)
391
Contract.
Assert
(s_flags != 0);
610
Contract.
Assert
(!_compatFlagsInitialized);
635
Contract.
Assert
(attrs.Length == 1);
1746
Contract.
Assert
(IsLegacyCasPolicyEnabled || securityAttributes == null);
1832
Contract.
Assert
(IsLegacyCasPolicyEnabled || securityAttributes == null);
4471
Contract.
Assert
(evidence != null);
4472
Contract.
Assert
(IsHomogenous);
4473
Contract.
Assert
(evidence.GetHostEvidence<GacInstalled>() == null);
system\arraysegment.cs (2)
179
Contract.
Assert
(index == -1 ||
241
Contract.
Assert
(index == -1 ||
system\attribute.cs (2)
889
Contract.
Assert
(thisValueArray.Rank == 1 && thatValueArray.Rank == 1);
903
Contract.
Assert
(!(thisValue is Attribute));
system\buffer.cs (6)
330
Contract.
Assert
(len > 16 && len <= 64);
369
Contract.
Assert
(len > 16 && len <= 64);
386
Contract.
Assert
(len >= 8 && len <= 16);
401
Contract.
Assert
(len >= 4 && len < 8);
408
Contract.
Assert
(len < 4);
423
Contract.
Assert
(len > 64 && len <= CopyThreshold);
system\Collections\Concurrent\ConcurrentDictionary.cs (1)
2106
Contract.
Assert
(condition);
system\Collections\Concurrent\ConcurrentQueue.cs (7)
83
Contract.
Assert
(index >= 0 && index < SEGMENT_SIZE);
131
Contract.
Assert
(m_serializationArray != null);
695
Contract.
Assert
(index >= 0);
727
Contract.
Assert
(m_high < SEGMENT_SIZE - 1);
743
Contract.
Assert
(m_high >= SEGMENT_SIZE - 1);
759
Contract.
Assert
(m_source.m_tail == this);
866
Contract.
Assert
(m_source.m_head == this);
system\Collections\Concurrent\ConcurrentStack.cs (1)
147
Contract.
Assert
(m_serializationArray != null);
system\collections\concurrent\PartitionerStatic.cs (23)
439
Contract.
Assert
(m_currentChunkSize == null);
457
Contract.
Assert
(m_localOffset.Value == m_currentChunkSize.Value - 1 || m_currentChunkSize.Value == 0);
478
Contract.
Assert
(requestedChunkSize > 0 && requestedChunkSize <= m_maxChunkSize);
482
Contract.
Assert
(m_currentChunkSize.Value <= requestedChunkSize && m_currentChunkSize.Value > 0);
772
Contract.
Assert
(requestedChunkSize > 0);
811
Contract.
Assert
(m_sharedIndex != null); //already been allocated in MoveNext() before calling GrabNextChunk
948
Contract.
Assert
(requestedChunkSize > 0);
981
Contract.
Assert
(value);
982
Contract.
Assert
(!m_hasNoElementsLeft.Value);
996
Contract.
Assert
(m_localList != null);
997
Contract.
Assert
(m_localOffset.Value >= 0 && m_localOffset.Value < m_currentChunkSize.Value);
1135
Contract.
Assert
(requestedChunkSize > 0);
1139
Contract.
Assert
(m_sharedIndex != null);
1181
Contract.
Assert
(m_sharedIndex != null);
1187
Contract.
Assert
(false);
1276
Contract.
Assert
(m_localOffset.Value >= 0 && m_localOffset.Value < m_currentChunkSize.Value);
1360
Contract.
Assert
(m_localOffset.Value >= 0 && m_localOffset.Value < m_currentChunkSize.Value);
1547
Contract.
Assert
(list != null);
1573
Contract.
Assert
(startIndex >= 0 && endIndex <= list.Count - 1);
1587
Contract.
Assert
(m_offset >= m_startIndex && m_offset <= m_endIndex);
1605
Contract.
Assert
(array != null);
1630
Contract.
Assert
(startIndex >= 0 && endIndex <= array.Length - 1);
1644
Contract.
Assert
(m_offset >= m_startIndex && m_offset <= m_endIndex);
system\collections\generic\dictionary.cs (1)
444
Contract.
Assert
(newSize >= entries.Length);
system\collections\hashtable.cs (1)
1772
Contract.
Assert
(comparer == null || comparer == System.Collections.Generic.EqualityComparer<string>.Default || comparer is IWellKnownStringEqualityComparer);
system\console.cs (1)
1396
Contract.
Assert
(title.Length == titleLength);
system\convert.cs (6)
2424
Contract.
Assert
(0 <= inputLength);
2439
Contract.
Assert
(0 <= resultLength);
2579
Contract.
Assert
(currCode == intEq);
2659
Contract.
Assert
(0 <= inputLength);
2682
Contract.
Assert
(0 <= usefulInputLength);
2686
Contract.
Assert
(0 <= padding);
system\delegate.cs (1)
685
Contract.
Assert
((flags & DelegateBindingFlags.SkipSecurityChecks) == 0);
system\diagnostics\contracts\contracts.cs (2)
295
/// At runtime this is equivalent to an <seealso cref="System.Diagnostics.Contracts.Contract.
Assert
(bool)"/>.
316
/// At runtime this is equivalent to an <seealso cref="System.Diagnostics.Contracts.Contract.
Assert
(bool)"/>.
system\diagnostics\eventing\activitytracker.cs (4)
76
Contract.
Assert
((options & EventActivityOptions.Disable) == 0);
196
Contract.
Assert
(orphan.m_stopped != 0);
527
Contract.
Assert
(0 <= value && value < 16);
528
Contract.
Assert
(ptr < endPtr);
system\diagnostics\eventing\eventprovider.cs (3)
495
Contract.
Assert
(0 <= providerInstance->NextOffset && providerInstance->NextOffset < buffSize);
1110
Contract.
Assert
((EventOpcode)eventDescriptor.Opcode == EventOpcode.Send ||
1180
Contract.
Assert
(bitcount(n) == 1);
system\diagnostics\eventing\eventsource.cs (39)
1183
Contract.
Assert
(m_eventData != null); // You must have initialized this if you enabled the source.
1413
Contract.
Assert
(listener == null || (uint)m == (uint)SessionMask.FromId(0));
1534
Contract.
Assert
(!m_eventSourceEnabled); // We can't be enabled until we are completely initted.
1898
Contract.
Assert
(m_eventData != null); // You must have initialized this if you enabled the source.
2182
Contract.
Assert
(dispatcher.m_EventEnabled != null);
2609
Contract.
Assert
(m_completelyInited);
2619
Contract.
Assert
(m_eventData != null);
2676
Contract.
Assert
(commandArgs.perEventSourceSessionId >= -1 && commandArgs.perEventSourceSessionId <= SessionMask.MAX);
2731
Contract.
Assert
(m_eventData != null);
3017
Contract.
Assert
(Monitor.IsEntered(EventListener.EventListenersLock));
3021
Contract.
Assert
(m_rawManifest == null);
3023
Contract.
Assert
(m_eventData != null);
3065
Contract.
Assert
(!SelfDescribingEvents);
3168
Contract.
Assert
(data.ConstructorArguments.Count <= 1);
3461
Contract.
Assert
(0 <= startEventId); // Since we reserve id 0, we know that id-1 is <= 0
3721
Contract.
Assert
(eventAttribute.Task != EventTask.None || eventAttribute.Opcode != EventOpcode.Info);
3982
Contract.
Assert
(((m_config & EventSourceSettings.EtwManifestEventFormat) != 0) !=
4004
Contract.
Assert
(listener == null || (uint)sessions == (uint)SessionMask.FromId(0));
4015
Contract.
Assert
(etwSession != null);
4243
Contract.
Assert
(s_Listeners != null);
4484
Contract.
Assert
(Monitor.IsEntered(EventListener.EventListenersLock));
4831
Contract.
Assert
(EventId != -1);
5261
Contract.
Assert
(Monitor.IsEntered(EventListener.EventListenersLock));
5329
Contract.
Assert
(Monitor.IsEntered(EventListener.EventListenersLock));
5424
Contract.
Assert
(filterList != null && filterList.m_activeActivities != null);
5517
Contract.
Assert
(childActivityID != null);
5520
Contract.
Assert
(activeActivities != null);
5577
Contract.
Assert
(Monitor.IsEntered(EventListener.EventListenersLock));
5604
Contract.
Assert
(existingFilter == null ||
5678
Contract.
Assert
(Monitor.IsEntered(EventListener.EventListenersLock));
5680
Contract.
Assert
(samplingFreq > 0);
5681
Contract.
Assert
(eventId >= 0);
5812
Contract.
Assert
(etwSession != null);
5893
Contract.
Assert
(perEventSourceSessionId < MAX);
5911
Contract.
Assert
(perEventSourceSessionId < MAX);
5916
Contract.
Assert
(perEventSourceSessionId < MAX);
6133
Contract.
Assert
(channel >= EventChannel.Admin && channel <= EventChannel.Debug);
6176
Contract.
Assert
(numParams == 0);
6177
Contract.
Assert
(this.eventName == null);
System\Diagnostics\Eventing\TraceLogging\EventPayload.cs (1)
25
Contract.
Assert
(payloadNames.Count == payloadValues.Count);
system\enum.cs (1)
165
Contract.
Assert
(names.Length == values.Length);
system\globalization\CalendricalCalculationsHelper.cs (7)
157
Contract.
Assert
(gregorianYear < 1620 || 2020 <= gregorianYear);
166
Contract.
Assert
(1988 <= gregorianYear && gregorianYear <= 2019);
172
Contract.
Assert
(1900 <= gregorianYear && gregorianYear <= 1987);
179
Contract.
Assert
(1800 <= gregorianYear && gregorianYear <= 1899);
186
Contract.
Assert
(1700 <= gregorianYear && gregorianYear <= 1799);
193
Contract.
Assert
(1620 <= gregorianYear && gregorianYear <= 1699);
409
Contract.
Assert
(day != upperBoundNewYearDay);
system\globalization\cultureinfo.cs (2)
363
Contract.
Assert
(cultureData != null);
371
Contract.
Assert
(name != null);
system\globalization\Persiancalendar.cs (8)
189
Contract.
Assert
(ordinalDay <= 366);
199
Contract.
Assert
(1 <= month && month <= 12);
229
Contract.
Assert
(y >= 1);
248
Contract.
Assert
(ordinalDay >= 1);
249
Contract.
Assert
(m >= 1 && m <= 12);
256
Contract.
Assert
(1 <= d);
257
Contract.
Assert
(d <= 31);
381
Contract.
Assert
(daysInMonth == 30);
system\globalization\textinfo.cs (1)
305
Contract.
Assert
(end - startIndex >= value.Length);
system\globalization\timespanformat.cs (1)
451
Contract.
Assert
(field == 5);
system\globalization\timespanparse.cs (6)
139
Contract.
Assert
(ttt == TTT.Num);
140
Contract.
Assert
(num > -1);
141
Contract.
Assert
(maxValue > 0);
142
Contract.
Assert
(maxPrecision == maxFractionDigits || maxPrecision == unlimitedDigits);
176
Contract.
Assert
(m_pos > -1);
387
Contract.
Assert
(dtfi != null);
system\iappdomainpausemanager.cs (2)
71
Contract.
Assert
(!isPaused);
89
Contract.
Assert
(isPaused);
system\io\__consolestream.cs (2)
256
Contract.
Assert
(!writeSuccess || count == numBytesWritten);
269
Contract.
Assert
(!writeSuccess || count / BytesPerWChar == charsWritten);
system\io\binaryreader.cs (1)
328
Contract.
Assert
(m_stream != null);
system\io\bufferedstream.cs (54)
175
Contract.
Assert
(_buffer != null);
176
Contract.
Assert
(_bufferSize > 0);
190
Contract.
Assert
(_bufferSize > 0);
299
Contract.
Assert
(_writePos == 0 && _readPos == 0 && _readLen == 0);
320
Contract.
Assert
(_writePos == 0 && _readPos == 0 && _readLen == 0);
350
Contract.
Assert
(stream != null);
359
Contract.
Assert
(_this._writePos == 0 && _this._readPos == 0 && _this._readLen == 0);
379
Contract.
Assert
(_this._writePos == 0 && _this._readPos == 0 && _this._readLen == 0);
388
Contract.
Assert
(_this._writePos == 0 && _this._readPos == _this._readLen);
426
Contract.
Assert
(_readPos < _readLen);
469
Contract.
Assert
(readBytes >= 0);
474
Contract.
Assert
(readBytes > 0);
535
Contract.
Assert
(_readLen == _readPos);
654
Contract.
Assert
(t == null || t.Status == TaskStatus.RanToCompletion);
738
Contract.
Assert
(array != null);
739
Contract.
Assert
(offset >= 0);
740
Contract.
Assert
(count >= 0);
741
Contract.
Assert
(array.Length - offset >= count);
742
Contract.
Assert
(_stream != null);
743
Contract.
Assert
(_stream.CanRead);
744
Contract.
Assert
(_bufferSize > 0);
745
Contract.
Assert
(semaphoreLockTask != null);
763
Contract.
Assert
(_readLen == _readPos);
933
Contract.
Assert
(_writePos < _bufferSize);
948
Contract.
Assert
(count == 0);
952
Contract.
Assert
(count >= 0);
953
Contract.
Assert
(_writePos == _bufferSize);
954
Contract.
Assert
(_buffer != null);
961
Contract.
Assert
(count == 0);
962
Contract.
Assert
(_writePos < _bufferSize);
969
Contract.
Assert
(_buffer != null);
970
Contract.
Assert
(totalUserBytes >= _bufferSize);
1025
Contract.
Assert
(_writePos < _bufferSize);
1032
Contract.
Assert
(count == 0);
1109
Contract.
Assert
(_writePos < _bufferSize);
1118
Contract.
Assert
(count == 0);
1146
Contract.
Assert
(array != null);
1147
Contract.
Assert
(offset >= 0);
1148
Contract.
Assert
(count >= 0);
1149
Contract.
Assert
(array.Length - offset >= count);
1150
Contract.
Assert
(_stream != null);
1151
Contract.
Assert
(_stream.CanWrite);
1152
Contract.
Assert
(_bufferSize > 0);
1153
Contract.
Assert
(semaphoreLockTask != null);
1179
Contract.
Assert
(count == 0);
1183
Contract.
Assert
(count >= 0);
1184
Contract.
Assert
(_writePos == _bufferSize);
1185
Contract.
Assert
(_buffer != null);
1198
Contract.
Assert
(count == 0);
1199
Contract.
Assert
(_writePos < _bufferSize);
1206
Contract.
Assert
(_buffer != null);
1207
Contract.
Assert
(totalUserBytes >= _bufferSize);
1269
Contract.
Assert
(_writePos < _bufferSize);
1297
Contract.
Assert
(oldPos == _stream.Position + (_readPos - _readLen));
system\io\directoryinfo.cs (3)
723
Contract.
Assert
(originalPath != null);
724
Contract.
Assert
(fullPath != null);
746
Contract.
Assert
(fullPath != null);
system\io\filestream.cs (11)
762
Contract.
Assert
(mode != FileMode.Append);
1899
Contract.
Assert
(_isAsync);
2211
Contract.
Assert
(_isAsync);
2723
Contract.
Assert
(task != null);
2732
Contract.
Assert
((!asyncResult.IsWrite && typeof(T) == typeof(int)) ||
2734
Contract.
Assert
(asyncResult != null);
2735
Contract.
Assert
(asyncResult.IsAsync);
2754
Contract.
Assert
(asyncResult != null);
2758
Contract.
Assert
(readTask != null);
2790
Contract.
Assert
(asyncResult != null);
2794
Contract.
Assert
(writeTask != null);
system\io\filesystemenumerable.cs (1)
627
Contract.
Assert
(fullSearchString.Length > fullPathMod.Length);
system\io\isolatedstorage\isolatedstoragefile.cs (2)
2880
Contract.
Assert
(m_RootDir[m_nRootDir].Length < Path.MaxPath);
2936
Contract.
Assert
(m_Root.Length < Path.MaxPath);
system\io\memorystream.cs (1)
536
Contract.
Assert
(MemStreamMaxLength == Int32.MaxValue); // Check parameter validation logic in this method if this fails.
system\io\stream.cs (3)
511
Contract.
Assert
(readWriteTask != null); // Should be Contract.Requires, but CCRewrite is doing a poor job with
513
Contract.
Assert
(asyncWaiter != null); // Ditto
584
Contract.
Assert
(writeTask.Status == TaskStatus.RanToCompletion);
system\io\streamreader.cs (6)
656
Contract.
Assert
(charsRead == 0);
966
Contract.
Assert
(n == 0);
994
Contract.
Assert
(n == 0);
1040
Contract.
Assert
(n == 0);
1048
Contract.
Assert
(n > 0);
1057
Contract.
Assert
(n > 0);
system\io\streamwriter.cs (9)
479
Contract.
Assert
(_this.charPos == 0);
492
Contract.
Assert
(_this.charPos == 0);
503
Contract.
Assert
(_this.charPos == 0);
555
Contract.
Assert
(_this.charPos == 0);
578
Contract.
Assert
(_this.charPos == 0);
589
Contract.
Assert
(_this.charPos == 0);
644
Contract.
Assert
(_this.charPos == 0);
666
Contract.
Assert
(_this.charPos == 0);
677
Contract.
Assert
(_this.charPos == 0);
system\io\unmanagedmemorystream.cs (2)
470
Contract.
Assert
(! (ex is OperationCanceledException));
666
Contract.
Assert
(! (ex is OperationCanceledException));
system\Lazy.cs (4)
329
Contract.
Assert
(m_boxed != null);
384
Contract.
Assert
(m_boxed != null);
398
Contract.
Assert
(exHolder != null);
409
Contract.
Assert
(boxed != null);
system\progress.cs (1)
53
Contract.
Assert
(m_synchronizationContext != null);
system\reflection\assembly.cs (3)
1291
Contract.
Assert
(((MetadataToken)invocableAttribute.MetadataToken).IsTypeDef);
1294
Contract.
Assert
(ctor != null);
1297
Contract.
Assert
(((MetadataToken)token).IsMethodDef);
system\reflection\Associates.cs (2)
49
Contract.
Assert
(declaredType != null);
50
Contract.
Assert
(reflectedType != null);
system\reflection\customattribute.cs (16)
71
Contract.
Assert
(target != null);
94
Contract.
Assert
(target != null);
117
Contract.
Assert
(target != null);
140
Contract.
Assert
(target != null);
148
Contract.
Assert
(target != null);
156
Contract.
Assert
(target != null);
164
Contract.
Assert
(target != null);
175
Contract.
Assert
(target != null);
198
Contract.
Assert
(target != null);
838
Contract.
Assert
(value != null);
1035
Contract.
Assert
(customAttributeCtorParameters != null);
1036
Contract.
Assert
(customAttributeNamedParameters != null);
1391
Contract.
Assert
(type != null);
1607
Contract.
Assert
(attributeCtorToken == 0);
1630
Contract.
Assert
(attributeFilterType == null);
1631
Contract.
Assert
(!MetadataToken.IsNullToken(attributeCtorToken));
system\reflection\emit\assemblybuilder.cs (1)
232
Contract.
Assert
(this.InternalAssembly == module.Assembly);
system\reflection\emit\dynamicmethod.cs (6)
647
Contract.
Assert
(assembly != null);
654
Contract.
Assert
(assembly != null);
673
Contract.
Assert
(assembly != null);
680
Contract.
Assert
(assembly != null);
699
Contract.
Assert
(assembly != null);
706
Contract.
Assert
(assembly != null);
system\reflection\emit\ilgenerator.cs (1)
426
Contract.
Assert
(m_RelocFixupList == null);
system\reflection\emit\methodbuilder.cs (7)
1532
Contract.
Assert
(tryStartOffset >= 0);
1533
Contract.
Assert
(tryEndOffset >= 0);
1534
Contract.
Assert
(filterOffset >= 0);
1535
Contract.
Assert
(handlerStartOffset >= 0);
1536
Contract.
Assert
(handlerEndOffset >= 0);
1537
Contract.
Assert
(IsValidKind((ExceptionHandlingClauseOptions)kind));
1538
Contract.
Assert
(kind != (int)ExceptionHandlingClauseOptions.Clause || (exceptionTypeToken & 0x00FFFFFF) != 0);
system\reflection\emit\modulebuilder.cs (9)
203
Contract.
Assert
(method != null);
219
Contract.
Assert
(method != null);
241
Contract.
Assert
(runtimeField != null);
707
Contract.
Assert
(method is RuntimeMethodInfo || method is RuntimeConstructorInfo);
711
Contract.
Assert
(masmi != null);
1262
Contract.
Assert
(name == enumBuilder.FullName);
1265
Contract.
Assert
(enumBuilder.m_typeBuilder == m_TypeBuilderDict[name]);
1757
Contract.
Assert
(refedModuleBuilder != null || refedModule is RuntimeModule);
1977
Contract.
Assert
(methodInfo != null);
system\reflection\emit\signaturehelper.cs (2)
331
Contract.
Assert
(!MetadataToken.IsNullToken(token));
354
Contract.
Assert
(!MetadataToken.IsNullToken(token));
system\reflection\emit\xxxontypebuilderinstantiation.cs (6)
35
Contract.
Assert
(method is MethodBuilder || method is RuntimeMethodInfo);
65
Contract.
Assert
(m_method is RuntimeMethodInfo);
127
Contract.
Assert
(constructor is ConstructorBuilder || constructor is RuntimeConstructorInfo);
162
Contract.
Assert
(m_ctor is RuntimeConstructorInfo);
236
Contract.
Assert
(field is FieldBuilder || field is RuntimeFieldInfo);
263
Contract.
Assert
(m_field is RuntimeFieldInfo);
system\reflection\eventinfo.cs (4)
130
Contract.
Assert
(addMethod.ReturnType == typeof(void));
147
Contract.
Assert
(parameters != null && parameters.Length == 1);
153
Contract.
Assert
(parameters[0].ParameterType.BaseType == typeof(MulticastDelegate));
256
Contract.
Assert
(!reflectedTypeCache.IsGlobal);
system\reflection\methodinfo.cs (2)
257
Contract.
Assert
(!handle.IsNullHandle());
258
Contract.
Assert
(methodAttributes == RuntimeMethodHandle.GetAttributes(handle));
system\reflection\parameterinfo.cs (8)
271
Contract.
Assert
(method is RuntimeMethodInfo || method is RuntimeConstructorInfo);
280
Contract.
Assert
(method is RuntimeMethodInfo || method is RuntimeConstructorInfo);
399
Contract.
Assert
(result != null);
457
Contract.
Assert
(m_originalMember != null);
477
Contract.
Assert
(MdToken.IsNullToken(tkParamDef) == scope.Equals(MetadataImport.EmptyImport));
478
Contract.
Assert
(MdToken.IsNullToken(tkParamDef) || MdToken.IsTokenOfType(tkParamDef, MetadataTokenType.ParamDef));
520
Contract.
Assert
(parameterType != null);
603
Contract.
Assert
(!m_noMetadata);
system\reflection\propertyinfo.cs (1)
217
Contract.
Assert
(!reflectedTypeCache.IsGlobal);
system\resources\resourcemanager.cs (11)
287
Contract.
Assert
(!AppDomain.IsAppXModel() || AppDomain.IsAppXDesignMode());
320
Contract.
Assert
(!AppDomain.IsAppXModel() || AppDomain.IsAppXDesignMode());
396
Contract.
Assert
(!AppDomain.IsAppXModel() || AppDomain.IsAppXDesignMode());
990
Contract.
Assert
(_bUsingModernResourceManagement);
991
Contract.
Assert
(_WinRTResourceManager != null);
992
Contract.
Assert
(_PRIonAppXInitialized);
993
Contract.
Assert
(AppDomain.IsAppXModel());
1093
Contract.
Assert
(_bUsingModernResourceManagement == false); // Only this function writes to this member
1095
Contract.
Assert
(_WinRTResourceManager == null); // Only this function writes to this member
1096
Contract.
Assert
(_PRIonAppXInitialized == false); // Only this function writes to this member
1097
Contract.
Assert
(_PRIExceptionInfo == null); // Only this function writes to this member
system\rttype.cs (55)
244
Contract.
Assert
(retVal || RequiresStringComparison());
265
Contract.
Assert
(RequiresStringComparison());
595
Contract.
Assert
(false);
610
Contract.
Assert
(cachedMembers[freeSlotIndex] == null);
628
Contract.
Assert
(declaringType != null);
640
Contract.
Assert
(!filter.Match(RuntimeMethodHandle.GetUtf8Name(methodHandle)));
649
Contract.
Assert
(!methodHandle.IsNullHandle());
652
Contract.
Assert
(
700
Contract.
Assert
(!filter.Match(RuntimeMethodHandle.GetUtf8Name(methodHandle)));
709
Contract.
Assert
(!methodHandle.IsNullHandle());
715
Contract.
Assert
(
751
Contract.
Assert
(
768
Contract.
Assert
((methodAttributes & (MethodAttributes.Virtual | MethodAttributes.Abstract)) == 0);
814
Contract.
Assert
(!filter.Match(RuntimeMethodHandle.GetUtf8Name(methodHandle)));
824
Contract.
Assert
(!methodHandle.IsNullHandle());
830
Contract.
Assert
(
943
Contract.
Assert
(!filter.Match(RuntimeFieldHandle.GetUtf8Name(runtimeFieldHandle)));
951
Contract.
Assert
(!runtimeFieldHandle.IsNullHandle());
999
Contract.
Assert
(MdToken.IsTokenOfType(tkField, MetadataTokenType.FieldDef));
1000
Contract.
Assert
(!MdToken.IsNullToken(tkField));
1107
Contract.
Assert
(interfaceType.IsInterface);
1278
Contract.
Assert
(!MdToken.IsNullToken(tkEvent));
1279
Contract.
Assert
(MdToken.IsTokenOfType(tkEvent, MetadataTokenType.Event));
1328
Contract.
Assert
(declaringType != null);
1383
Contract.
Assert
((declaringType.IsInterface && usedSlots == null && csPropertyInfos == null) ||
1391
Contract.
Assert
(!MdToken.IsNullToken(tkProperty));
1392
Contract.
Assert
(MdToken.IsTokenOfType(tkProperty, MetadataTokenType.Property));
1398
Contract.
Assert
(!filter.Match(declaringType.GetRuntimeModule().MetadataImport.GetName(tkProperty)));
1443
Contract.
Assert
(associateMethod.IsVirtual);
1549
Contract.
Assert
(listType == MemberListType.All);
1738
Contract.
Assert
(enclosingType != typeof(void));
2003
Contract.
Assert
(!methodHandle.IsNullHandle());
2286
Contract.
Assert
(fullname.Equals(ns + "." + name));
2378
Contract.
Assert
(name != null);
2484
Contract.
Assert
(type is RuntimeType);
2569
Contract.
Assert
((callConv & CallingConventions.VarArgs) != 0);
2764
Contract.
Assert
(cache != null);
3143
Contract.
Assert
(i == members.Length);
3166
Contract.
Assert
(ifaceType.IsInterface); // VerifyInterfaceIsImplemented enforces this invariant
3167
Contract.
Assert
(!IsInterface); // VerifyInterfaceIsImplemented enforces this invariant
3188
Contract.
Assert
(ifaceMethodBase is RuntimeMethodInfo);
3201
Contract.
Assert
(rtTypeMethodBase == null || rtTypeMethodBase is RuntimeMethodInfo);
3535
Contract.
Assert
(i == compressMembers.Length);
4370
Contract.
Assert
(!IsGenericParameter);
4669
Contract.
Assert
(IsSetField);
4688
Contract.
Assert
(flds != null);
4811
Contract.
Assert
(!IsSetField);
4818
Contract.
Assert
(isSetProperty);
4820
Contract.
Assert
(!IsGetField);
4842
Contract.
Assert
(semiFinalist != null);
4865
Contract.
Assert
(results.Count > 1);
4873
Contract.
Assert
(finalists == null || finalist != null);
4919
Contract.
Assert
(results.Count > 1);
5314
Contract.
Assert
((invokeMethod.CallingConvention & CallingConventions.VarArgs) ==
5525
Contract.
Assert
(ace.m_ctor != null || this.IsValueType);
system\runtime\compilerservices\decimalconstantattribute.cs (2)
67
Contract.
Assert
(parameters.Length == 5);
70
Contract.
Assert
(args.Count == 5);
system\runtime\interopservices\attributes.cs (1)
582
Contract.
Assert
(marshalTypeName != null);
system\runtime\interopservices\windowsruntime\clrireferenceimpl.cs (1)
376
Contract.
Assert
(obj.Rank == 1 && obj.GetLowerBound(0) == 0 && !type.IsArray);
system\runtime\interopservices\windowsruntime\custompropertyimpl.cs (1)
128
Contract.
Assert
(AppDomain.CurrentDomain.PermissionSet.IsUnrestricted());
system\runtime\interopservices\windowsruntime\dictionarytomapadapter.cs (1)
76
Contract.
Assert
(_this != null);
system\runtime\interopservices\windowsruntime\listtovectoradapter.cs (1)
67
Contract.
Assert
(_this != null);
system\runtime\versioning\binarycompatibility.cs (1)
137
Contract.
Assert
(s_AppWasBuiltForFramework != TargetFrameworkId.Unrecognized);
system\security\builtinpermissionsets.cs (1)
308
Contract.
Assert
(!String.IsNullOrEmpty(permissionSetXml));
system\security\codeaccesssecurityengine.cs (3)
732
Contract.
Assert
(evidence != null);
733
Contract.
Assert
(!AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled); // This API does not do CAS policy resolution
764
Contract.
Assert
(evidence != null);
system\security\cryptography\dsacryptoserviceprovider.cs (6)
274
Contract.
Assert
(data != null);
275
Contract.
Assert
(offset >= 0 && offset <= data.Length);
276
Contract.
Assert
(count >= 0 && count <= data.Length - offset);
277
Contract.
Assert
(!String.IsNullOrEmpty(hashAlgorithm.Name));
290
Contract.
Assert
(data != null);
291
Contract.
Assert
(!String.IsNullOrEmpty(hashAlgorithm.Name));
system\security\cryptography\rfc2898derivebytes.cs (1)
157
Contract.
Assert
(m_blockSize > 0);
system\security\cryptography\rsacryptoserviceprovider.cs (6)
522
Contract.
Assert
(data != null);
523
Contract.
Assert
(offset >= 0 && offset <= data.Length);
524
Contract.
Assert
(count >= 0 && count <= data.Length);
525
Contract.
Assert
(!String.IsNullOrEmpty(hashAlgorithm.Name));
536
Contract.
Assert
(data != null);
537
Contract.
Assert
(!String.IsNullOrEmpty(hashAlgorithm.Name));
system\security\namedpermissionset.cs (1)
88
Contract.
Assert
(permissionSetXml != null);
system\security\permissionset.cs (2)
2382
Contract.
Assert
(casPset == null || !casPset.IsReadOnly);
2383
Contract.
Assert
(nonCasPset == null || !nonCasPset.IsReadOnly);
system\security\policy\appdomainevidencefactory.cs (1)
24
Contract.
Assert
(target != null);
system\security\policy\applicationdirectory.cs (1)
39
Contract.
Assert
(appDirectory != null);
system\security\policy\assemblyevidencefactory.cs (5)
35
Contract.
Assert
(targetAssembly != null);
36
Contract.
Assert
(peFileFactory != null);
131
Contract.
Assert
(AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled);
220
Contract.
Assert
(peFileEvidence != null);
221
Contract.
Assert
(targetAssembly != null);
system\security\policy\evidence.cs (46)
211
Contract.
Assert
(target != null);
300
Contract.
Assert
(m_evidenceLock == null || !IsReaderLockHeld);
310
Contract.
Assert
(m_evidenceLock == null || !IsWriterLockHeld);
320
Contract.
Assert
(IsWriterLockHeld);
329
Contract.
Assert
(IsReaderLockHeld);
335
Contract.
Assert
(IsReaderLockHeld);
345
Contract.
Assert
(IsWriterLockHeld);
426
Contract.
Assert
(IsWriterLockHeld);
427
Contract.
Assert
(evidence != null);
428
Contract.
Assert
(evidenceType != null);
476
Contract.
Assert
(evidence != null);
477
Contract.
Assert
(evidenceType != null);
496
Contract.
Assert
(IsWriterLockHeld);
497
Contract.
Assert
(evidence != null);
498
Contract.
Assert
(evidenceType != null);
526
Contract.
Assert
(IsWriterLockHeld);
650
Contract.
Assert
(evidence != null);
679
Contract.
Assert
(IsReaderLockHeld || IsWriterLockHeld);
680
Contract.
Assert
(evidenceType != null);
728
Contract.
Assert
(original != null);
729
Contract.
Assert
(duplicate != null);
730
Contract.
Assert
(original.GetType() == duplicate.GetType() || original.GetType() == typeof(LegacyEvidenceList));
766
Contract.
Assert
(evidence != null);
981
Contract.
Assert
(IsReaderLockHeld || IsWriterLockHeld);
1111
Contract.
Assert
(IsReaderLockHeld);
1122
Contract.
Assert
(IsReaderLockHeld);
1146
Contract.
Assert
(type != null);
1156
Contract.
Assert
(IsReaderLockHeld || IsWriterLockHeld);
1157
Contract.
Assert
(type != null);
1189
Contract.
Assert
(type != null);
1197
Contract.
Assert
(type != null);
1228
Contract.
Assert
(IsReaderLockHeld || IsWriterLockHeld);
1229
Contract.
Assert
(type != null);
1304
Contract.
Assert
(type != null);
1305
Contract.
Assert
(IsWriterLockHeld);
1541
Contract.
Assert
(target != null);
1542
Contract.
Assert
(lockType == LockType.Reader || lockType == LockType.Writer);
1581
Contract.
Assert
(target != null);
1619
Contract.
Assert
(evidence != null);
1620
Contract.
Assert
(evidenceTypes != null);
1694
Contract.
Assert
(evidence != null);
1695
Contract.
Assert
(evidenceTypes != null);
1805
Contract.
Assert
(evidence != null);
1806
Contract.
Assert
(evidence.IsReaderLockHeld);
1885
Contract.
Assert
(m_evidence != null);
1886
Contract.
Assert
(m_evidence.IsReaderLockHeld);
system\security\policy\evidencebase.cs (2)
91
Contract.
Assert
(legacyEvidence != null);
167
Contract.
Assert
(evidence != null);
system\security\policy\evidencetypedescriptor.cs (3)
48
Contract.
Assert
(descriptor != null);
75
Contract.
Assert
(value != null);
120
Contract.
Assert
(value != null);
system\security\policy\hash.cs (9)
108
Contract.
Assert
(hash != null);
120
Contract.
Assert
(hashType != null);
121
Contract.
Assert
(hashValue != null);
334
Contract.
Assert
(assemblyBytes != null);
362
Contract.
Assert
(assemblyBytes != null);
394
Contract.
Assert
(hashAlgorithm != null && typeof(HashAlgorithm).IsAssignableFrom(hashAlgorithm));
395
Contract.
Assert
(fallbackImplementation != null && GetHashIndexType(hashAlgorithm).IsAssignableFrom(fallbackImplementation));
408
Contract.
Assert
(hashAlgorithm != null && typeof(HashAlgorithm).IsAssignableFrom(hashAlgorithm));
445
Contract.
Assert
(hashType != null && typeof(HashAlgorithm).IsAssignableFrom(hashType));
system\security\policy\pefileevidencefactory.cs (1)
65
Contract.
Assert
(peFile != null &&
system\security\policy\site.cs (1)
40
Contract.
Assert
(name != null);
system\security\policy\url.cs (1)
48
Contract.
Assert
(url != null);
system\security\policy\zone.cs (1)
48
Contract.
Assert
(zone != null);
system\security\policymanager.cs (1)
91
Contract.
Assert
(AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled);
system\security\readonlypermissionset.cs (1)
137
Contract.
Assert
(permissionSetEnumerator != null);
system\security\securestring.cs (1)
294
Contract.
Assert
(index <= Int32.MaxValue / sizeof(char));
system\security\securitycontext.cs (7)
126
Contract.
Assert
(Thread.CurrentThread.GetExecutionContextReader().SecurityContext.IsSame(prevSC));
373
Contract.
Assert
(GetCurrentWI(Thread.CurrentThread.GetExecutionContextReader()) == null);
531
Contract.
Assert
(!this.isNewCapture);
642
Contract.
Assert
(cachedAlwaysFlowImpersonationPolicy == _alwaysFlowImpersonationPolicy);
657
Contract.
Assert
(currentEC.IsSame(Thread.CurrentThread.GetExecutionContextReader()));
658
Contract.
Assert
(cachedAlwaysFlowImpersonationPolicy == _alwaysFlowImpersonationPolicy);
666
Contract.
Assert
(_alwaysFlowImpersonationPolicy || currentEC.SecurityContext.WindowsIdentity == targetWI);
system\security\securitymanager.cs (2)
414
Contract.
Assert
(AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled);
437
Contract.
Assert
(AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled);
system\string.cs (1)
1166
Contract.
Assert
(arrIndex < maxItems);
system\stubhelpers.cs (3)
600
Contract.
Assert
(Environment.IsWinRTSupported);
943
Contract.
Assert
(Environment.IsWinRTSupported);
1483
Contract.
Assert
(Environment.IsWinRTSupported);
system\text\encoding.cs (1)
1071
Contract.
Assert
(byteCount == bytesReceived);
system\text\stringbuilder.cs (1)
844
Contract.
Assert
(insertingChars + this.Length < Int32.MaxValue);
system\threading\asynclocal.cs (7)
82
Contract.
Assert
(m_valueChangedHandler != null);
138
Contract.
Assert
(asyncLocalValueMap != null);
139
Contract.
Assert
(asyncLocalValueMap == Empty || asyncLocalValueMap.GetType() != typeof(EmptyAsyncLocalValueMap));
349
Contract.
Assert
(count <= MaxMultiElements);
355
Contract.
Assert
(index < _keyValues.Length);
484
Contract.
Assert
(index == MultiElementAsyncLocalValueMap.MaxMultiElements);
497
Contract.
Assert
(map.Count == count - 1);
system\threading\CancellationTokenSource.cs (4)
89
Contract.
Assert
(source != null);
1029
Contract.
Assert
(callbackInfo != null);
1159
Contract.
Assert
(source != null);
1160
Contract.
Assert
(index >= 0 && index < source.Length);
system\threading\CountdownEvent.cs (2)
192
Contract.
Assert
(m_event != null);
239
Contract.
Assert
(m_event != null);
system\threading\executioncontext.cs (21)
335
Contract.
Assert
(Thread.CurrentThread == this.thread);
532
Contract.
Assert
(!IsPreAllocatedDefault);
547
Contract.
Assert
(!IsPreAllocatedDefault);
572
Contract.
Assert
(this == s_dummyDefaultEC);
711
Contract.
Assert
(current._localChangeNotifications != null);
712
Contract.
Assert
(Array.IndexOf(current._localChangeNotifications, local) >= 0);
804
Contract.
Assert
(this != s_dummyDefaultEC);
821
Contract.
Assert
(this != s_dummyDefaultEC);
837
Contract.
Assert
(this != s_dummyDefaultEC);
852
Contract.
Assert
(this != s_dummyDefaultEC);
866
Contract.
Assert
(this != s_dummyDefaultEC);
882
Contract.
Assert
(this != s_dummyDefaultEC);
937
Contract.
Assert
(executionContext != null);
940
Contract.
Assert
(executionContext.IsDefaultFTContext(preserveSyncCtx));
944
Contract.
Assert
(executionContext.isNewCapture);
997
Contract.
Assert
(currentThread == Thread.CurrentThread);
1005
Contract.
Assert
(SecurityContext.GetCurrentWI(ecsw.outerEC, ecsw.cachedAlwaysFlowImpersonationPolicy) == null);
1029
Contract.
Assert
(executionContext != null);
1030
Contract.
Assert
(executionContext != s_dummyDefaultEC);
1118
Contract.
Assert
(this._illogicalCallContext == null);
1130
Contract.
Assert
(!this.isNewCapture);
system\threading\LazyInitializer.cs (1)
155
Contract.
Assert
(target != null);
system\threading\ManualResetEventSlim.cs (2)
342
Contract.
Assert
(m_lock != null); //if waiters>0, then m_lock has already been created.
752
Contract.
Assert
(mre.m_lock != null); //the lock should have been created before this callback is registered for use.
system\threading\monitor.cs (1)
61
Contract.
Assert
(lockTaken);
system\threading\SpinLock.cs (4)
398
Contract.
Assert
((newOwner & WAITERS_MASK) >= 0);
440
Contract.
Assert
((newOwner & WAITERS_MASK) >= 0);
502
Contract.
Assert
(!IsThreadOwnerTrackingEnabled); // Make sure the waiters never be negative which will cause the thread tracking bit to be flipped
515
Contract.
Assert
(IsThreadOwnerTrackingEnabled);
system\threading\SpinWait.cs (1)
355
Contract.
Assert
(originalWaitMillisecondsTimeout != Timeout.Infinite);
system\threading\synchronizationcontext.cs (1)
284
Contract.
Assert
(Environment.IsWinRTSupported);
system\threading\Tasks\BeginEndAwaitableAdapter.cs (7)
70
Contract.
Assert
(asyncResult != null);
71
Contract.
Assert
(asyncResult.IsCompleted);
72
Contract.
Assert
(asyncResult.AsyncState is BeginEndAwaitableAdapter);
89
Contract.
Assert
(continuation != CALLBACK_RAN);
119
Contract.
Assert
(continuation != null);
128
Contract.
Assert
(continuation != null);
147
Contract.
Assert
(_asyncResult != null && _asyncResult.IsCompleted);
system\threading\Tasks\Future.cs (2)
512
Contract.
Assert
(success);
676
Contract.
Assert
(m_action != null);
system\threading\Tasks\FutureFactory.cs (4)
1807
Contract.
Assert
(continuationAction != null);
1860
Contract.
Assert
(continuationAction != null);
2206
Contract.
Assert
(continuationAction != null);
2252
Contract.
Assert
(continuationAction != null);
system\threading\Tasks\Parallel.cs (6)
1168
Contract.
Assert
(sharedPStateFlags != null);
1173
Contract.
Assert
(sharedPStateFlags != null);
1482
Contract.
Assert
(sharedPStateFlags != null);
1487
Contract.
Assert
(sharedPStateFlags != null);
2289
Contract.
Assert
(array != null);
2348
Contract.
Assert
(list != null);
system\threading\Tasks\ParallelLoopState.cs (3)
52
Contract.
Assert
(false);
109
Contract.
Assert
(false);
157
Contract.
Assert
(false);
system\threading\Tasks\ParallelRangeManager.cs (4)
193
Contract.
Assert
((nFromInclusiveLocal <= Int32.MaxValue) && (nFromInclusiveLocal >= Int32.MinValue) &&
252
Contract.
Assert
((uSpan / uRangeSize) < Int32.MaxValue);
286
Contract.
Assert
(i == nNumRanges - 1);
302
Contract.
Assert
(m_indexRanges != null && m_indexRanges.Length != 0);
system\threading\Tasks\Task.cs (8)
2105
Contract.
Assert
(m_contingentProperties != null); // ExceptionRecorded ==> m_contingentProperties != null
2437
Contract.
Assert
(exceptionHolder != null);
3263
Contract.
Assert
(IsCompleted || millisecondsTimeout != Timeout.Infinite);
3501
Contract.
Assert
(m_contingentProperties.m_cancellationToken == default(CancellationToken));
5496
Contract.
Assert
(firstCompleted.Status == TaskStatus.RanToCompletion);
5498
Contract.
Assert
(signaledTaskIndex >= 0);
6400
Contract.
Assert
(task.Status == TaskStatus.RanToCompletion);
6626
Contract.
Assert
(continuationTask.m_action == null);
system\threading\Tasks\TaskCompletionSource.cs (1)
215
Contract.
Assert
(exceptions != null);
system\threading\Tasks\TaskContinuation.cs (11)
59
Contract.
Assert
(m_action != null);
107
Contract.
Assert
(m_action != null);
155
Contract.
Assert
(m_action != null);
203
Contract.
Assert
(m_action != null);
245
Contract.
Assert
(task.m_taskScheduler != null);
324
Contract.
Assert
(completedTask != null);
405
Contract.
Assert
(context != null);
496
Contract.
Assert
(scheduler != null);
749
Contract.
Assert
(currentTask == Task.t_currentTask);
796
Contract.
Assert
(currentTask == Task.t_currentTask);
865
Contract.
Assert
(m_action != null);
system\threading\thread.cs (2)
402
Contract.
Assert
(Thread.CurrentThread == this);
765
Contract.
Assert
(ProcessorIdRefreshRate <= ProcessorIdCacheCountDownMask);
system\threading\ThreadLocal.cs (4)
556
Contract.
Assert
(table.Length < minLength);
594
Contract.
Assert
(minSize > 0);
743
Contract.
Assert
(slotArray != null);
771
Contract.
Assert
(linkedSlot.Previous != null);
system\threading\threadpool.cs (26)
180
Contract.
Assert
(m_headIndex <= m_tailIndex);
242
Contract.
Assert
(unused == obj);
442
Contract.
Assert
(upper >= lower);
443
Contract.
Assert
(upper <= nodes.Length);
444
Contract.
Assert
(lower <= nodes.Length);
445
Contract.
Assert
(upper >= 0);
446
Contract.
Assert
(lower >= 0);
451
Contract.
Assert
(newUpper >= newLower);
452
Contract.
Assert
(newUpper <= nodes.Length);
453
Contract.
Assert
(newLower <= nodes.Length);
454
Contract.
Assert
(newUpper >= 0);
455
Contract.
Assert
(newLower >= 0);
456
Contract.
Assert
(newUpper >= prevUpper);
457
Contract.
Assert
(newLower >= prevLower);
458
Contract.
Assert
(newUpper == prevUpper ^ newLower == prevLower);
471
Contract.
Assert
(QueueSegmentLength <= SixteenBits);
494
Contract.
Assert
(null != node);
506
Contract.
Assert
(Volatile.Read(ref nodes[upper]) == null);
665
Contract.
Assert
(null != callback);
674
Contract.
Assert
(null != callback);
702
Contract.
Assert
(null != callback);
862
Contract.
Assert
(false);
902
Contract.
Assert
(null != cb);
1272
Contract.
Assert
(null != wc);
1656
Contract.
Assert
(null != workItem);
1673
Contract.
Assert
(null != workItem);
system\threading\timer.cs (12)
157
Contract.
Assert
(!m_isAppDomainTimerScheduled);
158
Contract.
Assert
(m_appDomainTimer == null);
164
Contract.
Assert
(!m_isAppDomainTimerScheduled);
207
Contract.
Assert
(id == 0);
283
Contract.
Assert
(timer.m_dueTime != Timeout.UnsignedInfinite);
284
Contract.
Assert
(resumedTicks >= timer.m_startTicks);
357
Contract.
Assert
(timer.m_dueTime != Timeout.UnsignedInfinite);
750
Contract.
Assert
((timer is NetCore.TimerQueueTimer) == Timer.UseNetCoreTimer);
785
Contract.
Assert
(!Timer.UseNetCoreTimer);
786
Contract.
Assert
(m_timer is TimerQueueTimer);
797
Contract.
Assert
(Timer.UseNetCoreTimer);
798
Contract.
Assert
(m_timer is NetCore.TimerQueueTimer);
system\typenameparser.cs (4)
143
Contract.
Assert
(asmName != null);
171
Contract.
Assert
(throwOnError == false);
183
Contract.
Assert
(typeArguments[i] != null);
193
Contract.
Assert
(throwOnError == false);
System (35)
net\System\Net\_ChunkParser.cs (7)
305
Contract.
Assert
(result is int);
358
Contract.
Assert
(bufferCurrentPos <= bufferFillLength);
388
Contract.
Assert
(currentPos == 0);
389
Contract.
Assert
(bufferFillLength == buffer.Length);
489
Contract.
Assert
(currentOperationBytesRead < userBufferCount);
547
Contract.
Assert
(currentChunkLength == noChunkLength);
637
Contract.
Assert
(currentChunkBytesRead == currentChunkLength);
net\System\Net\NetworkInformation\SystemUnicastIPAddressInformation.cs (1)
161
Contract.
Assert
(prefixLength < (addressBytes.Length * 8));
net\System\Net\SocketAddress.cs (2)
178
Contract.
Assert
(Size >= IPv6AddressSize);
193
Contract.
Assert
(Size >= IPv4AddressSize);
net\System\Net\WebSockets\WebSocketBase.cs (2)
207
Contract.
Assert
(buffer != null);
308
Contract.
Assert
(buffer != null);
net\System\Net\WebSockets\WebSocketProtocolComponent.cs (4)
706
Contract.
Assert
(dataBufferCount >= 0);
707
Contract.
Assert
((dataBufferCount == 0 && dataBuffers == null) ||
860
Contract.
Assert
(httpHeaders != null);
861
Contract.
Assert
(httpHeaders.Length == nativeHeaderCount);
parent\parent\parent\InternalApis\NDP_FX\inc\ZLibNative.cs (2)
470
Contract.
Assert
(null != ZLibStreamHandle.zlibLibraryHandle);
471
Contract.
Assert
(!ZLibStreamHandle.zlibLibraryHandle.IsInvalid);
sys\system\collections\concurrent\ConcurrentBag.cs (7)
345
Contract.
Assert
(Monitor.IsEntered(GlobalListsLock));
747
Contract.
Assert
(m_locals != null);
764
Contract.
Assert
(!Monitor.IsEntered(GlobalListsLock));
798
Contract.
Assert
(Monitor.IsEntered(GlobalListsLock));
844
Contract.
Assert
(Monitor.IsEntered(GlobalListsLock));
867
Contract.
Assert
(Monitor.IsEntered(GlobalListsLock));
889
Contract.
Assert
(Monitor.IsEntered(GlobalListsLock));
sys\System\IO\compression\DeflaterZLib.cs (6)
137
Contract.
Assert
(null != inputBuffer);
138
Contract.
Assert
(startIndex >= 0 && count >= 0 && count + startIndex <= inputBuffer.Length);
139
Contract.
Assert
(!_inputBufferHandle.IsAllocated);
161
Contract.
Assert
(_inputBufferHandle.IsAllocated);
196
Contract.
Assert
(!_inputBufferHandle.IsAllocated);
213
Contract.
Assert
(_inputBufferHandle.IsAllocated);
sys\system\runtime\versioning\FrameworkName.cs (4)
32
Contract.
Assert
(m_identifier != null);
39
Contract.
Assert
(m_version != null);
46
Contract.
Assert
(m_profile != null);
67
Contract.
Assert
(m_fullName != null);
System.AddIn (36)
System\Addin\Hosting\ActivationWorker.cs (2)
202
System.Diagnostics.Contracts.Contract.
Assert
(_pipeline != null);
243
System.Diagnostics.Contracts.Contract.
Assert
(false);
System\Addin\Hosting\AddInActivator.cs (1)
648
System.Diagnostics.Contracts.Contract.
Assert
(_contract != null);
System\Addin\Hosting\AddInStore.cs (1)
1033
System.Diagnostics.Contracts.Contract.
Assert
(serializedData.Length <= Int32.MaxValue);
System\Addin\Hosting\AddInToken.cs (1)
155
System.Diagnostics.Contracts.Contract.
Assert
(AddInStore.Contains(_hostAddinViews, value));
System\Addin\Hosting\Store\PipelineComponent.cs (6)
128
System.Diagnostics.Contracts.Contract.
Assert
(s_IContractInReflectionLoaderContext != null);
135
System.Diagnostics.Contracts.Contract.
Assert
(s_ContractAttrInReflectionLoaderContext != null);
142
System.Diagnostics.Contracts.Contract.
Assert
(s_AddInAdapterAttrInReflectionLoaderContext != null);
149
System.Diagnostics.Contracts.Contract.
Assert
(s_AddInBaseAttrInReflectionLoaderContext != null);
156
System.Diagnostics.Contracts.Contract.
Assert
(s_AddInAttrInReflectionLoaderContext != null);
183
System.Diagnostics.Contracts.Contract.
Assert
(!Path.IsPathRooted(_relativeLocation));
System\Addin\MiniReflection\MiniAssembly.cs (2)
83
System.Diagnostics.Contracts.Contract.
Assert
(attrs == MDFileAttributes.ContainsMetaData);
98
System.Diagnostics.Contracts.Contract.
Assert
(!IsReflectionAssembly); // Can be implemented using Assembly.GetType
System\Addin\MiniReflection\MiniModule.cs (2)
72
System.Diagnostics.Contracts.Contract.
Assert
(_assembly != null);
153
System.Diagnostics.Contracts.Contract.
Assert
(caType.Table == MDTables.Tables.MethodDef);
System\Addin\MiniReflection\TypeInfo.cs (21)
200
System.Diagnostics.Contracts.Contract.
Assert
(_assembly == null); // Don't do this, or we might serialize assemblies!
212
System.Diagnostics.Contracts.Contract.
Assert
((_representation & Representation.ReflectionType) == 0);
237
System.Diagnostics.Contracts.Contract.
Assert
(HasReflectionType);
274
System.Diagnostics.Contracts.Contract.
Assert
(HasReflectionType);
316
System.Diagnostics.Contracts.Contract.
Assert
(HasToken);
357
System.Diagnostics.Contracts.Contract.
Assert
(HasName);
364
System.Diagnostics.Contracts.Contract.
Assert
(HasName);
373
System.Diagnostics.Contracts.Contract.
Assert
(HasName);
377
System.Diagnostics.Contracts.Contract.
Assert
(!HasTypeRef);
391
System.Diagnostics.Contracts.Contract.
Assert
(_assembly != null || HasAssemblyQualifiedName);
400
System.Diagnostics.Contracts.Contract.
Assert
(_assembly != null);
418
System.Diagnostics.Contracts.Contract.
Assert
(HasToken);
419
System.Diagnostics.Contracts.Contract.
Assert
(!HasTypeRef);
480
System.Diagnostics.Contracts.Contract.
Assert
(_mdToken.Table == MDTables.Tables.TypeDef);
725
System.Diagnostics.Contracts.Contract.
Assert
(HasToken || HasReflectionType || HasTypeRef);
729
System.Diagnostics.Contracts.Contract.
Assert
(ifaceType.HasAssemblyQualifiedName);
752
System.Diagnostics.Contracts.Contract.
Assert
(_mdToken.Table == MDTables.Tables.TypeDef);
846
System.Diagnostics.Contracts.Contract.
Assert
(resolutionScope.Table == MDTables.Tables.AssemblyRef);
884
System.Diagnostics.Contracts.Contract.
Assert
(_mdToken.Table == MDTables.Tables.TypeDef);
933
System.Diagnostics.Contracts.Contract.
Assert
(HasName);
976
System.Diagnostics.Contracts.Contract.
Assert
(caType.Table == MDTables.Tables.MethodDef);
System.Core (505)
Microsoft\Win32\SafeHandles\NCryptSafeHandles.cs (9)
134
Contract.
Assert
(m_ownershipState != OwnershipState.Duplicate);
135
Contract.
Assert
(value.m_ownershipState == OwnershipState.Holder);
230
Contract.
Assert
(m_ownershipState != OwnershipState.Holder);
231
Contract.
Assert
(typeof(T) == this.GetType());
258
Contract.
Assert
(m_ownershipState == OwnershipState.Duplicate);
259
Contract.
Assert
(typeof(T) == this.GetType());
294
Contract.
Assert
(m_ownershipState == OwnershipState.Owner);
295
Contract.
Assert
(typeof(T) == this.GetType());
421
Contract.
Assert
(handle == IntPtr.Zero);
System\Linq\Parallel\Channels\AsynchronousChannel.cs (7)
291
Contract.
Assert
(chunk != null);
386
Contract.
Assert
(1 <= m_producerChunkIndex && m_producerChunkIndex <= m_chunkSize);
413
Contract.
Assert
(m_consumerChunk == null);
491
Contract.
Assert
(m_consumerChunk == null);
611
Contract.
Assert
(!IsChunkBufferEmpty);
670
Contract.
Assert
(m_producerEvent != null);
671
Contract.
Assert
(m_consumerEvent != null);
System\Linq\Parallel\Channels\SynchronousChannel.cs (4)
71
Contract.
Assert
(m_queue != null);
93
Contract.
Assert
(m_queue != null);
119
Contract.
Assert
(array != null);
134
Contract.
Assert
(m_queue != null);
System\Linq\Parallel\Enumerables\AggregationMinMaxHelpers.cs (2)
29
Contract.
Assert
(source != null);
30
Contract.
Assert
(sign == -1 || sign == 1);
System\Linq\Parallel\Enumerables\EnumerableWrapperWeakToStrong.cs (2)
36
Contract.
Assert
(wrappedEnumerable != null);
65
Contract.
Assert
(wrappedEnumerator != null);
System\Linq\Parallel\Enumerables\OrderedParallelQuery.cs (1)
33
Contract.
Assert
(sortOp is IOrderedEnumerable<TSource>);
System\Linq\Parallel\Enumerables\ParallelEnumerableWrapper.cs (2)
36
Contract.
Assert
(source != null);
95
Contract.
Assert
(m_wrappedEnumerable != null);
System\Linq\Parallel\Merging\AsynchronousChannelMergeEnumerator.cs (2)
51
Contract.
Assert
(channels != null);
272
Contract.
Assert
(currChannelIndex == m_channels.Length);
System\Linq\Parallel\Merging\DefaultMergeHelper.cs (5)
52
Contract.
Assert
(partitions != null);
89
Contract.
Assert
(m_asyncChannels == null || m_asyncChannels.Length == partitions.PartitionCount);
90
Contract.
Assert
(m_syncChannels == null || m_syncChannels.Length == partitions.PartitionCount);
120
Contract.
Assert
(m_partitions.PartitionCount == 1);
130
Contract.
Assert
(m_ignoreOutput || m_channelEnumerator != null);
System\Linq\Parallel\Merging\MergeEnumerator.cs (2)
34
Contract.
Assert
(taskGroupState != null);
72
Contract.
Assert
(m_taskGroupState.CancellationState.TopLevelDisposedFlag.Value);
System\Linq\Parallel\Merging\MergeExecutor.cs (6)
58
Contract.
Assert
(partitions != null);
59
Contract.
Assert
(partitions.PartitionCount > 0);
67
Contract.
Assert
(options == ParallelMergeOptions.NotBuffered || options == ParallelMergeOptions.AutoBuffered);
106
Contract.
Assert
(m_mergeHelper != null);
122
Contract.
Assert
(m_mergeHelper != null);
151
Contract.
Assert
(options == ParallelMergeOptions.NotBuffered || options == ParallelMergeOptions.AutoBuffered);
System\Linq\Parallel\Merging\OrderPreservingMergeHelper.cs (2)
45
Contract.
Assert
(partitions != null);
73
Contract.
Assert
(m_results.Value != null);
System\Linq\Parallel\Merging\OrderPreservingPipeliningMergeHelper.cs (6)
122
Contract.
Assert
(partitions != null);
139
Contract.
Assert
(typeof(TKey) == typeof(int));
409
Contract.
Assert
(m_mergeHelper.m_producerDone[producer]);
446
Contract.
Assert
(gotElement);
465
Contract.
Assert
(m_privateBuffer[producer].Count == 0);
523
Contract.
Assert
(x.MaxKey >= 0 && y.MaxKey >= 0); // Guarantees no overflow on next line
System\Linq\Parallel\Merging\SynchronousChannelMergeEnumerator.cs (4)
42
Contract.
Assert
(channels != null);
84
Contract.
Assert
(m_channels != null);
96
Contract.
Assert
(current != null);
115
Contract.
Assert
(m_channelIndex == m_channels.Length);
System\Linq\Parallel\Partitioning\HashRepartitionEnumerator.cs (10)
72
Contract.
Assert
(source != null);
73
Contract.
Assert
(keySelector != null || typeof(THashKey) == typeof(NoKeyMemoizationRequired));
74
Contract.
Assert
(repartitionStream != null);
75
Contract.
Assert
(barrier != null);
76
Contract.
Assert
(valueExchangeMatrix != null);
79
Contract.
Assert
(0 <= partitionIndex && partitionIndex < partitionCount);
135
Contract.
Assert
(mutables.m_currentBufferIndex != ENUMERATION_NOT_STARTED);
158
Contract.
Assert
(mutables.m_currentBuffer == null || mutables.m_currentBuffer.Count > 0);
202
Contract.
Assert
(mutables != null);
225
Contract.
Assert
(typeof(THashKey) == typeof(NoKeyMemoizationRequired));
System\Linq\Parallel\Partitioning\HashRepartitionStream.cs (2)
58
Contract.
Assert
(m_keyComparer == null || m_elementComparer == null);
59
Contract.
Assert
(m_elementComparer == null || typeof(THashKey) == typeof(NoKeyMemoizationRequired));
System\Linq\Parallel\Partitioning\OrderedHashRepartitionEnumerator.cs (14)
74
Contract.
Assert
(source != null);
75
Contract.
Assert
(keySelector != null || typeof(THashKey) == typeof(NoKeyMemoizationRequired));
76
Contract.
Assert
(repartitionStream != null);
77
Contract.
Assert
(barrier != null);
78
Contract.
Assert
(valueExchangeMatrix != null);
81
Contract.
Assert
(0 <= partitionIndex && partitionIndex < partitionCount);
136
Contract.
Assert
(mutables.m_currentBufferIndex != ENUMERATION_NOT_STARTED);
148
Contract.
Assert
(mutables.m_currentKeyBuffer != null);
164
Contract.
Assert
(mutables.m_currentBuffer == null || mutables.m_currentBuffer.Count > 0);
165
Contract.
Assert
((mutables.m_currentBuffer == null) == (mutables.m_currentKeyBuffer == null));
166
Contract.
Assert
(mutables.m_currentBuffer == null || mutables.m_currentBuffer.Count == mutables.m_currentKeyBuffer.Count);
211
Contract.
Assert
(mutables != null);
235
Contract.
Assert
(typeof(THashKey) == typeof(NoKeyMemoizationRequired));
252
Contract.
Assert
(keyBuffer == null);
System\Linq\Parallel\Partitioning\PartitionedDataSource.cs (21)
78
Contract.
Assert
(source != null);
79
Contract.
Assert
(partitionCount > 0);
86
Contract.
Assert
(source != null);
145
Contract.
Assert
(partitions.Length == partitionCount);
168
Contract.
Assert
(source != null);
169
Contract.
Assert
(partitionCount > 0);
258
Contract.
Assert
(sectionSize > 0);
288
Contract.
Assert
(mutables != null);
289
Contract.
Assert
(mutables.m_currentPositionInChunk >= mutables.m_currentChunkSize);
436
Contract.
Assert
(sectionSize > 0);
466
Contract.
Assert
(mutables != null);
467
Contract.
Assert
(mutables.m_currentPositionInChunk >= mutables.m_currentChunkSize);
616
Contract.
Assert
(source != null);
617
Contract.
Assert
(sourceSyncLock != null);
618
Contract.
Assert
(currentIndex != null);
639
Contract.
Assert
(mutables.m_chunkBuffer != null);
649
Contract.
Assert
(m_source != null);
650
Contract.
Assert
(chunkBuffer != null);
651
Contract.
Assert
(mutables.m_currentChunkSize > 0);
652
Contract.
Assert
(0 <= currentChunkIndex && currentChunkIndex < chunkBuffer.Length);
666
Contract.
Assert
(0 <= mutables.m_nextChunkMaxSize && mutables.m_nextChunkMaxSize <= chunkBuffer.Length);
System\Linq\Parallel\Partitioning\PartitionedStream.cs (5)
44
Contract.
Assert
(partitionCount > 0);
61
Contract.
Assert
(m_partitions != null);
67
Contract.
Assert
(m_partitions != null);
68
Contract.
Assert
(value != null);
82
Contract.
Assert
(m_partitions != null);
System\Linq\Parallel\QueryOperators\AssociativeAggregationOperator.cs (7)
112
Contract.
Assert
(m_finalReduce != null);
113
Contract.
Assert
(m_resultSelector != null);
258
Contract.
Assert
(source != null);
259
Contract.
Assert
(reduceOperator != null);
277
Contract.
Assert
(m_reduceOperator != null);
302
Contract.
Assert
(typeof(TInput) == typeof(TIntermediate));
335
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Binary\ExceptQueryOperator.cs (11)
60
Contract.
Assert
(leftStream.PartitionCount == rightStream.PartitionCount);
160
Contract.
Assert
(leftSource != null);
161
Contract.
Assert
(rightSource != null);
175
Contract.
Assert
(m_leftSource != null);
176
Contract.
Assert
(m_rightSource != null);
224
Contract.
Assert
(m_leftSource != null && m_rightSource != null);
249
Contract.
Assert
(leftSource != null);
250
Contract.
Assert
(rightSource != null);
265
Contract.
Assert
(m_leftSource != null);
266
Contract.
Assert
(m_rightSource != null);
327
Contract.
Assert
(m_leftSource != null && m_rightSource != null);
System\Linq\Parallel\QueryOperators\Binary\GroupJoinQueryOperator.cs (1)
80
Contract.
Assert
(rightStream.PartitionCount == leftStream.PartitionCount);
System\Linq\Parallel\QueryOperators\Binary\HashJoinQueryOperatorEnumerator.cs (9)
72
Contract.
Assert
(leftSource != null);
73
Contract.
Assert
(rightSource != null);
74
Contract.
Assert
(singleResultSelector != null || groupResultSelector != null);
99
Contract.
Assert
(m_leftSource != null);
100
Contract.
Assert
(m_rightSource != null);
249
Contract.
Assert
(m_singleResultSelector != null);
250
Contract.
Assert
(mutables.m_currentRightMatches != null);
251
Contract.
Assert
(0 <= mutables.m_currentRightMatchesIndex && mutables.m_currentRightMatchesIndex < mutables.m_currentRightMatches.Count);
264
Contract.
Assert
(m_leftSource != null && m_rightSource != null);
System\Linq\Parallel\QueryOperators\Binary\IntersectQueryOperator.cs (11)
62
Contract.
Assert
(leftPartitionedStream.PartitionCount == rightPartitionedStream.PartitionCount);
149
Contract.
Assert
(leftSource != null);
150
Contract.
Assert
(rightSource != null);
164
Contract.
Assert
(m_leftSource != null);
165
Contract.
Assert
(m_rightSource != null);
215
Contract.
Assert
(m_leftSource != null && m_rightSource != null);
253
Contract.
Assert
(leftSource != null);
254
Contract.
Assert
(rightSource != null);
269
Contract.
Assert
(m_leftSource != null);
270
Contract.
Assert
(m_rightSource != null);
331
Contract.
Assert
(m_leftSource != null && m_rightSource != null);
System\Linq\Parallel\QueryOperators\Binary\JoinQueryOperator.cs (1)
83
Contract.
Assert
(rightStream.PartitionCount == leftStream.PartitionCount);
System\Linq\Parallel\QueryOperators\Binary\UnionQueryOperator.cs (9)
64
Contract.
Assert
(leftStream.PartitionCount == rightStream.PartitionCount);
208
Contract.
Assert
(leftSource != null);
209
Contract.
Assert
(rightSource != null);
230
Contract.
Assert
(m_hashLookup != null);
325
Contract.
Assert
(leftSource != null);
326
Contract.
Assert
(rightSource != null);
350
Contract.
Assert
(m_leftSource != null);
351
Contract.
Assert
(m_rightSource != null);
412
Contract.
Assert
(m_leftSource != null && m_rightSource != null);
System\Linq\Parallel\QueryOperators\Binary\ZipQueryOperator.cs (2)
182
Contract.
Assert
(m_leftChildResults.IsIndexible);
183
Contract.
Assert
(m_rightChildResults.IsIndexible);
System\Linq\Parallel\QueryOperators\BinaryQueryOperator.cs (2)
46
Contract.
Assert
(leftChild != null && rightChild != null);
109
Contract.
Assert
(IsIndexible == (m_op.OrdinalIndexState == OrdinalIndexState.Indexible));
System\Linq\Parallel\QueryOperators\Inlined\CountAggregationOperator.cs (2)
93
Contract.
Assert
(source != null);
137
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Inlined\DecimalAverageAggregationOperator.cs (2)
103
Contract.
Assert
(source != null);
152
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Inlined\DecimalMinMaxAggregationOperator.cs (2)
121
Contract.
Assert
(source != null);
182
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Inlined\DecimalSumAggregationOperator.cs (2)
91
Contract.
Assert
(source != null);
134
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Inlined\DoubleAverageAggregationOperator.cs (2)
103
Contract.
Assert
(source != null);
152
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Inlined\DoubleMinMaxAggregationOperator.cs (2)
127
Contract.
Assert
(source != null);
189
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Inlined\DoubleSumAggregationOperator.cs (2)
93
Contract.
Assert
(source != null);
135
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Inlined\FloatAverageAggregationOperator.cs (2)
103
Contract.
Assert
(source != null);
152
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Inlined\FloatMinMaxAggregationOperator.cs (2)
125
Contract.
Assert
(source != null);
186
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Inlined\FloatSumAggregationOperator.cs (2)
95
Contract.
Assert
(source != null);
138
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Inlined\IntAverageAggregationOperator.cs (2)
103
Contract.
Assert
(source != null);
152
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Inlined\IntMinMaxAggregationOperator.cs (2)
121
Contract.
Assert
(source != null);
183
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Inlined\IntSumAggregationOperator.cs (2)
95
Contract.
Assert
(source != null);
141
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Inlined\LongAverageAggregationOperator.cs (2)
103
Contract.
Assert
(source != null);
152
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Inlined\LongCountAggregationOperator.cs (2)
95
Contract.
Assert
(source != null);
140
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Inlined\LongMinMaxAggregationOperator.cs (2)
122
Contract.
Assert
(source != null);
184
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Inlined\LongSumAggregationOperator.cs (2)
94
Contract.
Assert
(source != null);
140
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Inlined\NullableDecimalAverageAggregationOperator.cs (2)
99
Contract.
Assert
(source != null);
140
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Inlined\NullableDecimalMinMaxAggregationOperator.cs (2)
117
Contract.
Assert
(source != null);
179
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Inlined\NullableDecimalSumAggregationOperator.cs (2)
88
Contract.
Assert
(source != null);
131
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Inlined\NullableDoubleAverageAggregationOperator.cs (2)
99
Contract.
Assert
(source != null);
140
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Inlined\NullableDoubleMinMaxAggregationOperator.cs (2)
125
Contract.
Assert
(source != null);
189
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Inlined\NullableDoubleSumAggregationOperator.cs (2)
88
Contract.
Assert
(source != null);
132
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Inlined\NullableFloatAverageAggregationOperator.cs (2)
99
Contract.
Assert
(source != null);
141
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Inlined\NullableFloatMinMaxAggregationOperator.cs (2)
125
Contract.
Assert
(source != null);
189
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Inlined\NullableFloatSumAggregationOperator.cs (2)
88
Contract.
Assert
(source != null);
131
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Inlined\NullableIntAverageAggregationOperator.cs (2)
99
Contract.
Assert
(source != null);
141
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Inlined\NullableIntMinMaxAggregationOperator.cs (2)
117
Contract.
Assert
(source != null);
178
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Inlined\NullableIntSumAggregationOperator.cs (2)
91
Contract.
Assert
(source != null);
136
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Inlined\NullableLongAverageAggregationOperator.cs (2)
100
Contract.
Assert
(source != null);
141
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Inlined\NullableLongMinMaxAggregationOperator.cs (2)
118
Contract.
Assert
(source != null);
180
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Inlined\NullableLongSumAggregationOperator.cs (2)
92
Contract.
Assert
(source != null);
138
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\PartitionerQueryOperator.cs (3)
136
Contract.
Assert
(m_settings.DegreeOfParallelism.HasValue);
240
Contract.
Assert
(m_sourceEnumerator != null);
270
Contract.
Assert
(m_sourceEnumerator != null);
System\Linq\Parallel\QueryOperators\QueryOpeningEnumerator.cs (1)
57
Contract.
Assert
(queryOperator != null);
System\Linq\Parallel\QueryOperators\QueryOperator.cs (6)
146
Contract.
Assert
(mergeOptions != null);
186
Contract.
Assert
(querySettings.TaskScheduler != null);
187
Contract.
Assert
(querySettings.DegreeOfParallelism.HasValue);
188
Contract.
Assert
(querySettings.ExecutionMode.HasValue);
305
Contract.
Assert
(source != null);
331
Contract.
Assert
(sourceAsOperator != null);
System\Linq\Parallel\QueryOperators\QueryOperatorEnumerator.cs (1)
66
Contract.
Assert
(operatorEnumerator != null);
System\Linq\Parallel\QueryOperators\QuerySettings.cs (11)
47
Contract.
Assert
(m_cancellationState != null);
100
Contract.
Assert
(m_cancellationState != null);
166
Contract.
Assert
(settings.CancellationState.InternalCancellationTokenSource != null);
167
Contract.
Assert
(settings.CancellationState.MergedCancellationToken.CanBeCanceled);
168
Contract.
Assert
(settings.CancellationState.TopLevelDisposedFlag != null);
209
Contract.
Assert
(settings.TaskScheduler != null);
210
Contract.
Assert
(settings.DegreeOfParallelism.HasValue);
211
Contract.
Assert
(settings.DegreeOfParallelism.Value >= 1 && settings.DegreeOfParallelism <= Scheduling.MAX_SUPPORTED_DOP);
212
Contract.
Assert
(settings.ExecutionMode != null);
213
Contract.
Assert
(settings.MergeOptions != null);
215
Contract.
Assert
(settings.MergeOptions != ParallelMergeOptions.Default);
System\Linq\Parallel\QueryOperators\ScanQueryOperator.cs (2)
38
Contract.
Assert
(data != null);
65
Contract.
Assert
(settings.DegreeOfParallelism.HasValue);
System\Linq\Parallel\QueryOperators\Unary\AnyAllSearchOperator.cs (5)
169
Contract.
Assert
(source != null);
170
Contract.
Assert
(predicate != null);
171
Contract.
Assert
(resultFoundFlag != null);
189
Contract.
Assert
(m_predicate != null);
237
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Unary\ConcatQueryOperator.cs (8)
94
Contract.
Assert
(!ExchangeUtilities.IsWorseThan(leftStream.OrdinalIndexState, OrdinalIndexState.Increasing));
113
Contract.
Assert
(!ExchangeUtilities.IsWorseThan(rightStream.OrdinalIndexState, OrdinalIndexState.Increasing));
177
Contract.
Assert
(firstSource != null);
178
Contract.
Assert
(secondSource != null);
194
Contract.
Assert
(m_firstSource != null);
195
Contract.
Assert
(m_secondSource != null);
264
Contract.
Assert
(leftChildQueryResults.IsIndexible && rightChildQueryResults.IsIndexible);
279
Contract.
Assert
(m_leftChildCount >= 0 && m_rightChildCount >= 0);
System\Linq\Parallel\QueryOperators\Unary\ContainsSearchOperator.cs (5)
156
Contract.
Assert
(source != null);
157
Contract.
Assert
(comparer != null);
158
Contract.
Assert
(resultFoundFlag != null);
176
Contract.
Assert
(m_comparer != null);
223
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Unary\DefaultIfEmptyQueryOperator.cs (6)
127
Contract.
Assert
(source != null);
128
Contract.
Assert
(0 <= partitionIndex && partitionIndex < partitionCount);
129
Contract.
Assert
(partitionCount > 0);
130
Contract.
Assert
(sharedEmptyCount != null);
131
Contract.
Assert
(sharedLatch != null);
148
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Unary\DistinctQueryOperator.cs (8)
139
Contract.
Assert
(source != null);
151
Contract.
Assert
(m_source != null);
152
Contract.
Assert
(m_hashLookup != null);
182
Contract.
Assert
(m_source != null);
215
Contract.
Assert
(source != null);
231
Contract.
Assert
(m_source != null);
232
Contract.
Assert
(m_hashLookup != null);
277
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Unary\ElementAtQueryOperator.cs (5)
79
Contract.
Assert
(intKeyStream.OrdinalIndexState == OrdinalIndexState.Indexible);
185
Contract.
Assert
(source != null);
186
Contract.
Assert
(index >= 0);
187
Contract.
Assert
(resultFoundFlag != null);
228
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Unary\FirstQueryOperator.cs (5)
145
Contract.
Assert
(source != null);
146
Contract.
Assert
(operatorState != null);
147
Contract.
Assert
(sharedBarrier != null);
148
Contract.
Assert
(keyComparer != null);
165
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Unary\ForAllOperator.cs (5)
51
Contract.
Assert
(m_elementAction != null);
69
Contract.
Assert
(enumerator == null);
139
Contract.
Assert
(source != null);
140
Contract.
Assert
(elementAction != null);
177
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Unary\GroupByQueryOperator.cs (25)
118
Contract.
Assert
(typeof(TSource) == typeof(TElement));
158
Contract.
Assert
(typeof(TSource) == typeof(TElement));
198
Contract.
Assert
(typeof(TElement) == typeof(TSource));
250
Contract.
Assert
(source != null);
265
Contract.
Assert
(m_source != null);
276
Contract.
Assert
(mutables.m_hashLookup != null);
353
Contract.
Assert
(currentValue != null);
384
Contract.
Assert
(elementSelector != null);
417
Contract.
Assert
(currentValue != null);
457
Contract.
Assert
(source != null);
458
Contract.
Assert
(keySelector != null);
475
Contract.
Assert
(m_source != null);
476
Contract.
Assert
(m_keySelector != null);
487
Contract.
Assert
(mutables.m_hashLookup != null);
594
Contract.
Assert
(currentValue != null);
629
Contract.
Assert
(elementSelector != null);
670
Contract.
Assert
(currentValue != null);
703
Contract.
Assert
(keyValues.Value != null);
725
Contract.
Assert
(m_keyValues.Value != null);
774
Contract.
Assert
(m_values != null);
779
Contract.
Assert
(valueArray.Length >= valueCount); // valueArray.Length may be larger than valueCount
797
Contract.
Assert
(m_values != null);
798
Contract.
Assert
(m_orderKeys != null);
809
Contract.
Assert
(m_values != null);
810
Contract.
Assert
(m_orderKeys != null);
System\Linq\Parallel\QueryOperators\Unary\IndexedSelectQueryOperator.cs (6)
75
Contract.
Assert
(!ExchangeUtilities.IsWorseThan(indexState, OrdinalIndexState.Correct));
107
Contract.
Assert
(typeof(TKey) == typeof(int));
150
Contract.
Assert
(source != null);
151
Contract.
Assert
(selector != null);
223
Contract.
Assert
(m_childQueryResults.IsIndexible);
232
Contract.
Assert
(m_childCount >= 0);
System\Linq\Parallel\QueryOperators\Unary\IndexedWhereQueryOperator.cs (4)
101
Contract.
Assert
(typeof(TKey) == typeof(int));
157
Contract.
Assert
(source != null);
158
Contract.
Assert
(predicate != null);
194
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Unary\LastQueryOperator.cs (5)
141
Contract.
Assert
(source != null);
142
Contract.
Assert
(operatorState != null);
143
Contract.
Assert
(sharedBarrier != null);
144
Contract.
Assert
(keyComparer != null);
161
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Unary\ReverseQueryOperator.cs (6)
124
Contract.
Assert
(source != null);
201
Contract.
Assert
(m_childQueryResults.IsIndexible);
214
Contract.
Assert
(m_count >= 0);
221
Contract.
Assert
(m_count >= 0);
222
Contract.
Assert
(index >= 0);
223
Contract.
Assert
(index < m_count);
System\Linq\Parallel\QueryOperators\Unary\SelectManyQueryOperator.cs (11)
212
Contract.
Assert
(m_indexedRightChildSelector != null);
265
Contract.
Assert
(leftSource != null);
266
Contract.
Assert
(selectManyOperator != null);
302
Contract.
Assert
(rightChild != null);
305
Contract.
Assert
(m_currentRightSource != null);
335
Contract.
Assert
(m_currentRightSourceAsOutput != null);
395
Contract.
Assert
(leftSource != null);
396
Contract.
Assert
(selectManyOperator != null);
432
Contract.
Assert
(rightChild != null);
435
Contract.
Assert
(m_currentRightSource != null);
465
Contract.
Assert
(m_currentRightSourceAsOutput != null);
System\Linq\Parallel\QueryOperators\Unary\SelectQueryOperator.cs (6)
109
Contract.
Assert
(source != null);
110
Contract.
Assert
(selector != null);
168
Contract.
Assert
(op.m_selector != null);
170
Contract.
Assert
(m_childQueryResults.IsIndexible);
186
Contract.
Assert
(index >= 0);
187
Contract.
Assert
(index < ElementsCount);
System\Linq\Parallel\QueryOperators\Unary\SingleQueryOperator.cs (3)
117
Contract.
Assert
(source != null);
118
Contract.
Assert
(totalElementCount != null);
131
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Unary\SortQueryOperator.cs (3)
212
Contract.
Assert
(source != null);
237
Contract.
Assert
(m_source != null);
251
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipQueryOperator.cs (10)
176
Contract.
Assert
(source != null);
177
Contract.
Assert
(sharedIndices != null);
178
Contract.
Assert
(sharedBarrier != null);
179
Contract.
Assert
(keyComparer != null);
196
Contract.
Assert
(m_sharedIndices != null);
359
Contract.
Assert
(m_childQueryResults.IsIndexible);
373
Contract.
Assert
(m_childCount >= 0);
387
Contract.
Assert
(m_childCount >= 0);
388
Contract.
Assert
(index >= 0);
389
Contract.
Assert
(index < ElementsCount);
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipWhileQueryOperator.cs (7)
142
Contract.
Assert
(m_indexedPredicate == null || typeof(TKey) == typeof(int));
236
Contract.
Assert
(source != null);
237
Contract.
Assert
(predicate != null || indexedPredicate != null);
238
Contract.
Assert
(operatorState != null);
239
Contract.
Assert
(sharedBarrier != null);
240
Contract.
Assert
(keyComparer != null);
307
Contract.
Assert
(m_indexedPredicate != null);
System\Linq\Parallel\QueryOperators\Unary\WhereQueryOperator.cs (3)
121
Contract.
Assert
(source != null);
122
Contract.
Assert
(predicate != null);
158
Contract.
Assert
(m_source != null);
System\Linq\Parallel\QueryOperators\UnaryQueryOperator.cs (1)
115
Contract.
Assert
(IsIndexible == (m_op.OrdinalIndexState == OrdinalIndexState.Indexible));
System\Linq\Parallel\Scheduling\OrderPreservingSpoolingTask.cs (2)
135
Contract.
Assert
(m_sortHelper != null);
147
Contract.
Assert
(sortedOutput != null);
System\Linq\Parallel\Scheduling\QueryTask.cs (2)
40
Contract.
Assert
(groupState != null);
97
Contract.
Assert
(unused == null);
System\Linq\Parallel\Scheduling\QueryTaskGroupState.cs (2)
93
Contract.
Assert
(m_rootTask != null);
164
Contract.
Assert
(m_cancellationState.TopLevelDisposedFlag.Value);
System\Linq\Parallel\Scheduling\SpoolingTask.cs (2)
299
Contract.
Assert
(source != null);
386
Contract.
Assert
(source != null);
System\Linq\Parallel\Utils\ExchangeUtilities.cs (1)
79
Contract.
Assert
(returnValue.PartitionCount == partitionCount);
System\Linq\Parallel\Utils\FixedMaxHeap.cs (3)
44
Contract.
Assert
(comparer != null);
141
Contract.
Assert
(m_count > 0);
152
Contract.
Assert
(m_count > 0);
System\Linq\Parallel\Utils\GrowingArray.cs (1)
60
Contract.
Assert
(newSize > m_array.Length);
System\Linq\Parallel\Utils\ListChunk.cs (2)
35
Contract.
Assert
(size > 0);
85
Contract.
Assert
(curr.m_chunkCount == curr.m_chunk.Length || curr.m_nextChunk == null);
System\Linq\Parallel\Utils\Lookup.cs (1)
125
Contract.
Assert
(!m_dict.ContainsKey(grouping.Key));
System\Linq\Parallel\Utils\Sorting.cs (22)
67
Contract.
Assert
(source != null);
68
Contract.
Assert
(groupState != null);
69
Contract.
Assert
(sharedIndices != null);
70
Contract.
Assert
(sharedkeys != null);
71
Contract.
Assert
(sharedValues != null);
72
Contract.
Assert
(sharedBarriers != null);
73
Contract.
Assert
(groupState.CancellationState.MergedCancellationToken != null);
74
Contract.
Assert
(sharedIndices.Length <= sharedkeys.Length);
75
Contract.
Assert
(sharedIndices.Length == sharedValues.Length);
76
Contract.
Assert
(sharedIndices.Length == sharedBarriers.GetLength(1));
77
Contract.
Assert
(groupState.CancellationState.MergedCancellationToken != null);
90
Contract.
Assert
(m_sharedKeys.Length >= m_sharedValues.Length);
275
Contract.
Assert
(keys != null);
276
Contract.
Assert
(values != null);
277
Contract.
Assert
(keys.Count == values.Count);
430
Contract.
Assert
(myKeysArr != null);
500
Contract.
Assert
(leftValues != null);
501
Contract.
Assert
(leftKeys != null);
582
Contract.
Assert
(keys.Length >= indices.Length);
583
Contract.
Assert
(left <= right);
584
Contract.
Assert
(0 <= left && left < keys.Length);
585
Contract.
Assert
(0 <= right && right < keys.Length);
System\Linq\Parallel\Utils\WrapperEqualityComparer.cs (2)
42
Contract.
Assert
(m_comparer != null);
48
Contract.
Assert
(m_comparer != null);
System\Linq\ParallelEnumerable.cs (8)
1581
Contract.
Assert
(source != null);
1582
Contract.
Assert
(reduce != null);
1605
Contract.
Assert
(source != null);
1606
Contract.
Assert
(func != null);
1607
Contract.
Assert
(seedIsSpecified || typeof(TSource) == typeof(TAccumulate));
4927
Contract.
Assert
(input != null);
5199
Contract.
Assert
(groupings is QueryOperator<IGrouping<TKey, TSource>>);
5286
Contract.
Assert
(groupings is QueryOperator<IGrouping<TKey, TElement>>);
System\Security\Cryptography\AesCryptoServiceProvider.cs (3)
370
Contract.
Assert
(m_cspHandle != null);
403
Contract.
Assert
(m_cspHandle != null);
404
Contract.
Assert
(BlockSizeValue % 8 == 0);
System\Security\Cryptography\BCryptHashAlgorithm.cs (3)
115
Contract.
Assert
(m_algorithmHandle != null);
177
Contract.
Assert
(m_hashHandle != null);
215
Contract.
Assert
(m_hashHandle != null);
System\Security\Cryptography\CapiHashAlgorithm.cs (3)
67
Contract.
Assert
(m_cspHandle != null);
109
Contract.
Assert
(m_hashHandle != null);
140
Contract.
Assert
(m_hashHandle != null);
System\Security\Cryptography\CngAlgorithm.cs (3)
78
Contract.
Assert
(m_algorithm != null);
92
Contract.
Assert
(m_algorithm != null);
97
Contract.
Assert
(m_algorithm != null);
System\Security\Cryptography\CngAlgorithmGroup.cs (3)
72
Contract.
Assert
(m_algorithmGroup != null);
86
Contract.
Assert
(m_algorithmGroup != null);
91
Contract.
Assert
(m_algorithmGroup != null);
System\Security\Cryptography\CngKey.cs (23)
59
Contract.
Assert
(m_keyHandle != null);
79
Contract.
Assert
(m_keyHandle != null);
93
Contract.
Assert
(m_keyHandle != null);
118
Contract.
Assert
(m_keyHandle != null);
135
Contract.
Assert
(m_keyHandle != null);
160
Contract.
Assert
(m_keyHandle != null);
175
Contract.
Assert
(m_keyHandle != null);
192
Contract.
Assert
(m_keyHandle != null);
211
Contract.
Assert
(m_keyHandle != null);
241
Contract.
Assert
(m_keyHandle != null);
255
Contract.
Assert
(m_keyHandle != null);
264
Contract.
Assert
(m_keyHandle != null);
278
Contract.
Assert
(m_kspHandle != null);
299
Contract.
Assert
(m_kspHandle != null);
311
Contract.
Assert
(m_keyHandle != null);
331
Contract.
Assert
(m_keyHandle != null);
361
Contract.
Assert
(m_keyHandle != null);
362
Contract.
Assert
(m_kspHandle != null);
464
Contract.
Assert
(m_keyHandle != null);
620
Contract.
Assert
(m_keyHandle != null);
640
Contract.
Assert
(m_keyHandle != null);
662
Contract.
Assert
(m_keyHandle != null);
859
Contract.
Assert
(m_keyHandle != null);
System\Security\Cryptography\CngKeyBlobFormat.cs (3)
73
Contract.
Assert
(m_format != null);
87
Contract.
Assert
(m_format != null);
92
Contract.
Assert
(m_format != null);
System\Security\Cryptography\CngProvider.cs (3)
67
Contract.
Assert
(m_provider != null);
81
Contract.
Assert
(m_provider != null);
86
Contract.
Assert
(m_provider != null);
System\Security\Cryptography\ECDiffieHellmanCng.cs (2)
315
Contract.
Assert
(m_kdf >= ECDiffieHellmanKeyDerivationFunction.Hash &&
339
Contract.
Assert
(m_kdf >= ECDiffieHellmanKeyDerivationFunction.Hash &&
System\Security\Cryptography\ECDiffieHellmanCngPublicKey.cs (2)
43
Contract.
Assert
(m_format != null);
119
Contract.
Assert
(m_format != null);
System\Security\Cryptography\ECDiffieHellmanPublicKey.cs (1)
43
Contract.
Assert
(m_keyBlob != null);
System\Security\Cryptography\MD5Cng.cs (3)
41
Contract.
Assert
(m_hashAlgorithm != null);
46
Contract.
Assert
(m_hashAlgorithm != null);
51
Contract.
Assert
(m_hashAlgorithm != null);
System\Security\Cryptography\SHA1Cng.cs (3)
38
Contract.
Assert
(m_hashAlgorithm != null);
43
Contract.
Assert
(m_hashAlgorithm != null);
48
Contract.
Assert
(m_hashAlgorithm != null);
System\Security\Cryptography\SHA256Cng.cs (3)
37
Contract.
Assert
(m_hashAlgorithm != null);
42
Contract.
Assert
(m_hashAlgorithm != null);
47
Contract.
Assert
(m_hashAlgorithm != null);
System\Security\Cryptography\SHA256CryptoServiceProvider.cs (3)
41
Contract.
Assert
(m_hashAlgorithm != null);
49
Contract.
Assert
(m_hashAlgorithm != null);
57
Contract.
Assert
(m_hashAlgorithm != null);
System\Security\Cryptography\SHA384Cng.cs (3)
37
Contract.
Assert
(m_hashAlgorithm != null);
42
Contract.
Assert
(m_hashAlgorithm != null);
47
Contract.
Assert
(m_hashAlgorithm != null);
System\Security\Cryptography\SHA384CryptoServiceProvider.cs (3)
38
Contract.
Assert
(m_hashAlgorithm != null);
43
Contract.
Assert
(m_hashAlgorithm != null);
48
Contract.
Assert
(m_hashAlgorithm != null);
System\Security\Cryptography\SHA512Cng.cs (3)
37
Contract.
Assert
(m_hashAlgorithm != null);
42
Contract.
Assert
(m_hashAlgorithm != null);
47
Contract.
Assert
(m_hashAlgorithm != null);
System\Security\Cryptography\SHA512CryptoServiceProvider.cs (3)
41
Contract.
Assert
(m_hashAlgorithm != null);
49
Contract.
Assert
(m_hashAlgorithm != null);
57
Contract.
Assert
(m_hashAlgorithm != null);
System.Numerics (86)
System\Numerics\BigInteger.cs (12)
67
Contract.
Assert
(_sign == 1 || _sign == -1 /*, "_sign must be +1 or -1 when _bits is non-null"*/);
68
Contract.
Assert
(Length(_bits) > 0 /*, "_bits must contain at least 1 element or be null"*/);
70
Contract.
Assert
(_bits[0] >= kuMaskHighBit /*, "Wasted space _bits[0] could have been packed into _sign"*/);
73
Contract.
Assert
(_sign > int.MinValue /*, "Int32.MinValue should not be stored in the _sign field"*/);
443
Contract.
Assert
(value != 0);
505
Contract.
Assert
(bits.Length == 4 && (bits[3] & DecimalScaleFactorMask) == 0);
1737
Contract.
Assert
(sign == +1 || sign == -1);
1745
Contract.
Assert
(man < (1UL << 53));
1746
Contract.
Assert
(exp <= 0 || man >= (1UL << 52));
1775
Contract.
Assert
(0 <= cbit && cbit < kcbitUint);
1776
Contract.
Assert
(cu >= 1);
1798
Contract.
Assert
(cu >= 2 && rgu[cu - 2] != 0);
System\Numerics\BigIntegerBuilder.cs (63)
41
Contract.
Assert
(_iuLast == 0);
42
Contract.
Assert
(!_fWritable || _rgu != null);
45
Contract.
Assert
(_rgu != null && _rgu.Length > _iuLast);
46
Contract.
Assert
(!fTrimmed || _rgu[_iuLast] != 0);
155
Contract.
Assert
(cuExtra >= 0);
219
Contract.
Assert
(cbit < kcbitUint);
237
Contract.
Assert
(_iuLast > 0);
341
Contract.
Assert
(_iuLast > 0);
435
Contract.
Assert
(_iuLast > 0);
443
Contract.
Assert
(uCarry <= 1);
531
Contract.
Assert
(_iuLast > 0);
535
Contract.
Assert
(reg._iuLast > 0);
548
Contract.
Assert
(uBorrow <= 1);
551
Contract.
Assert
(uBorrow == 1 && cuSub <= _iuLast);
560
Contract.
Assert
(0 < _iuLast && _iuLast <= reg._iuLast);
561
Contract.
Assert
(_iuLast < reg._iuLast || _rgu[_iuLast] < reg._rgu[_iuLast]);
568
Contract.
Assert
(_iuLast > 0);
575
Contract.
Assert
(uBorrow <= 1);
578
Contract.
Assert
(uBorrow == 1);
669
Contract.
Assert
(reg1._iuLast > 0 && reg2._iuLast > 0);
791
Contract.
Assert
(regNum._iuLast > 0 && regDen._iuLast > 0);
797
Contract.
Assert
(0 < regDen._iuLast && regDen._iuLast <= regNum._iuLast);
832
Contract.
Assert
((uDen & 0x80000000) != 0);
835
Contract.
Assert
(cuQuo + cuDen == regNum._iuLast + 1 || cuQuo + cuDen == regNum._iuLast + 2);
841
Contract.
Assert
(uNumHi <= regDen._rgu[cuDen - 1]);
855
Contract.
Assert
(uuQuo <= (ulong)uint.MaxValue + 2);
878
Contract.
Assert
(uNumHi == uuBorrow || uNumHi == uuBorrow - 1);
884
Contract.
Assert
(uCarry <= 1);
886
Contract.
Assert
(uCarry == 1);
900
Contract.
Assert
(cuDen > 1 && regNum._iuLast > 0);
920
Contract.
Assert
(cbitShift < kcbitUint);
941
Contract.
Assert
(_rgu.Length > _iuLast);
971
Contract.
Assert
(cbitShift < kcbitUint);
1018
Contract.
Assert
(_iuLast > 0);
1019
Contract.
Assert
(cu > _iuLast);
1032
Contract.
Assert
(_fWritable && _iuLast > 0);
1033
Contract.
Assert
(iu <= _iuLast + 1);
1050
Contract.
Assert
(_fWritable && _iuLast > 0);
1051
Contract.
Assert
(iuMin <= _iuLast);
1129
Contract.
Assert
(cuMax == reg1._iuLast + 1);
1130
Contract.
Assert
(cuMin == reg2._iuLast + 1);
1153
Contract.
Assert
(uu1 != 0 && uu2 != 0);
1171
Contract.
Assert
(uu1 >= uu2); // We ensured this above.
1176
Contract.
Assert
(cuMax == cuMin);
1178
Contract.
Assert
(reg1._iuLast < cuMin - 1);
1193
Contract.
Assert
(uu1 + a > a); // no overflow
1194
Contract.
Assert
(uu2 + d > d);
1195
Contract.
Assert
(uu1 > b);
1196
Contract.
Assert
(uu2 > c);
1197
Contract.
Assert
(uu2 + d <= uu1 - b);
1220
Contract.
Assert
(uQuo == (uu1 + a - 1) / (uu2 - c));
1221
Contract.
Assert
(uQuo == (uu1 - b) / (uu2 + d));
1228
Contract.
Assert
(uu1 == b);
1232
Contract.
Assert
(uu1 + a > a); // no overflow
1233
Contract.
Assert
(uu2 + d > d);
1234
Contract.
Assert
(uu2 > c);
1235
Contract.
Assert
(uu1 > b);
1236
Contract.
Assert
(uu1 + a <= uu2 - c);
1259
Contract.
Assert
(uQuo == (uu2 + d - 1) / (uu1 - b));
1260
Contract.
Assert
(uQuo == (uu2 - c) / (uu1 + a));
1267
Contract.
Assert
(uu2 == c);
1273
Contract.
Assert
(a == 1 && c == 0 && d == 1);
1274
Contract.
Assert
(uu1 > uu2); // We ensured this above.
System\Numerics\BigNumber.cs (3)
395
Contract.
Assert
(c >= 'a' && c <= 'f');
554
Contract.
Assert
(rguDst[iuDst] < kuBase);
600
Contract.
Assert
(uDig < kuBase);
System\Numerics\NumericsHelpers.cs (8)
70
Contract.
Assert
((man & 0xFFF0000000000000) == 0x0010000000000000);
89
Contract.
Assert
(du.uu != 0);
152
Contract.
Assert
(u2 <= u1);
165
Contract.
Assert
(u1 < u2);
185
Contract.
Assert
(uu2 <= uu1);
200
Contract.
Assert
(uu1 < uu2);
222
Contract.
Assert
(u2 <= u1);
235
Contract.
Assert
(u1 < u2);
WindowsBase (2)
parent\parent\InternalApis\NDP_FX\inc\ZLibNative.cs (2)
470
Contract.
Assert
(null != ZLibStreamHandle.zlibLibraryHandle);
471
Contract.
Assert
(!ZLibStreamHandle.zlibLibraryHandle.IsInvalid);