153 references to GetLength
mscorlib (10)
system\array.cs (8)
98
Contract.Ensures(Contract.Result<Array>().
GetLength
(0) == length1);
99
Contract.Ensures(Contract.Result<Array>().
GetLength
(1) == length2);
123
Contract.Ensures(Contract.Result<Array>().
GetLength
(0) == length1);
124
Contract.Ensures(Contract.Result<Array>().
GetLength
(1) == length2);
125
Contract.Ensures(Contract.Result<Array>().
GetLength
(2) == length3);
647
return
GetLength
(dimension);
2628
checkForZero *= array.
GetLength
(i);
2688
checkForZero *= array.
GetLength
(i);
system\runtime\interopservices\windowsruntime\bindablevectortocollectionadapter.cs (1)
82
int destLen = array.
GetLength
(0);
system\runtime\serialization\formatters\binary\binaryobjectwriter.cs (1)
768
lengthA[i] = array.
GetLength
(i);
PresentationCore (37)
Core\CSharp\MS\Internal\IO\Packaging\ByteRangeDownloader.cs (7)
235
Debug.Assert(byteRanges.
GetLength
(0) == 1, "We don't support a request with multiple byte ranges");
262
for (int i = 0; i < byteRanges.
GetLength
(0); ++i)
312
for (int i=0, j=0; i < inByteRanges.
GetLength
(0); ++i, ++j)
540
for (int i = 0; i < byteRanges.
GetLength
(0); ++i)
824
if (byteRanges.
GetLength
(0) <= 0 || byteRanges.
GetLength
(1) != 2)
829
for (int i = 0; i < byteRanges.
GetLength
(0); ++i)
Core\CSharp\MS\Internal\IO\Packaging\NetStream.cs (2)
735
if (ranges.
GetLength
(0) > 0)
746
while (r < ranges.
GetLength
(0))
Core\CSharp\System\Windows\Media\Color.cs (13)
61
for (int i = 0; i < c1.nativeColorValue.
GetLength
(0); i++)
84
if (values.
GetLength
(0) != c1.nativeColorValue.
GetLength
(0))
89
for (int numChannels = 0; numChannels < values.
GetLength
(0); numChannels++)
315
for (int i= 0; i< nativeColorValue.
GetLength
(0); ++i )
318
if (i< nativeColorValue.
GetLength
(0)-1 )
361
for (int i = 0; i < color.nativeColorValue.
GetLength
(0); i++)
432
for (int i = 0; i < c1.nativeColorValue.
GetLength
(0); i++)
551
for (int i = 0; i < c1.nativeColorValue.
GetLength
(0); i++)
761
if (color1.nativeColorValue.
GetLength
(0) != color2.nativeColorValue.
GetLength
(0))
766
for (int i = 0; i < color1.nativeColorValue.
GetLength
(0); i++)
1121
if (this.nativeColorValue.
GetLength
(0) > 0)
Core\CSharp\System\Windows\Media\ColorTransform.cs (6)
165
for (int i = 0; i < dstValue.
GetLength
(0); i++)
206
if (srcValue.
GetLength
(0) < 3 || srcValue.
GetLength
(0) > 8)
211
if (srcValue.
GetLength
(0) <= 4)
216
for (int i = 0; i < srcValue.
GetLength
(0); i++)
240
for (int i = 0; i < srcValue.
GetLength
(0); i++)
Core\CSharp\System\Windows\Media\Imaging\PropVariant.cs (1)
300
String[] strArray = new String[charArray.
GetLength
(0)];
Core\CSharp\System\Windows\Media\Imaging\WriteableBitmap.cs (6)
1276
if (sourceBuffer.
GetLength
(0) <= 0)
1295
sourceBufferSize = sourceBuffer.
GetLength
(0) * elementSize;
1303
if (sourceBuffer.
GetLength
(0) <= 0 || sourceBuffer.
GetLength
(1) <= 0)
1322
sourceBufferSize = sourceBuffer.
GetLength
(0) * sourceBuffer.
GetLength
(1) * elementSize;
Core\CSharp\System\Windows\Media\Parsers.cs (2)
111
if (preSplit.
GetLength
(0)< 2)
120
int numTokens = split.
GetLength
(0);
PresentationFramework (1)
src\Framework\System\Windows\Documents\FixedSchema.cs (1)
444
if (tokens.
GetLength
(0) >= 1)
System (4)
compmod\system\componentmodel\ArrayConverter.cs (3)
55
int length = valueArray.
GetLength
(0);
87
if (array.
GetLength
(0) > index) {
98
if (array.
GetLength
(0) > index) {
regex\system\text\regularexpressions\RegexCharClass.cs (1)
1147
int max = _propTable.
GetLength
(0);
System.Activities (1)
System\Activities\Statements\MethodExecutor.cs (1)
52
return last.GetCustomAttributes(typeof(ParamArrayAttribute), true).
GetLength
(0) > 0;
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Base\Interaction\Model\ModelItemDictionary.cs (1)
348
int len = array.
GetLength
(0);
System.Core (10)
System\Linq\Parallel\Partitioning\HashRepartitionEnumerator.cs (2)
77
Contract.Assert(valueExchangeMatrix.
GetLength
(0) == partitionCount, "expected square matrix of buffers (NxN)");
78
Contract.Assert(valueExchangeMatrix.
GetLength
(1) == partitionCount, "expected square matrix of buffers (NxN)");
System\Linq\Parallel\Partitioning\OrderedHashRepartitionEnumerator.cs (2)
79
Contract.Assert(valueExchangeMatrix.
GetLength
(0) == partitionCount, "expected square matrix of buffers (NxN)");
80
Contract.Assert(valueExchangeMatrix.
GetLength
(1) == partitionCount, "expected square matrix of buffers (NxN)");
System\Linq\Parallel\Utils\Sorting.cs (6)
76
Contract.Assert(sharedIndices.Length == sharedBarriers.
GetLength
(1));
131
for (int i = 0; i < sharedBarriers.
GetLength
(0); i++)
133
for (int j = 0; j < sharedBarriers.
GetLength
(1); j++)
168
for (int i = 0; i < m_sharedBarriers.
GetLength
(0); i++)
170
for (int j = 0; j < m_sharedBarriers.
GetLength
(1); j++)
366
int phaseCount = m_sharedBarriers.
GetLength
(0);
System.Data (5)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Interaction\Model\ModelItemDictionary.cs (1)
348
int len = array.
GetLength
(0);
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (4)
2745
Debug.Assert( ExtendedClrTypeCode.First == 0 && (int)ExtendedClrTypeCode.Last == __canAccessGetterDirectly.
GetLength
(0) - 1, "ExtendedClrTypeCodes does not match with __canAccessGetterDirectly" );
2746
Debug.Assert( SqlDbType.BigInt == 0 && (int)SqlDbType.DateTimeOffset == __canAccessGetterDirectly.
GetLength
(1) - 1, "SqlDbType does not match with __canAccessGetterDirectly" );
2765
Debug.Assert( ExtendedClrTypeCode.First == 0 && (int)ExtendedClrTypeCode.Last == __canAccessSetterDirectly.
GetLength
(0) - 1, "ExtendedClrTypeCodes does not match with __canAccessSetterDirectly" );
2766
Debug.Assert( SqlDbType.BigInt == 0 && (int)SqlDbType.DateTimeOffset == __canAccessSetterDirectly.
GetLength
(1) - 1, "SqlDbType does not match with __canAccessSetterDirectly" );
System.IdentityModel (3)
System\IdentityModel\Tokens\WSSecurityJan2004.cs (3)
97
this.valueTypeUris = new string[valueTypeUris.
GetLength
(0)];
98
for (int i = 0; i < this.valueTypeUris.
GetLength
(0); ++i)
108
for (int i = 0; i < this.valueTypeUris.
GetLength
(0); ++i)
System.IdentityModel.Selectors (1)
infocard\client\System\IdentityModel\Selectors\CardSpaceSelector.cs (1)
370
rootbytes, 0, rootbytes.
GetLength
(0), null, DefaultQuotas, null);
System.Management (1)
Instrumentation\AssemblyNameUtility.cs (1)
21
for(int i=0;i<rg.
GetLength
(0);i++)
System.Runtime.Serialization (1)
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (1)
411
IncrementCollectionCount(xmlWriter, array.
GetLength
(0));
System.ServiceModel (6)
System\ServiceModel\Administration\WbemProvider.cs (2)
952
if (objs.
GetLength
(0) > 0 && objs.GetValue(0) is InstanceContext)
954
WbemNative.IWbemClassObject[] insts = new WbemNative.IWbemClassObject[objs.
GetLength
(0)];
System\ServiceModel\ComIntegration\ComPlusDiagnosticTraceSchemas.cs (1)
838
XmlDictionaryReader reader = XmlDictionaryReader.CreateTextReader(wsdlText, 0, wsdlText.
GetLength
(0), null, quota, null);
System\ServiceModel\Security\WSSecurityJan2004.cs (3)
86
this.valueTypeUris = new string[valueTypeUris.
GetLength
(0)];
87
for (int i = 0; i < this.valueTypeUris.
GetLength
(0); ++i)
97
for (int i = 0; i < this.valueTypeUris.
GetLength
(0); ++i)
System.Web (4)
Management\WebEvents.cs (4)
152
for (int i = 0; i < s_eventCodeToSystemEventTypeMappings.
GetLength
(0); i++) {
153
for (int j = 0; j < s_eventCodeToSystemEventTypeMappings.
GetLength
(1); j++) {
158
for (int i = 0; i < s_eventCodeOccurrence.
GetLength
(0); i++) {
159
for (int j = 0; j < s_eventCodeOccurrence.
GetLength
(1); j++) {
System.Web.DataVisualization (12)
Common\Converters\DataManagerConverters.cs (1)
800
if(colors != null && colors.
GetLength
(0) > 0)
Common\DataManager\DataPoint.cs (5)
418
if (yFieldNames.
GetLength
(0) > series.YValuesPerPoint)
601
if (yValues.
GetLength
(0) == 0)
614
if(yValues.
GetLength
(0) > series.YValuesPerPoint)
624
IEnumerator[] yEnumerator = new IEnumerator[yValues.
GetLength
(0)];
796
if (yFieldNames.
GetLength
(0) > series.YValuesPerPoint)
Common\Formulas\TimeSeriesAndForecasting.cs (3)
560
for( int column = 0; column < inputDeterminant.
GetLength
(0); column++ )
582
int size = inputDeterminant.
GetLength
(0);
622
int size = inputDeterminant.
GetLength
(0);
Common\General\Chart.cs (2)
802
if(yFieldNames == null || yFieldNames.
GetLength
(0) > series.YValuesPerPoint)
1199
series.YValuesPerPoint = yFieldNames.
GetLength
(0);
Common\General\Legend.cs (1)
4068
int numberOfSubColumns = this._subColumnSizes.
GetLength
(1);
System.Windows.Forms.DataVisualization (12)
Common\Converters\DataManagerConverters.cs (1)
800
if(colors != null && colors.
GetLength
(0) > 0)
Common\DataManager\DataPoint.cs (5)
418
if (yFieldNames.
GetLength
(0) > series.YValuesPerPoint)
601
if (yValues.
GetLength
(0) == 0)
614
if(yValues.
GetLength
(0) > series.YValuesPerPoint)
624
IEnumerator[] yEnumerator = new IEnumerator[yValues.
GetLength
(0)];
796
if (yFieldNames.
GetLength
(0) > series.YValuesPerPoint)
Common\Formulas\TimeSeriesAndForecasting.cs (3)
560
for( int column = 0; column < inputDeterminant.
GetLength
(0); column++ )
582
int size = inputDeterminant.
GetLength
(0);
622
int size = inputDeterminant.
GetLength
(0);
Common\General\Chart.cs (2)
802
if(yFieldNames == null || yFieldNames.
GetLength
(0) > series.YValuesPerPoint)
1199
series.YValuesPerPoint = yFieldNames.
GetLength
(0);
Common\General\Legend.cs (1)
4068
int numberOfSubColumns = this._subColumnSizes.
GetLength
(1);
System.Workflow.Activities (10)
Common\CompModHelpers.cs (2)
92
int length = Path.GetInvalidPathChars().
GetLength
(0) + 5;
753
if (parameters.
GetLength
(0) == types.Length)
Designers\EventHandlersDesigner.cs (1)
85
return new ConnectorHitTestInfo(this, HitTestLocations.Designer, GetConnectors().
GetLength
(0) - 1).SelectableObject;
Designers\InvokeWebServiceDesigner.cs (1)
50
if (components.
GetLength
(0) > 0)
Designers\StateMachineDesignerPaint.cs (3)
110
if (points.
GetLength
(0) < 2)
147
Point[] endSegment = new Point[] { points[points.
GetLength
(0) - 2], points[points.
GetLength
(0) - 1] };
Designers\WhileDesigner.cs (3)
74
if (Expanded && connectors.
GetLength
(0) > 0)
75
connectors[connectors.
GetLength
(0) - 1].Height = connectors[connectors.
GetLength
(0) - 1].Height - (((designerTheme != null) ? designerTheme.ConnectorSize.Height : 0) / 3);
System.Workflow.ComponentModel (28)
AuthoringOM\Behaviors\ExceptionHandlersDesigner.cs (1)
91
return new ConnectorHitTestInfo(this, HitTestLocations.Designer, GetConnectors().
GetLength
(0) - 1).SelectableObject;
AuthoringOM\Compiler\CompileXomlTask.cs (2)
578
xomlFilesPaths = new string[WorkflowMarkupFiles.
GetLength
(0) + userCodeFiles.Length];
580
for (; index < this.WorkflowMarkupFiles.
GetLength
(0); index++)
AuthoringOM\Compiler\TypeSystem\AssemblyLoader.cs (2)
34
if (this.assembly == null && asmName.GetPublicKeyToken() != null && (asmName.GetPublicKeyToken().
GetLength
(0) == 0) && asmName.GetPublicKey() != null && (asmName.GetPublicKey().
GetLength
(0) == 0))
AuthoringOM\Compiler\TypeSystem\RTTypeWrapper.cs (6)
511
if (this.typeArgs != null && this.typeArgs.
GetLength
(0) > 0)
534
if (this.typeArgs != null && this.typeArgs.
GetLength
(0) > 0)
543
if (this.typeArgs != null && this.typeArgs.
GetLength
(0) > 0)
678
if (parameters.
GetLength
(0) == types.Length)
704
if (parameters.
GetLength
(0) == types.Length)
731
if (parameters.
GetLength
(0) == types.Length)
AuthoringOM\Design\ActivityDesigner.cs (2)
1948
if (attribs != null && attribs.
GetLength
(0) == 0)
1951
DescriptionAttribute descriptionAttribute = (attribs != null && attribs.
GetLength
(0) > 0) ? attribs[0] as DescriptionAttribute : null;
AuthoringOM\Design\CustomActivityDesigner.cs (1)
161
ToolboxItemAttribute toolboxItemAttrib = (attribs != null && attribs.
GetLength
(0) > 0) ? attribs[0] as ToolboxItemAttribute : null;
AuthoringOM\Design\DesignerHelpers.cs (3)
591
if (points.
GetLength
(0) < 2)
629
Point[] endSegment = new Point[] { points[points.
GetLength
(0) - 2], points[points.
GetLength
(0) - 1] };
AuthoringOM\Design\DesignerWidgets.cs (1)
2756
if (activeDropTarget >= 0 && activeDropTarget < dropTargets.
GetLength
(0))
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (4)
714
if (constructor.IsPublic && constructor.GetParameters().
GetLength
(0) == 0)
729
ActivityDesignerThemeAttribute themeAttrib = (attribs != null && attribs.
GetLength
(0) > 0) ? attribs[0] as ActivityDesignerThemeAttribute : null;
779
if (attribs != null && attribs.
GetLength
(0) > 0)
1008
ToolboxItemAttribute toolboxItemAttrib = (attribs != null && attribs.
GetLength
(0) > 0) ? attribs[0] as ToolboxItemAttribute : null;
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (1)
1248
for (int i = 0; i < keywords.
GetLength
(0); i++)
AuthoringOM\Design\WinOEToolBoxItem.cs (2)
104
if (attribs != null && attribs.
GetLength
(0) == 0)
107
ToolboxBitmapAttribute toolboxBitmapAttribute = (attribs != null && attribs.
GetLength
(0) > 0) ? attribs[0] as ToolboxBitmapAttribute : null;
AuthoringOM\Design\WorkflowView.cs (1)
647
for (int i = 0; i < tabButtonInfo.
GetLength
(0); i++)
Shared\CompModHelpers.cs (2)
90
int length = Path.GetInvalidPathChars().
GetLength
(0) + 5;
751
if (parameters.
GetLength
(0) == types.Length)
UIAutomationClient (4)
MS\Internal\Automation\CacheHelper.cs (1)
117
if (response.RequestedData != null && propIndex != response.RequestedData.
GetLength
(0))
MS\Internal\Automation\UiaCoreAPI.cs (3)
219
for(int objIndex = 0 ; objIndex < data.
GetLength
(0) ; objIndex++ )
474
int properties = requestedData.
GetLength
(1);
478
int endRow = i < treeStructures.Length - 1 ? offsets[i + 1] : requestedData.
GetLength
(0);
WindowsBase (2)
Base\MS\Internal\IO\Packaging\XmlSignatureProperties.cs (1)
390
for (int i = 0; i < _dateTimePatternMap.
GetLength
(0); i++)
Base\MS\Internal\IO\Zip\ZipArchive.cs (1)
555
for(int i=0; i<_validOpenParameters.
GetLength
(0); i++)