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