266 writes to Length
mscorlib (19)
PresentationBuildTasks (2)
PresentationCore (5)
PresentationFramework (5)
System (4)
System.Configuration (2)
System.Data (14)
System.Data.Entity (8)
System.Data.Linq (1)
System.Data.SqlXml (8)
System.Runtime.Remoting (129)
System.ServiceModel (4)
System.Web (11)
System.Web.Mobile (5)
System.Windows.Forms (6)
System.Workflow.Activities (1)
System.Workflow.ComponentModel (4)
System.Xml (38)
535 references to Length
ComSvcConfig (1)
Microsoft.Activities.Build (3)
mscorlib (90)
system\runtime\remoting\soapinteroptypes.cs (12)
58stringBuffer.Replace("&", "&", index, stringBuffer.Length - index);
64if (stringBuffer.Length == 0)
66stringBuffer.Replace("\"", """, index, stringBuffer.Length - index);
72if (stringBuffer.Length == 0)
74stringBuffer.Replace("\'", "'", index, stringBuffer.Length - index);
80if (stringBuffer.Length == 0)
82stringBuffer.Replace("<", "<", index, stringBuffer.Length - index);
88if (stringBuffer.Length == 0)
90stringBuffer.Replace(">", ">", index, stringBuffer.Length - index);
96if (stringBuffer.Length == 0)
98stringBuffer.Replace(Char.MinValue.ToString(), "�", index, stringBuffer.Length - index);
103if (stringBuffer.Length > 0)
system\text\stringbuilder.cs (31)
295if (value < Length) {
335if (Length == 0)
338string ret = string.FastAllocateString(Length);
376int currentLength = this.Length;
482int delta = value - Length;
774if ((uint)sourceIndex > (uint)Length) {
778if (sourceIndex > Length - count) {
828int currentLength = Length;
841if (insertingChars > MaxCapacity - this.Length) {
844Contract.Assert(insertingChars + this.Length < Int32.MaxValue);
874if (length > Length - startIndex) {
880if (Length == length && startIndex == 0) {
1038if ((uint)index > (uint)Length) {
1115if ((uint)index > (uint)Length) {
1134int currentLength = Length;
1487return Replace(oldValue, newValue, 0, Length);
1494if (Capacity != sb.Capacity || MaxCapacity != sb.MaxCapacity || Length != sb.Length)
1539int currentLength = Length;
1621return Replace(oldChar, newChar, 0, Length);
1626int currentLength = Length;
1708if ((uint)index > (uint)Length)
1917Contract.Assert(0 <= index && index <= Length, "index not in string");
1934Contract.Assert(0 <= byteIndex && byteIndex <= Length*sizeof(char), "Byte Index not in string");
1964Contract.Requires(Capacity == Length, "Expand expect to be called only when there is no space left"); // We are currently full
1969if (minBlockCharCount + Length < minBlockCharCount || (minBlockCharCount + Length) > m_MaxCapacity)
1977int newBlockLength = Math.Max(minBlockCharCount, Math.Min(Length, MaxChunkSize));
2030if (count + Length < count || count + Length > m_MaxCapacity)
2112Contract.Assert(startIndex >= 0 && startIndex < Length, "startIndex not in string");
PresentationBuildTasks (15)
PresentationCore (9)
PresentationFramework (15)
System (72)
compmod\system\componentmodel\MaskedTextProvider.cs (47)
451this.testString.Capacity = this.testString.Length;
532for (int position = 0; position < this.testString.Length; position++)
690return FindAssignedEditPositionFrom( this.testString.Length - 1, backward );
701return this.testString.Length;
800for(int position = 0; position < this.testString.Length; position++ )
880if( index < 0 || index >= this.testString.Length )
915if( lastAssignedPos == this.testString.Length - 1 ) // at the last edit char position.
917testPosition = this.testString.Length;
929testPosition = this.testString.Length;
1003for( int position = 0; position < this.testString.Length; position++ )
1027endPosition = this.testString.Length - 1;
1067endPosition = this.testString.Length - 1;
1160endPosition = this.testString.Length - 1;
1195if (endPosition >= this.testString.Length)
1197endPosition = this.testString.Length - 1;
1236endPosition = this.testString.Length - 1;
1299if (position < 0 || position >= this.testString.Length)
1348if (position < 0 || position >= this.testString.Length)
1370Debug.Assert(input != null && position >= 0 && position < this.testString.Length, "input param out of range.");
1391if( shiftNeeded && (testPosition == this.testString.Length - 1)) // no room for shifting.
1394testPosition = this.testString.Length;
1411testPosition = this.testString.Length;
1514if (position < 0 || position >= this.testString.Length)
1529if (position < 0 || position >= this.testString.Length)
1652if (endPosition >= this.testString.Length)
1682Debug.Assert(startPosition >= 0 && startPosition <= endPosition && endPosition < this.testString.Length, "Out of range input value.");
1818if (position < 0 || position >= this.testString.Length)
1863if (endPosition >= this.testString.Length)
1917if (position < 0 || position >= this.testString.Length)
1956if (endPosition >= this.testString.Length)
2027testPosition = this.testString.Length;
2100Debug.Assert( startPosition >= 0 && endPosition >= 0 && endPosition >= startPosition && endPosition < this.testString.Length, "position out of range." );
2164ResetString(resetPos, this.testString.Length - 1);
2176Debug.Assert(position >= 0 && position < this.testString.Length, "Position out of range.");
2188Debug.Assert(position >= 0 && position < this.testString.Length, "Position out of range.");
2313Debug.Assert(position >= 0 && position < this.testString.Length, "Position out of range.");
2589if( testPosition >= this.testString.Length )
2602testPosition = this.testString.Length;
2641StringBuilder st = new StringBuilder(this.testString.Length);
2643for (int position = 0; position < this.testString.Length; position++)
2658return ToString(/*ignorePwdChar*/ true, this.IncludePrompt, this.IncludeLiterals, 0, this.testString.Length);
2667return ToString(ignorePasswordChar, this.IncludePrompt, this.IncludeLiterals, 0, this.testString.Length);
2697return ToString( /*ignorePwdChar*/ true, includePrompt, includeLiterals, 0, this.testString.Length );
2728if (startPosition >= this.testString.Length)
2734int maxLength = this.testString.Length - startPosition;
2829if (position < 0 || position >= this.testString.Length)
2843if (position < 0 || position >= this.testString.Length)
System.Activities (2)
System.Activities.Core.Presentation (1)
System.Activities.Presentation (4)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelUtilities.cs (1)
142if (sb.Length > 0)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\State\PropertyViewManagerStateContainer.cs (1)
124if (sb.Length > 0)
System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (1)
1505if (sb.Length != 0)
System.Configuration (13)
System.Data (38)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelUtilities.cs (1)
142if (sb.Length > 0)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\State\PropertyViewManagerStateContainer.cs (1)
124if (sb.Length > 0)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (1)
1505if (sb.Length != 0)
System.Data.Entity (10)
System.Data.Entity.Design (7)
System.Data.Linq (7)
System.Data.Services (18)
System.Data.Services.Client (11)
System.Data.SqlXml (13)
System.IdentityModel (1)
System.Messaging (1)
System.Numerics (4)
System.Runtime.Caching (1)
System.Runtime.Remoting (3)
System.Runtime.Serialization (17)
System.Security (4)
System.ServiceModel (35)
System.ServiceModel.Discovery (1)
System.ServiceModel.Internals (1)
System.ServiceModel.Web (11)
System.Web (25)
System.Web.Entity (4)
System.Web.Extensions (7)
System.Web.Mobile (8)
System.Web.Services (1)
System.Windows.Forms (8)
System.Workflow.Activities (2)
System.Workflow.ComponentModel (8)
System.Xml (64)