10786 references to Length
ComSvcConfig (5)
ComplusEndpointConfigContainer.cs (1)
43if (appInfo.ApplicationDirectory != null && appInfo.ApplicationDirectory.Length > 0)
Options.cs (2)
390if ((methods[0] != '{') && (methods[methods.Length - 1] != '}')) 392methods = methods.Substring(1, methods.Length - 2);
parent\svcutil\CommandLineParser.cs (1)
177if (arg.Length == 1)
SafeNativeMethods.cs (1)
205int status = SafeNativeMethods.RegSetValueEx(this, valName, 0, SafeNativeMethods.REG_SZ, value, (value.Length * 2) + 2);
Microsoft.Activities.Build (2)
Microsoft\Activities\Build\Expressions\ExpressionsBuildExtension.cs (2)
131int subStringIndex = firstIndex + buildContext.RootNamespace.Length + 1; 132if (subStringIndex < fullActivityNamespace.Length)
mscorlib (1321)
microsoft\win32\registry.cs (2)
134if( i == -1 || i == keyName.Length) { 138subKeyName = keyName.Substring(i + 1, keyName.Length - i - 1);
microsoft\win32\registrykey.cs (8)
399if (subkey.Length == 0) 494if (subkey.Length==0 && IsSystemKey()) { 1462if (name != null && name.Length > MaxValueLength) { 1496checked(data.Length * 2 + 2)); 1513sizeInBytes = checked(sizeInBytes + (dataStrings[i].Length+1) * 2); 1525String.InternalCopy(dataStrings[i],currentPtr,(checked(dataStrings[i].Length*2))); 1526currentPtr = new IntPtr((long)currentPtr + (checked(dataStrings[i].Length*2))); 2167if ((name.Length - current) > MaxKeyLength)
system\__filters.cs (7)
124if (str.Length > 0 && str[str.Length - 1] == '*') { 125str = str.Substring(0, str.Length - 1); 149if (str.Length > 0 && str[str.Length - 1] == '*') { 150str = str.Substring(0, str.Length - 1); 151return (String.Compare(name,0,str,0,str.Length,StringComparison.OrdinalIgnoreCase)==0);
system\AppContext\AppContext.cs (2)
99if (switchName.Length == 0) 203if (switchName.Length == 0)
system\AppContext\AppContextDefaultValues.cs (3)
81if (frameworkName == null || frameworkName.Length == 0) 100if (identifier.Length == 0) 133if (value.Length > 0 && (value[0] == c_versionValuePrefix || value[0] == 'V'))
system\AppContext\AppContextDefaultValues.DesktopOverrides.cs (2)
36for (int currentPos = 0; currentPos <= overrides.Length; currentPos++) 39if (currentPos == overrides.Length || overrides[currentPos] == ';')
system\appdomain.cs (5)
1080if (dataDirectory != null && dataDirectory.Length > 0) 2280if(path == null || path.Length == 0) 2286if(current != null && current.Length > 0) { 2289if((current[current.Length-1] != Path.PathSeparator) && 4173if (propertyValues[i].Length > 0) {
system\AppDomainSetup.cs (9)
339int len = path.Length; 431if ((appBase == null) || (appBase.Length == 0)) 441if (pathRoot.Length == 0) { // URL 447int urlLen = appBase.Length; 807if (dir.Length == 0) 875if(directories[i].Length != 0) { 886if (newString.Length == 0) 1413bool appendSlash = !( (appBase[appBase.Length-1] == '/') || 1414(appBase[appBase.Length-1] == '\\') );
system\applicationid.cs (1)
39if (name.Length == 0)
system\badimageformatexception.cs (1)
88if (_fileName != null && _fileName.Length != 0)
system\boolean.cs (2)
206int end = value.Length-1; 209while (start < value.Length) {
system\char.cs (22)
181if (s.Length!=1) { 192if (s.Length != 1) { 519if (((uint)index)>=((uint)s.Length)) { 535if (((uint)index)>=((uint)s.Length)) { 550if (((uint)index)>=((uint)s.Length)) { 569if (((uint)index)>=((uint)s.Length)) { 584if (((uint)index)>=((uint)s.Length)) { 628if (((uint)index)>=((uint)s.Length)) { 654if (((uint)index)>=((uint)s.Length)) { 699if (((uint)index)>=((uint)s.Length)) { 722if (((uint)index)>=((uint)s.Length)) { 756if (((uint)index)>=((uint)s.Length)) { 771if (((uint)index)>=((uint)s.Length)) { 790if (((uint)index)>=((uint)s.Length)) { 814if (((uint)index)>=((uint)s.Length)) { 833if (((uint)index)>=((uint)s.Length)) { 854if (index < 0 || index >= s.Length) { 874if (index < 0 || index >= s.Length) { 889if (index < 0 || index >= s.Length) { 893if (index + 1 < s.Length) { 971if (index < 0 || index >= s.Length) { 981if (index < s.Length - 1) {
system\charenumerator.cs (5)
40if (index < (str.Length-1)) { 46index = str.Length; 53index = str.Length; 62if (index >= str.Length) 73if (index >= str.Length)
system\collections\generic\equalitycomparer.cs (3)
526return String.InternalMarvin32HashString(obj, obj.Length, _entropy); 535if(sObj != null) return String.InternalMarvin32HashString(sObj, sObj.Length, _entropy); 587if(sObj != null) return String.InternalMarvin32HashString(sObj, sObj.Length, _entropy);
system\console.cs (2)
1396Contract.Assert(title.Length == titleLength); 1407if (value.Length > MaxConsoleTitleLength)
system\convert.cs (3)
556if (value.Length != 1) 2187BCLDebug.Assert(returnString.Length == j, "returnString.Length == j"); 2357return FromBase64CharPtr(sPtr, s.Length);
system\delegateserializationholder.cs (3)
206if (de.methodName == null || de.methodName.Length == 0) 209if (de.assembly == null || de.assembly.Length == 0) 212if (de.targetTypeName == null || de.targetTypeName.Length == 0)
system\deployment\cmsutils.cs (2)
36if (reference.CommandLine_File != null && reference.CommandLine_File.Length > 0) { 90if (directoryName == null || directoryName.Length == 0)
system\deployment\isolationinterop.cs (1)
1509this.ValueSize = (Value != null) ? new IntPtr((Value.Length + 1) * 2) : IntPtr.Zero;
system\diagnostics\eventing\activitytracker.cs (4)
270activityName = activityName.Substring(0, activityName.Length - EventSource.s_ActivityStartSuffix.Length); 272activityName = activityName.Substring(0, activityName.Length - EventSource.s_ActivityStopSuffix.Length);
system\diagnostics\eventing\eventprovider.cs (2)
696dataDescriptor->Size = ((uint)sRet.Length + 1) * 2; 867dataDescriptor->Size = ((uint)sRet.Length + 1) * 2;
system\diagnostics\eventing\eventsource.cs (36)
876descrs[0].Size = ((arg1.Length + 1) * 2); 895descrs[0].Size = ((arg1.Length + 1) * 2); 897descrs[1].Size = ((arg2.Length + 1) * 2); 918descrs[0].Size = ((arg1.Length + 1) * 2); 920descrs[1].Size = ((arg2.Length + 1) * 2); 922descrs[2].Size = ((arg3.Length + 1) * 2); 940descrs[0].Size = ((arg1.Length + 1) * 2); 959descrs[0].Size = ((arg1.Length + 1) * 2); 981descrs[0].Size = ((arg1.Length + 1) * 2); 1003descrs[1].Size = ((arg2.Length + 1) * 2); 1023descrs[1].Size = ((arg2.Length + 1) * 2); 2255data.Size = (uint)(2 * (msgString.Length + 1)); 3446string taskName = eventName.Substring(0, eventName.Length - s_ActivityStartSuffix.Length); // Remove the Stop suffix to get the task name 3447if (string.Compare(eventName, 0, taskName, 0, taskName.Length) == 0 && 3448string.Compare(eventName, taskName.Length, s_ActivityStartSuffix, 0, Math.Max(eventName.Length - taskName.Length, s_ActivityStartSuffix.Length)) == 0) 3466string taskName = eventName.Substring(0, eventName.Length - s_ActivityStopSuffix.Length); // Remove the Stop suffix to get the task name 3468string.Compare(startEventMetadata.Name, 0, taskName, 0, taskName.Length) == 0 && 3469string.Compare(startEventMetadata.Name, taskName.Length, s_ActivityStartSuffix, 0, Math.Max(startEventMetadata.Name.Length - taskName.Length, s_ActivityStartSuffix.Length)) == 0) 5373if (ed[j].Name != null && ed[j].Name.Length == activityFilterString.Length && 6581var evtName = key.Substring("event_".Length); 6717if (ret.Length != 0 && keyword.Length != 0) 6789if (i >= eventMessage.Length) 6805else if (i < eventMessage.Length - 1 && 6819while (i < eventMessage.Length && Char.IsDigit(eventMessage[i])) 6824if (i < eventMessage.Length && eventMessage[i] == '}') 6833if (i < eventMessage.Length && eventMessage[i] == '!')
system\diagnostics\eventing\frameworkeventsource.cs (3)
107descrs[2].Size = ((arg3.Length + 1) * 2); 131descrs[2].Size = ((arg3.Length + 1) * 2); 151descrs[1].Size = ((arg2.Length + 1) * 2);
System\Diagnostics\Eventing\TraceLogging\EventSourceActivity.cs (1)
289eventName = eventName.Substring(0, eventName.Length - 5);
System\Diagnostics\Eventing\TraceLogging\FieldMetadata.cs (1)
177Encoding.UTF8.GetBytes(this.name, 0, this.name.Length, metadata, pos);
System\Diagnostics\Eventing\TraceLogging\Statics.cs (2)
94Encoding.UTF8.GetBytes(name, 0, name.Length, metadata, 2 + prefixSize); 178return (fieldName.Length <= 2 && fieldName[0] == '_');
System\Diagnostics\Eventing\TraceLogging\TraceLoggingDataCollector.cs (1)
208DataCollector.ThreadInstance.AddBinary(value, value == null ? 0 : value.Length * 2);
System\Diagnostics\Eventing\TraceLogging\TraceLoggingEventSource.cs (3)
774if (value.Length == 0) 786for (int i = 1; i < value.Length; i++) 790if (!(i + 1 < value.Length))
system\diagnostics\logswitch.cs (1)
40if (name != null && name.Length == 0)
system\enum.cs (3)
386if (value.Length == 0) { 645if( format.Length != 1) { 852if (format == null || format.Length == 0)
system\environment.cs (9)
99if (key == null || key.Length == 0) { 109if (key == null || key.Length == 0) { 451if (name.Length == 0) { 483if (varArray[i].Length == 0 || fJustExpanded == true) 902if( value.Length >= MaxEnvVariableValueLength) { 936if( variable.Length == 0) { 947if( variable.Length >= MaxEnvVariableValueLength ) { 971if (variable.Length >= MaxSystemEnvVariableLength) { 997if (variable.Length >= MaxUserEnvVariableLength) {
system\exception.cs (2)
442if (message == null || message.Length <= 0) { 698if (tmpStackTraceString != null && tmpStackTraceString.Length > 0)
system\globalization\calendardata.cs (2)
326if (this.saEraNames[0].Length == 4) 423int length = s.Length;
system\globalization\charunicodeinfo.cs (14)
152Contract.Assert(index >= 0 && index < s.Length, "index < s.Length"); 153if (index < s.Length - 1) { 190Contract.Assert(s.Length > 0, "s.Length > 0"); 191Contract.Assert(index >= 0 && index < s.Length, "index >= 0 && index < s.Length"); 193if (index < s.Length - 1) { 218Contract.Assert(index >= 0 && index < s.Length, "index >= 0 && index < s.Length"); 336if (index < 0 || index >= s.Length) { 371if (index < 0 || index >= s.Length) { 408if (index < 0 || index >= s.Length) { 424if (((uint)index)>=((uint)s.Length)) { 476if (((uint)index)>=((uint)s.Length)) { 498Contract.Assert(index < value.Length, "index < value.Length"); 512Contract.Assert(str.Length > 0, "str.Length > 0");; 513Contract.Assert(index >= 0 && index < str.Length, "index >= 0 && index < str.Length");
system\globalization\compareinfo.cs (51)
240if (0 == text.Length) { 247return (InternalIsSortable(c.m_dataHandle, c.m_handleOrigin, c.m_sortName, text, text.Length)); 442return InternalCompareString(m_dataHandle, m_handleOrigin, m_sortName, string1, 0, string1.Length, string2, 0, string2.Length, GetNativeCompareFlags(options)); 467return Compare(string1, offset1, string1 == null ? 0 : string1.Length-offset1, 468string2, offset2, string2 == null ? 0 : string2.Length-offset2, options); 498if (offset1 > (string1 == null ? 0 : string1.Length) - length1) 502if (offset2 > (string2 == null ? 0 : string2.Length) - length2) 576int prefixLen = prefix.Length; 604source, source.Length, 0, prefix, prefix.Length) > -1); 631int suffixLen = suffix.Length; 655source, source.Length, source.Length - 1, suffix, suffix.Length) >= 0; 684return IndexOf(source, value, 0, source.Length, CompareOptions.None); 694return IndexOf(source, value, 0, source.Length, CompareOptions.None); 704return IndexOf(source, value, 0, source.Length, options); 714return IndexOf(source, value, 0, source.Length, options); 724return IndexOf(source, value, startIndex, source.Length - startIndex, CompareOptions.None); 734return IndexOf(source, value, startIndex, source.Length - startIndex, CompareOptions.None); 744return IndexOf(source, value, startIndex, source.Length - startIndex, options); 754return IndexOf(source, value, startIndex, source.Length - startIndex, options); 778if (startIndex < 0 || startIndex > source.Length) 781if (count < 0 || startIndex > source.Length - count) 814if (startIndex > source.Length) 822if (source.Length == 0) 824if (value.Length == 0) 836if (count < 0 || startIndex > source.Length - count) 854source, count, startIndex, value, value.Length); 878return LastIndexOf(source, value, source.Length - 1, 879source.Length, CompareOptions.None); 890return LastIndexOf(source, value, source.Length - 1, 891source.Length, CompareOptions.None); 902return LastIndexOf(source, value, source.Length - 1, 903source.Length, options); 913return LastIndexOf(source, value, source.Length - 1, 914source.Length, options); 972if (source.Length == 0 && (startIndex == -1 || startIndex == 0)) 976if (startIndex < 0 || startIndex > source.Length) 980if (startIndex == source.Length) 1024if (source.Length == 0 && (startIndex == -1 || startIndex == 0)) 1025return (value.Length == 0) ? 0 : -1; 1028if (startIndex < 0 || startIndex > source.Length) 1032if (startIndex == source.Length) 1039if (value.Length == 0 && count >= 0 && startIndex - count + 1 >= 0) 1057source, count, startIndex, value, value.Length); 1112int length = InternalGetSortKey(m_dataHandle, m_handleOrigin, m_sortName, flags, source, source.Length, null, 0); 1127length = InternalGetSortKey(m_dataHandle, m_handleOrigin, m_sortName, flags, source, source.Length, keyData, keyData.Length); 1255if(0 == source.Length) 1262return (InternalGetGlobalizedHashCode(m_dataHandle, m_handleOrigin, this.m_sortName, source, source.Length, GetNativeCompareFlags(options), forceRandomizedHashing, additionalEntropy));
system\globalization\culturedata.cs (24)
1267this.SENGLISHLANGUAGE.Substring(0, this.sEnglishLanguage.Length - 1) + 2069for (int j = 0; j < time.Length; j++) 2135for (; index < time.Length; index++) 2825for (int i = start; i < str.Length && i <= end; i++) 2832result = new StringBuilder(str, start, i - start, str.Length); 2838result = new StringBuilder(str, start, i - start, str.Length); 2841if (i < str.Length) 2884for (int i = 0; i < str.Length; i++) 2893if (i + 1 < str.Length && str[i + 1] == '\'') 2898result = new StringBuilder(str, 0, i, str.Length * 2); 2921result = new StringBuilder(str, 0, i, str.Length * 2); 2996} while (index < format.Length && format[index] == cTimePart); 3001if (separatorStart < format.Length) 3020for (int i = startIndex; i < format.Length; ++i) 3030if (i + 1 < format.Length) 3210if (nfi.positiveSign == null || nfi.positiveSign.Length == 0) nfi.positiveSign = "+"; 3215if (nfi.currencyDecimalSeparator == null || nfi.currencyDecimalSeparator.Length == 0) 3249StringBuilder sb = new StringBuilder(testString.Length); 3251for (int ich = 0; ich < testString.Length; ich++) 3266if (win32Str == null || win32Str.Length == 0) 3278if (win32Str[win32Str.Length - 1] == '0') 3281values = new int[(win32Str.Length / 2)]; 3286values = new int[(win32Str.Length / 2) + 2]; 3292for (i = 0, j = 0; i < win32Str.Length && j < values.Length; i += 2, j++)
system\globalization\cultureinfo.cs (2)
639for(idx = 0; idx < name.Length; idx++) { 672for (int i=0; i<cultureName.Length; i++) {
system\globalization\datetimeformat.cs (13)
216int len = format.Length; 304int formatLen = format.Length; 358if (pos >= format.Length - 1) 409for (i = index + tokenLen; i < format.Length && format[i] != patternToMatch; i++) { /* Do nothing here */ }; 411if (i < format.Length) { 414while (++i < format.Length && format[i] == patternToMatch) { 450while (i < format.Length) { 519if (dtfi.AMDesignator.Length >= 1) 526if (dtfi.PMDesignator.Length >= 1) 610((i + tokenLen < format.Length && format[i + tokenLen] == DateTimeFormatInfoScanner.CJKYearSuff[0]) || 611(i + tokenLen < format.Length - 1 && format[i + tokenLen] == '\'' && format[i + tokenLen + 1] == DateTimeFormatInfoScanner.CJKYearSuff[0]))) 915if (format==null || format.Length==0) { 966if (format.Length == 1) {
system\globalization\datetimeformatinfo.cs (19)
742if (eraName.Length == 0) { 754if (m_eraNames[i].Length > 0) { 1262for (int i = 0; !foundZ && i < LongTimePattern.Length; i++) { 2613if (twDtfi.GetEraName(i).Length > 0) { 2670if (str.Length > 0) { 2724} while (i < str.Value.Length && (state != HebrewNumberParsingState.FoundEndOfHebrewNumber)); 2774Contract.Assert(str.Index < str.Value.Length, "DateTimeFormatInfo.Tokenize(): start < value.Length"); 2812if (((int)value.tokenType & (int)TokenMask) > 0 && value.tokenString.Length <= remaining) { 2813if (String.Compare(str.Value, str.Index, value.tokenString, 0, value.tokenString.Length, this.Culture, CompareOptions.IgnoreCase)==0) { 2817if ((nextCharIndex = str.Index + value.tokenString.Length) < str.len) { 2828str.Advance(value.tokenString.Length); 2889if (str == null || str.Length == 0) { 2896if (Char.IsWhiteSpace(str[0]) || Char.IsWhiteSpace(str[str.Length - 1])) { 2899if (str.Length == 0) 2913if (str.Length >= value.tokenString.Length) { 2916if (String.Compare(str, 0, value.tokenString, 0, value.tokenString.Length, this.Culture, CompareOptions.IgnoreCase) == 0) { 2917if (str.Length > value.tokenString.Length) {
system\globalization\datetimeformatinfoscanner.cs (16)
169while (currentIndex < pattern.Length) 176if (currentIndex < pattern.Length) 216if (str.Length > 0) 245if (str[str.Length - 1] == '.') 248String strWithoutDot = str.Substring(0, str.Length - 1); 293while (index < pattern.Length) 311if (index < pattern.Length) 345while (++index < pattern.Length && pattern[index] == ch) { 428while (i < pattern.Length) 443if (i < pattern.Length && pattern[i] == '\'') 674for (int j=0; j<array[i].Length; j++) 699if (array[i].Length > 0 && 703while (index < array[i].Length && array[i][index] >= '0' && array[i][index] <= '9') 708if (index == array[i].Length) 713if (index == array[i].Length - 1) 726if (index == array[i].Length - 4)
system\globalization\datetimeparse.cs (66)
109if (s.Length == 0) { 114if (format.Length == 0) { 191if (s.Length == 0) { 208if (formats[i] == null || formats[i].Length == 0) { 417int length = target.Length; 418if (length > (str.Value.Length - str.Index)) { 427int nextCharIndex = str.Index + target.Length; 429if (nextCharIndex < str.Value.Length) { 1209for (int i = 0; i < datePattern.Length && orderCount < 3; i++) 1232for(; i+1 < datePattern.Length && datePattern[i+1] == 'y'; i++) 1243for(; i+1 < datePattern.Length && datePattern[i+1] == 'M'; i++) 1255for(; i+1 < datePattern.Length && datePattern[i+1] == 'd'; i++) 1306for (int i = 0; i < pattern.Length && orderCount < 2; i++) 1329for(; i+1 < pattern.Length && pattern[i+1] == 'y'; i++) 1339for(; i+1 < pattern.Length && pattern[i+1] == 'M'; i++) 1372for (int i = 0; i < pattern.Length && orderCount < 2; i++) 1394for(; i+1 < pattern.Length && pattern[i+1] == 'd'; i++) 1414for(; i+1 < pattern.Length && pattern[i+1] == 'M'; i++) 1893if (dtfi.AMDesignator.Length == 0 && dtfi.PMDesignator.Length != 0) { 1896if (dtfi.PMDesignator.Length == 0 && dtfi.AMDesignator.Length != 0) { 2335if (s.Length == 0) { 3054int monthsInYear = (dtfi.GetMonthName(13).Length == 0 ? 12: 13); 3057int matchStrLen = searchStr.Length; 3106int monthsInYear = (dtfi.GetMonthName(13).Length == 0 ? 12: 13); 3109int matchStrLen = searchStr.Length; 3166int matchStrLen = searchStr.Length; 3199int matchStrLen = searchStr.Length; 3233str.Index += (searchStr.Length - 1); 3239str.Index += (searchStr.Length - 1); 3260if (dtfi.AMDesignator.Length == 0) { 3263if (dtfi.PMDesignator.Length == 0) { 3269if (searchStr.Length > 0) { 3272str.Index += (searchStr.Length - 1); 3278if (searchStr.Length > 0) { 3281str.Index += (searchStr.Length - 1); 3789if (((dtfi.TimeSeparator.Length > 1 && dtfi.TimeSeparator[0] == ':') || !str.Match(':')) && 3799if (((dtfi.DateSeparator.Length > 1 && dtfi.DateSeparator[0] == '/') || !str.Match('/')) && 3822for (int i = 0; i < quotedStr.Length; i++) { 3853if (format.Index >= format.Value.Length - 1 || format.Value[format.Index + 1] == '%') { 3917format.Index += (GMTName.Length - 1); 3946int formatLen = format.Length; 4026if (formatParam.Length == 1) { 4077if (str.Index < str.Value.Length - 1) { 4374len = Value.Length; 4533return MatchSpecifiedWord(target, target.Length + Index); 4539if (count != target.Length) { 4553int valueRemaining = Value.Length - Index; 4554matchLength = target.Length; 4566if (thisPosition >= Value.Length - segmentLength) { // Subtraction to prevent overflow. 4589while (thisPosition < Value.Length && Char.IsWhiteSpace(Value[thisPosition])) { 4595if (targetPosition < target.Length) { 4596int segmentLength = target.Length - targetPosition; 4597if (thisPosition > Value.Length - segmentLength) { 4608if (nextCharIndex < Value.Length) { 4628if (str.Length > (Value.Length - Index)) { 4632if (m_info.Compare(Value, Index, str.Length, str, 0, str.Length, CompareOptions.Ordinal)==0) { 4636Index += (str.Length - 1); 4669int matchLength = word.Length; 4779len = Value.Length; 4797Value = Value.Remove(i, Value.Length - 1 - i); 4798len = Value.Length; 4818len = Value.Length;
system\globalization\hijricalendar.cs (4)
283if (String.Compare(str, 0, HijriAdvanceRegKeyEntry, 0, HijriAdvanceRegKeyEntry.Length, StringComparison.OrdinalIgnoreCase) == 0) { 284if (str.Length == HijriAdvanceRegKeyEntry.Length) 287str = str.Substring(HijriAdvanceRegKeyEntry.Length);
system\globalization\idnmapping.cs (55)
100return GetAscii(unicode, index, unicode.Length - index); 109if (index > unicode.Length) 112if (index > unicode.Length - count) 133Contract.Assert(unicode.Length >= 1, "[IdnMapping.GetAscii]Expected 0 length strings to fail before now."); 134if (unicode[unicode.Length - 1] <= 0x1f) 137Environment.GetResourceString("Argument_InvalidCharSequence", unicode.Length-1 ), 142bool bHasLastDot = (unicode.Length > 0) && IsDot(unicode[unicode.Length - 1]); 147if ((!bHasLastDot) && unicode.Length > 0 && IsDot(unicode[unicode.Length - 1])) 167if (unicode.Length == 0) 173if (unicode[unicode.Length - 1] == 0) 176Environment.GetResourceString("Argument_InvalidCharSequence", unicode.Length - 1), 181int length = IdnToAscii(flags, unicode, unicode.Length, null, 0); 198length = IdnToAscii(flags, unicode, unicode.Length, output, length); 223return GetUnicode(ascii, index, ascii.Length - index); 232if (index > ascii.Length) 235if (index > ascii.Length - count) 271int length = IdnToUnicode(flags, ascii, ascii.Length, null, 0); 287length = IdnToUnicode(flags, ascii, ascii.Length, output, length); 340if (unicode.Length == 0) 348for (int i = 0; i < unicode.Length; i++) 392if (iLastDot == -1 && unicode.Length > M_labelLimit) 397if (unicode.Length > M_defaultNameLimit - (IsDot(unicode[unicode.Length-1])? 0 : 1)) 400M_defaultNameLimit - (IsDot(unicode[unicode.Length-1]) ? 0 : 1)), 404if (bUseStd3 && !IsDot(unicode[unicode.Length-1])) 405ValidateStd3(unicode[unicode.Length-1], true); 562if (unicode.Length == 0) 567StringBuilder output = new StringBuilder(unicode.Length); 573while (iNextDot < unicode.Length) 577Contract.Assert(iNextDot <= unicode.Length, "[IdnMapping.punycode_encode]IndexOfAny is broken"); 579iNextDot = unicode.Length; 585if (iNextDot != unicode.Length) 667output.Remove(iOutputAfterLastDot, M_strAcePrefix.Length); 672if (unicode.Length - iAfterLastDot >= M_strAcePrefix.Length && 673unicode.Substring(iAfterLastDot, M_strAcePrefix.Length).Equals( 766if (iNextDot != unicode.Length) 774if (output.Length > M_defaultNameLimit - (IsDot(unicode[unicode.Length-1]) ? 0 : 1)) 777M_defaultNameLimit - (IsDot(unicode[unicode.Length-1]) ? 0 : 1)), 810if (ascii.Length == 0) 816if (ascii.Length > M_defaultNameLimit - (IsDot(ascii[ascii.Length-1]) ? 0 : 1)) 819M_defaultNameLimit - (IsDot(ascii[ascii.Length-1]) ? 0 : 1)), "ascii"); 822StringBuilder output = new StringBuilder(ascii.Length); 829while (iNextDot < ascii.Length) 833if (iNextDot < 0 || iNextDot > ascii.Length) 834iNextDot = ascii.Length; 840if (iNextDot != ascii.Length) 854if (ascii.Length < M_strAcePrefix.Length + iAfterLastDot || 855!ascii.Substring(iAfterLastDot, M_strAcePrefix.Length).Equals( 876iAfterLastDot += M_strAcePrefix.Length; 1073if (iNextDot != ascii.Length)
system\globalization\japanesecalendar.cs (5)
290if (value.Length != 10) return null; 318if (names[0].Length == 0 || 319names[1].Length == 0 || 320names[2].Length == 0 || 321names[3].Length == 0)
system\globalization\numberformatinfo.cs (3)
168if (decSep.Length==0) { 204if (nativeDig[i].Length != 1) { 205if(nativeDig[i].Length != 2) {
system\globalization\regioninfo.cs (1)
70if (name.Length == 0) //The InvariantCulture has no matching region
system\globalization\stringinfo.cs (6)
56if (m_str.Length == 0) 85if((null == this.m_indexes) && (0 < this.String.Length)) { 146if(this.String.Length == 0 || startingTextElement >= this.Indexes.Length) { 279int len = str.Length; 308int len = str.Length; 337int len = str.Length;
system\globalization\textinfo.cs (22)
246return InternalTryFindStringOrdinalIgnoreCase(searchFlags, source, count, startIndex, value, value.Length, ref foundIndex); 257return InternalCompareStringOrdinalIgnoreCase(str1, 0, str2, 0, str1.Length, str2.Length); 267Contract.Assert(strA.Length >= indexA + lengthA, "[TextInfo.CompareOrdinalIgnoreCaseEx] Caller should've validated strA.Length >= indexA + lengthA"); 268Contract.Assert(strB.Length >= indexB + lengthB, "[TextInfo.CompareOrdinalIgnoreCaseEx] Caller should've validated strB.Length >= indexB + lengthB"); 278Contract.Assert(startIndex + count <= source.Length, "[TextInfo.IndexOfStringOrdinalIgnoreCase] Caller should've validated startIndex + count <= source.Length"); 281if (source.Length == 0 && value.Length == 0) 300int maxStartIndex = end - value.Length; 305Contract.Assert(end - startIndex >= value.Length); 307if (CompareOrdinalIgnoreCaseEx(source, startIndex, value, 0, value.Length, value.Length) == 0) 324Contract.Assert(startIndex <= source.Length, "[TextInfo.LastIndexOfStringOrdinalIgnoreCase] Caller should've validated startIndex <= source.Length"); 327if (value.Length == 0) 343if (value.Length > 0) 345startIndex -= (value.Length - 1); 350if (CompareOrdinalIgnoreCaseEx(source, startIndex, value, 0, value.Length, value.Length) == 0) 717if (str.Length == 0) { 724for (int i = 0; i < str.Length; i++) { 745while (i < str.Length) { 789if (i < str.Length) {
system\globalization\timespanformat.cs (4)
36if (format == null || format.Length == 0) 40if (format.Length == 1) { 167while (i < format.Length) { 370for (int i = 0; i < format.Length; i++) {
system\globalization\timespanparse.cs (8)
221return m_pos >= (m_value.Length-1); 238if (m_pos > -1 && m_pos < m_value.Length) { 1137if (format.Length == 0) { 1142if (format.Length == 1) { 1191while (i < format.Length) { 1393len = input.Length; 1532if (input.Length == 0) { 1547if (formats[i] == null || formats[i].Length == 0) {
system\guid.cs (16)
292if( format.Length != 1) { 330if (format == null || format.Length != 1) { 380if (guidString.Length == 0) { 531if(guidString.Length <= numStart+numLen+1 || guidString[numStart+numLen+1] != '{') { 589if(numStart+numLen+1 >= guidString.Length || guidString[numStart+numLen+1] != '}') { 595if( numStart+numLen+1 != guidString.Length -1) { 610if(guidString.Length != 32) { 615for(int i= 0; i< guidString.Length; i++) { 681if (guidString.Length!=38 || guidString[37]!='}') { 688if (guidString.Length!=38 || guidString[37]!=')') { 694else if(guidString.Length != 36) { 865char[] chArr = new char[str.Length]; 869for(int i = 0; i < str.Length; i++) 884if(str.Length > i+1 && str[i] == '0' && (Char.ToLower(str[i+1], CultureInfo.InvariantCulture) == 'x')) 1196if (format == null || format.Length == 0) 1204if( format.Length != 1) {
system\int16.cs (1)
110if (m_value<0 && format!=null && format.Length>0 && (format[0]=='X' || format[0]=='x')) {
system\io\__error.cs (8)
85if (path.Length < 2) 114if (Path.IsDirectorySeparator(path[path.Length - 1])) 142if (str.Length == 0) 148if (str.Length == 0) 154if (str.Length == 0) 160if (str.Length == 0) 174if (str.Length == 0) 180if (str.Length == 0)
system\io\binarywriter.cs (3)
371_encoding.GetBytes(value, 0, value.Length, _largeByteBuffer, 0); 380int numLeft = value.Length; 390if (charStart < 0 || charCount < 0 || charStart + charCount > value.Length) {
system\io\directory.cs (12)
48if (path.Length==0) 66if (path.Length == 0) 95if (path.Length == 0) 108Contract.Requires(path.Length != 0); 164if (path.Length == 0) 220int length = fullPath.Length; 405if (path == null || path.Length == 0) 802Contract.Requires(fullPath != null && fullPath.Length > 0); 803Contract.Requires(userPath != null && userPath.Length > 0); 1176if (path.Length==0) 1222if (sourceDirName.Length==0) 1227if (destDirName.Length==0)
system\io\directoryinfo.cs (8)
90if ((path.Length == 2) && (path[1] == ':')) 185if (s.Length > 3 && s.EndsWith(Path.DirectorySeparatorChar)) 186s = FullPath.Substring(0, FullPath.Length - 1); 244if (0!=String.Compare(FullPath,0,fullPath,0, FullPath.Length,StringComparison.OrdinalIgnoreCase)) { 643if (destDirName.Length==0) 729if ((originalPath.Length == 2) && (originalPath[1] == ':')) 749if (fullPath.Length > 3) 754s = fullPath.Substring(0, fullPath.Length - 1);
system\io\driveinfo.cs (3)
61if (driveName.Length == 1) 68if (_name == null || _name.Length == 0 || _name.StartsWith("\\\\", StringComparison.Ordinal)) 73if (_name.Length == 2 && _name[1] == ':') {
system\io\file.cs (38)
90if (sourceFileName.Length == 0) 92if (destFileName.Length == 0) 115if (sourceFileName.Length == 0) 117if (destFileName.Length == 0) 132if (sourceFileName.Length == 0) 134if (destFileName.Length == 0) 150Contract.Requires(sourceFileName.Length > 0); 151Contract.Requires(destFileName.Length > 0); 422if (path.Length == 0) 430if (path.Length > 0 && Path.IsDirectorySeparator(path[path.Length - 1])) 787if (path.Length == 0) 803if (path.Length == 0) 817if (path.Length == 0) 831Contract.Requires(path.Length > 0); 844if (path.Length == 0) 860if (path.Length == 0) 874if (path.Length == 0) 888Contract.Requires(path.Length > 0); 944if (path.Length == 0) 960if (path.Length == 0) 975Contract.Requires(path.Length != 0); 991if (path.Length == 0) 1006if (path.Length == 0) 1019Contract.Requires(path.Length != 0); 1037if (path.Length == 0) 1052if (path.Length == 0) 1067if (path.Length == 0) 1084if (path.Length == 0) 1099if (path.Length == 0) 1116if (path.Length == 0) 1145if (path.Length == 0) 1160if (path.Length == 0) 1173Contract.Requires(path.Length > 0); 1187if (path.Length == 0) 1204if (path.Length == 0) 1241if (sourceFileName.Length == 0) 1243if (destFileName.Length == 0)
system\io\fileinfo.cs (3)
287if (destFileName.Length == 0) 310if (destFileName.Length == 0) 460if (destFileName.Length==0)
system\io\fileloadexception.cs (1)
102if (_fileName != null && _fileName.Length != 0)
system\io\filenotfoundexception.cs (1)
89if (_fileName != null && _fileName.Length != 0)
system\io\filestream.cs (1)
624if (path.Length == 0)
system\io\filesystemenumerable.cs (10)
207if (normalizedSearchPattern.Length == 0) 249if (searchPatternDirName != null && searchPatternDirName.Length != 0) 616Contract.Requires(fullSearchString.Length >= fullPathMod.Length); 619char lastChar = fullPathMod[fullPathMod.Length - 1]; 623searchCriteria = fullSearchString.Substring(fullPathMod.Length); 627Contract.Assert(fullSearchString.Length > fullPathMod.Length); 628searchCriteria = fullSearchString.Substring(fullPathMod.Length + 1); 641char lastChar = tempStr[tempStr.Length - 1];
system\io\filesysteminfo.cs (1)
126int length = FullPath.Length;
system\io\isolatedstorage\isolatedstorage.cs (1)
323for (int i=0; i<s.Length; ++i)
system\io\isolatedstorage\isolatedstoragefile.cs (23)
694if (path.Trim().Length == 0) { 735if (path.Trim().Length == 0) { 776if (path.Trim().Length == 0) { 818if (sourceFileName.Trim().Length == 0) { 822if (destinationFileName.Trim().Length == 0) { 840if (sourceFileName.Trim().Length == 0) { 844if (destinationFileName.Trim().Length == 0) { 972if (sourceFileName.Trim().Length == 0) { 976if (destinationFileName.Trim().Length == 0) { 1038if (sourceDirectoryName.Trim().Length == 0) { 1042if (destinationDirectoryName.Trim().Length == 0) { 1102int length = fullPath.Length; 1637if (dataDir[dataDir.Length-1] != '\\') 2170if (nodes1[i].Length == 12) { 2173if (nodes2[j].Length == 12) { 2183if (nodes1[i].Length == 24) { 2201if (nodes1[i].Length == 12) { 2204if (nodes2[j].Length == 12) { 2418if (userSearchPattern.Length == 0) 2422char lastChar = path[path.Length-1]; 2436(fullPath[fullPath.Length - 1] != lastChar)) 2880Contract.Assert(m_RootDir[m_nRootDir].Length < Path.MaxPath); 2936Contract.Assert(m_Root.Length < Path.MaxPath);
system\io\isolatedstorage\isolatedstoragefilestream.cs (1)
128if ((path.Length == 0) || path.Equals(s_BackSlash))
system\io\longpath.cs (20)
60Contract.Requires(path2.Length != 0); 147int i = tempPath.Length; 150i = tempPath.Length; 194Contract.Requires(sourceFileName.Length > 0); 195Contract.Requires(destFileName.Length > 0); 211Contract.Requires(fullSourceFileName.Length > 0); 212Contract.Requires(fullDestFileName.Length > 0); 289if (path.Length==0) 297if (path.Length > 0 && Path.IsDirectorySeparator(path[path.Length - 1])) { 396Contract.Requires(sourceFileName.Length > 0); 397Contract.Requires(destFileName.Length > 0); 450Contract.Requires(path.Length > 0); 473int length = fullPath.Length; 562if (name.Length >= Path.MaxLongPath) 625Contract.Requires(sourceDirName.Length != 0); 626Contract.Requires(destDirName.Length != 0); 631if (sourcePath.Length >= Path.MaxLongPath) 637if (destPath.Length >= Path.MaxLongPath) 906if (path.Length == 0)
system\io\path.cs (29)
119for (int i = path.Length; --i >= 0;) { 127if (extension != null && path.Length != 0) { 128if (extension.Length == 0 || extension[0] != '.') { 177if (path.Length > 0 192while (pos < tempPath.Length && (tempPath[pos] != '?' && tempPath[pos] != '*')) 223int i = path.Length; 225i = path.Length; 261int length = path.Length; 305int length = path.Length; 537if (path.Length + 1 <= MaxPath) { 541newBuffer = new PathHelper(path.Length + Path.MaxPath, maxPathLength); 562if (path.Length > 0 && (path[0] == DirectorySeparatorChar || path[0] == AltDirectorySeparatorChar)) { 570while (index < path.Length) { 638if (index + 1 < path.Length && 1011int length = path.Length; 1167for (int i = path.Length; --i >= 0;) { 1170if ( i != path.Length - 1) 1190int length = path.Length; 1247if (paths[i].Length == 0) { 1255finalSize = paths[i].Length; 1257finalSize += paths[i].Length; 1260char ch = paths[i][paths[i].Length - 1]; 1268if (paths[i].Length == 0) { 1289if (path2.Length == 0) 1292if (path1.Length == 0) 1298char ch = path1[path1.Length - 1]; 1377if (index + 2 == searchPattern.Length) // Terminal ".." . Files names cannot end in ".." 1404if (path2.Length == 0) 1408int i = path1.Length;
system\io\pathhelper.cs (4)
277if (tempName.Length > Path.MaxPath) { 352if (Length < compareTo.Length) 358String s = new String(m_arrayPtr, 0, compareTo.Length); 362for (int i = 0; i < compareTo.Length; i++) {
system\io\pathinternal.cs (33)
53int startIndex = isExtended ? ExtendedPathPrefix.Length : PathStartSkip(path); 56if ((path.Length > startIndex && path[startIndex] == Path.VolumeSeparatorChar) 58|| (path.Length >= startIndex + 2 && path[startIndex + 1] == Path.VolumeSeparatorChar && !IsValidDriveChar(path[startIndex])) 60|| (path.Length > startIndex + 2 && path.IndexOf(Path.VolumeSeparatorChar, startIndex + 2) != -1)) 74if (value == null || builder.Length < value.Length) 79for (int i = 0; i < value.Length; i++) 84for (int i = 0; i < value.Length; i++) 110return fullPath.Length >= MaxShortPath; 113return fullPath.Length >= MaxLongPath; 121int length = fullPath.Length; 149return (fullPath.Length >= MaxShortDirectoryPath); 220path.Length >= DevicePrefixLength 255return path.Length >= DevicePrefixLength 299return path.Length >= UncExtendedPathPrefix.Length 312return path.Length >= UncExtendedPathPrefix.Length 353int startIndex = AppContextSwitches.UseLegacyPathHandling ? 0 : IsDevice(path) ? ExtendedPathPrefix.Length : 0; 364for (int i = startIndex; i < path.Length; i++) 380return (int)GetRootLength(value, (ulong)path.Length); 409uncRootLength = (uint)UncExtendedPathPrefix.Length; 414volumeSeparatorLength += (uint)ExtendedPathPrefix.Length; 445if (sourceLength < (ulong)value.Length) return false; 446for (int i = 0; i < value.Length; i++) 467if (path.Length < 2) 483return !((path.Length >= 3) 540while (startIndex < path.Length && path[startIndex] == ' ') startIndex++; 542if (startIndex > 0 && (startIndex < path.Length && IsDirectorySeparator(path[startIndex])) 543|| (startIndex + 1 < path.Length && path[startIndex + 1] == Path.VolumeSeparatorChar && IsValidDriveChar(path[startIndex]))) 598for (int i = 0; i < path.Length; i++) 604|| (i > 0 && i + 1 < path.Length && IsDirectorySeparator(path[i + 1])))) 614StringBuilder builder = StringBuilderCache.Acquire(path.Length); 622for (int i = start; i < path.Length; i++) 630if (i + 1 < path.Length && IsDirectorySeparator(path[i + 1]))
system\io\ReadLinesIterator.cs (1)
36Contract.Requires(path.Length > 0);
system\io\streamreader.cs (1)
234if (path.Length==0)
system\io\streamwriter.cs (3)
187if (path.Length == 0) 430int count = value.Length; 548int count = value.Length;
system\io\stringreader.cs (1)
41_length = s == null? 0: s.Length;
system\io\textwriter.cs (1)
466int vLen = value.Length;
system\marshalbyrefobject.cs (1)
212if ((typeNamespace != null) && (typeNamespace.Length > 0))
system\number.cs (3)
1031|| (p - stringPointer < str.Length && !TrailingZeros(str, (int)(p - stringPointer)))) { 1039for (int i = index; i < s.Length; i++) { 1214|| (p - stringPointer < str.Length && !TrailingZeros(str, (int)(p - stringPointer)))) {
system\objectdisposedexception.cs (1)
46if (name == null || name.Length == 0)
system\reflection\__filters.cs (9)
41if (str.Length > 0 && str[str.Length - 1] == '*') { 42str = str.Substring(0, str.Length - 1); 61if (str.Length > 0 && str[str.Length - 1] == '*') { 62str = str.Substring(0, str.Length - 1); 64if (name.Length >= str.Length) 65return (String.Compare(name,0,str,0,str.Length, StringComparison.OrdinalIgnoreCase)==0);
system\reflection\assembly.cs (2)
1761if ((assemblyString.Length == 0) || 2447int len = codebase.Length;
system\reflection\assemblyname.cs (1)
390if ((assemblyName.Length == 0) ||
system\reflection\customattribute.cs (1)
510namedArgs += String.Format(CultureInfo.CurrentCulture, i == 0 && ctorArgs.Length == 0 ? "{0}" : ", {0}", NamedArguments[i]);
system\reflection\emit\aqnbuilder.cs (1)
168if (i == nestings.Count - 1 && enclosingType.Namespace != null && enclosingType.Namespace.Length != 0)
system\reflection\emit\assemblybuilder.cs (9)
637if (name.Length == 0) 854if (name.Length == 0) 861if (fileName.Length == 0) 1036if (name.Length == 0) 1040if (fileName.Length == 0) 1126if (name.Length == 0) 1130if (fileName.Length == 0) 1572if (name.Length == 0) 1770if (assemblyFileName.Length == 0)
system\reflection\emit\fieldbuilder.cs (1)
41if (fieldName.Length == 0)
system\reflection\emit\ilgenerator.cs (1)
1308if (usingNamespace.Length == 0)
system\reflection\emit\methodbuilder.cs (1)
97if (name.Length == 0)
system\reflection\emit\modulebuilder.cs (7)
74int i = typeName.Length - 1; 906while (startIndex <= className.Length) 1312if (name.Length == 0) 1367if (name.Length == 0) 1499if (name.Length == 0) 2055if (methodName.Length == 0) 2215return new StringToken(GetStringConstant(GetNativeHandle(), str, str.Length));
system\reflection\emit\propertybuilder.cs (1)
53if (name.Length == 0)
system\reflection\emit\typebuilder.cs (9)
622if (fullname.Length == 0) 629if (fullname.Length > 1023) 768if (name.Length == 0) 774if (dllName.Length == 0) 780if (importName.Length == 0) 867if (name.Length == 0) 1701if (name.Length == 0) 2168if (name.Length == 0) 2225if (name.Length == 0)
system\reflection\module.cs (1)
1208return new String(s.ToCharArray(), i + 1, s.Length - i - 1);
system\resources\__fastresourcecomparer.cs (7)
49for(int i=0; i<key.Length; i++) 93int numChars = a.Length; 97return (a.Length == 0) ? 0 : -1; 109return a.Length - bCharLength; 131if (numChars > b.Length) 132numChars = b.Length; 139return byteLen - b.Length * 2;
system\resources\manifestbasedresourcegroveler.cs (1)
661if (missingCultureName.Length == 0)
system\resources\resourcemanager.cs (5)
939if (((comma == -1) ? asmTypeName1.Length : comma) != typeName2.Length) 943if (String.Compare(asmTypeName1, 0, typeName2, 0, typeName2.Length, StringComparison.Ordinal) != 0) 995if (stringName.Length == 0) 1532if (fileName.Length >= 2 &&
system\rttype.cs (8)
382if (name == null || name.Length == 0 || 389int cNameLen = name.Length; 2281int nameLength = fullname.Length - ns.Length - 1; 2356name = name.Substring(0, name.Length - 1); 3861if (ns == null || ns.Length == 0) 4638if (name.Length == 0 || name.Equals(@"[DISPID=0]")) 5109typeName = typeName.Substring(@"System.".Length);
system\runtime\interopservices\attributes.cs (1)
570RuntimeType safeArrayUserDefinedType = safeArrayUserDefinedTypeName == null || safeArrayUserDefinedTypeName.Length == 0 ? null :
system\runtime\interopservices\comexception.cs (1)
73if (!(message == null || message.Length <= 0)) {
system\runtime\interopservices\marshal.cs (15)
1242int nb = (s.Length + 1) * SystemMaxDBCSCharSize; 1245if (nb < s.Length) 1273int nb = (s.Length + 1) * 2; 1276if (nb < s.Length) 1290String.wstrcpy((char*)hglobal, firstChar, s.Length + 1); 1373customManagedNamespace = customManagedNamespace.Substring(0, customManagedNamespace.Length - 4); 1375customManagedNamespace = customManagedNamespace.Substring(0, customManagedNamespace.Length - 4); 1873int nb = (s.Length + 1) * 2; 1876if (nb < s.Length) 1889String.wstrcpy((char *)hglobal, firstChar, s.Length + 1); 1912int nb = (s.Length + 1) * SystemMaxDBCSCharSize; 1915if (nb < s.Length) 2203if (s.Length+1 < s.Length) 2206IntPtr bstr = Win32Native.SysAllocStringLen(s, s.Length);
system\runtime\interopservices\typelibconverter.cs (4)
104if (asmFileName.Length > Path.MAX_PATH) 311Contract.Assert((asmFileName != null) && (asmFileName.Length > 0), "The assembly file name cannot be an empty string!"); 324asmFileName = strFileNameNoPath.Substring(0, strFileNameNoPath.Length - ".dll".Length);
system\runtime\interopservices\windowsruntime\windowsruntimemarshal.cs (1)
1310int hrCreate = UnsafeNativeMethods.WindowsCreateString(s, s.Length, &hstring);
system\runtime\remoting\channelservices.cs (1)
137(chnlName.Length == 0) ||
system\runtime\remoting\configuration.cs (5)
722int len = typeAssem.Length; 761if ((genericTypeIndex >= 0) && (genericTypeIndex < (value.Length - 1))) 770if ((index >= 0) && (index < (value.Length - 1))) 1338if (String.Compare(svc.AssemblyName, 0, asmName, 0, asmName.Length, StringComparison.OrdinalIgnoreCase) == 0) 1345if (svc.AssemblyName[asmName.Length] == ',')
system\runtime\remoting\identity.cs (15)
75if ((uri == null) || (uri.Length <= 1) || (uri[0] != '/')) 83if (uri.Length > guidStr.Length) 88return uri.Substring(guidStr.Length); 96if (uri.Length > guidStr.Length) 101return uri.Substring(guidStr.Length); 110if (uri.Length > (appName.Length + 2)) 112if (String.Compare(uri, 1, appName, 0, appName.Length, true, CultureInfo.InvariantCulture) == 0) 115if (uri[appName.Length + 1] == '/') 118return uri.Substring(appName.Length + 2); 136if (s1.Length < prefix.Length) 139return (String.CompareOrdinal(s1, 0, prefix, 0, prefix.Length) == 0);
system\runtime\remoting\message.cs (5)
719if (soapQName.Key.Length == 0) 3015if (ifaceTypeName.Length == count) 3040if (serverTypeName.Length == count) 3077index = typeName.Length; 4410else if ((soapFault.Detail != null) && (soapFault.Detail.GetType() == typeof(String)) && (!(((String)soapFault.Detail).Length == 0)))
system\runtime\remoting\remotingattributes.cs (2)
676if (ns == null || ns.Length == 0) { 680name = name.Substring(ns.Length + 1);
system\runtime\remoting\remotingconfigparser.cs (5)
1812if (time.Length > 0) 1813lastChar = time[time.Length - 1]; 1821if (time.Length == 0) 1829metric = time.Substring(time.Length - metricLength, metricLength); 1832int value = Int32.Parse(time.Substring(0, time.Length - metricLength), CultureInfo.InvariantCulture);
system\runtime\remoting\remotingservices.cs (5)
2541if (qualifiedTypeName.Length > 4) // length of "clr:" 2556if (qualifiedTypeName.Length > 5) // length of "soap:" 2582if ((typeNamespace != null) && (typeNamespace.Length > 0)) 2621qualifiedTypeName.Substring(index + 2, qualifiedTypeName.Length - (index + 2)); 2659qualifiedTypeName.Substring(index + 2, qualifiedTypeName.Length - (index + 2));
system\runtime\remoting\remotingsurrogateselector.cs (2)
313if ((name == null) || (name.Length == 0)) 387if ((names[i] == null) || (names[i].Length == 0))
system\runtime\remoting\soap.cs (17)
444if ((soapAction[0] == '"') && (soapAction[soapAction.Length - 1] == '"')) 445soapAction = soapAction.Substring(1, soapAction.Length - 2); 504if ((soapAction[0] == '"') && (soapAction[soapAction.Length - 1] == '"')) 505soapAction = soapAction.Substring(1, soapAction.Length - 2); 650assemblyName = UriDecode(inNamespace.Substring(assemblyNS.Length)); 652typeNamespace = inNamespace.Substring(namespaceNS.Length); 655int index = inNamespace.IndexOf("/", fullNS.Length); 656typeNamespace = inNamespace.Substring(fullNS.Length,index-fullNS.Length); 667if (value == null || value.Length == 0) 670for (int i=0; i<value.Length; i++) 686if (value == null || value.Length == 0) 691for (int i=0; i<value.Length; i++) 693if (value[i] == '%' && (value.Length-i >= 3)) 724if (name == null || name.Length == 0) 798uri = uri.Substring(urtNSprefix.Length); // now contains type/assembly 813return uri.Substring(systemNSprefix.Length) + ", " + assemName; // now contains type
system\runtime\remoting\soapinteroptypes.cs (12)
27for (int i=0; i<value.Length; i++) 39for (int i=0; i<value.Length; i++) 50if (value == null || value.Length == 0) 210time = value.Substring(0, value.Length-1)+"-00:00"; 464time = value.Substring(0, value.Length-1)+"-00:00"; 937if (s.Length == 1) 1038if (value == null || value.Length == 0) 1485if (_key == null || _key.Length == 0) 1610if (value == null || value.Length == 0) 1668if (value == null || value.Length == 0) 1678if (value.Length > 0) 1680if (Char.IsWhiteSpace(value[0]) || Char.IsWhiteSpace(value[value.Length - 1]))
system\runtime\serialization\formatters\binary\binaryobjectreader.cs (6)
676SerTrace.Log( this, "ParseArray bin.base64 ",pr.PRvalue.Length," ",pr.PRvalue); 678if (pr.PRvalue.Length > 0) 1464if (((previousName != null) && (previousName.Length == name.Length) && (previousName.Equals(name))) && 1465((previousAssemblyString != null) && (previousAssemblyString.Length == assemblyInfo.assemblyString.Length) &&(previousAssemblyString.Equals(assemblyInfo.assemblyString))))
system\runtime\serialization\formatters\binary\binaryobjectwriter.cs (1)
1352if (assemblyString.Length == 0)
system\runtime\serialization\formatterservices.cs (2)
155if (t2Name.Length == t1Name.Length && t2Name[0] == t1Name[0] && t1Name == t2Name){
system\runtime\versioning\binarycompatibility.cs (3)
366if (frameworkName.Length == 0) 386if (identifier.Length == 0) 419if (value.Length > 0 && (value[0] == c_versionValuePrefix || value[0] == 'V'))
system\runtimehandles.cs (2)
613if (name == null || name.Length == 0) 647if (name == null || name.Length == 0)
system\sbyte.cs (1)
112if (m_value<0 && format!=null && format.Length>0 && (format[0]=='X' || format[0]=='x')) {
system\security\accesscontrol\eventwaithandlesecurity.cs (1)
144if ((name != null) && (name.Length != 0))
system\security\accesscontrol\filesecurity.cs (2)
360if ((name != null) && (name.Length != 0)) 366if ((name != null) && (name.Length != 0))
system\security\accesscontrol\mutexsecurity.cs (1)
144if ((name != null) && (name.Length != 0))
system\security\cryptography\utils.cs (1)
627return DiscardWhiteSpaces(inputBuffer, 0, inputBuffer.Length);
system\security\permissions\fileiopermission.cs (8)
591for (int i = startIndex; i < path.Length; i++) 1158else if (value.Length >= m_strAllFiles.Length && String.Compare( m_strAllFiles, value, StringComparison.Ordinal) == 0) 1164else if (value.Length >= m_strAllLocalFiles.Length && String.Compare( m_strAllLocalFiles, 0, value, 0, m_strAllLocalFiles.Length, StringComparison.Ordinal) == 0) 1166m_set = new StringExpressionSet( m_ignoreCase, value.Substring( m_strAllLocalFiles.Length ), true ); 1416if (tempStr != null && tempStr.Length > 0)
system\security\permissions\strongnameidentitypermission.cs (1)
192if (value != null && value.Length == 0)
system\security\permissions\urlidentitypermission.cs (1)
152if(value == null || value.Length == 0)
system\security\permissiontoken.cs (3)
79iComma = str.Length; 123for (int i = index; i < className.Length; i++) { 125if (String.Compare(className, i, c_mscorlibName, 0, c_mscorlibName.Length, StringComparison.OrdinalIgnoreCase) == 0)
system\security\policy\applicationdirectorymembershipcondition.cs (2)
67if (appDir != null && appDir.Length > 1) 69if (appDir[appDir.Length-1] == '/')
system\security\policy\applicationsecurityinfo.cs (1)
100if (defaultPSetId != null && defaultPSetId.Length > 0) {
system\security\policy\applicationtrust.cs (2)
248if (fullName != null && fullName.Length > 0) { 374if (appTrustXml != null && appTrustXml.Length > 0) {
system\security\policy\netcodegroup.cs (17)
131if (allowScheme == null || allowScheme.Length == 0) 134if (allowPort == null || allowPort.Length == 0) 189if (((object)scheme == null) || (scheme.Length == 0) || !IsAsciiLetter(scheme[0])) 192for (int i = scheme.Length - 1; i > 0; --i) { 465while (start < str.Length && (idx = str.IndexOfAny(c_SomeRegexChars, start)) != -1) 467if (sb == null) sb = new System.Text.StringBuilder(str.Length*2); 474if (start < str.Length) 475sb.Append(str, start, str.Length - start); 490if (host == null || host.Length == 0) 497if (port != null && port.Length != 0) 532if (port.Length != 0) 615System.Text.StringBuilder sb = new System.Text.StringBuilder(c_AnyScheme.Length * access.Length + c_IgnoreUserInfo.Length*2 + escapedHost.Length); 656System.Text.StringBuilder sb = new System.Text.StringBuilder(c_AnyScheme.Length*2 + c_IgnoreUserInfo.Length + escapedHost.Length);
system\security\policy\strongname.cs (5)
118if (mcName.Length > 0 && mcName[mcName.Length-1] == '*' && mcName.Length - 1 <= asmName.Length) 119return String.Compare( mcName, 0, asmName, 0, mcName.Length - 1, StringComparison.OrdinalIgnoreCase) == 0;
system\security\policy\strongnamemembershipcondition.cs (1)
107else if (value.Length == 0)
system\security\principal\ntaccount.cs (8)
47if ( accountName.Length == 0 ) 52if ( accountName.Length > MaximumAccountNameLength ) 57if ( domainName != null && domainName.Length > MaximumDomainNameLength ) 63if ( domainName == null || domainName.Length == 0 ) 80if ( name.Length == 0 ) 85if ( name.Length > ( MaximumDomainNameLength + 1 /* '\' */ + MaximumAccountNameLength )) 288if (Names[currentName].Buffer.Length * 2 + 2 > ushort.MaxValue) 296Names[currentName].Length = (ushort)(Names[currentName].Buffer.Length * 2);
system\security\principal\windowsidentity.cs (3)
1033byte[] arrayPackageName = new byte[Win32Native.MICROSOFT_KERBEROS_NAME.Length + 1]; 1034Encoding.ASCII.GetBytes(Win32Native.MICROSOFT_KERBEROS_NAME, 0, Win32Native.MICROSOFT_KERBEROS_NAME.Length, arrayPackageName, 0); 1044Win32Native.UNICODE_INTPTR_STRING PackageName = new Win32Native.UNICODE_INTPTR_STRING(Win32Native.MICROSOFT_KERBEROS_NAME.Length,
system\security\principal\windowsprincipal.cs (1)
135if (role == null || role.Length == 0)
system\security\securitydocument.cs (6)
106GuaranteeSize( position + str.Length * 2 + 2 ); 108for (int i = 0; i < str.Length; ++i) 113m_data[position + str.Length * 2] = 0; 114m_data[position + str.Length * 2 + 1] = 0; 116position += str.Length * 2 + 2; 133return str.Length * 2 + 2;
system\security\securityelement.cs (5)
522int strLen = str.Length; 559int maxCompareLength = str.Length - index; 569int length = strEscValue.Length; 573newIndex = index + strEscValue.Length; 590int strLen = str.Length;
system\security\securityexception.cs (1)
558if (attrString.Length == 0)
system\security\util\hex.cs (3)
86int length = hexString.Length; 92length = hexString.Length - 2; 120for (int j = 0; i < hexString.Length; i += 2, j++) {
system\security\util\sitestring.cs (2)
44if (site == null || site.Length == 0) 107for (int i = 0; i < str.Length; ++i)
system\security\util\stringexpressionset.cs (26)
131if (str.Length == 0) 232if (oneString != null && oneString.Length != 0) 242if (temp != null && temp.Length != 0) 592if (right == null || left == null || right.Length == 0 || left.Length == 0 || 593right.Length > left.Length) 597else if (right.Length == left.Length) 602else if (left.Length - right.Length == 1 && left[left.Length-1] == m_directorySeparator) 604return String.Compare( left, 0, right, 0, right.Length, strComp) == 0; 606else if (right[right.Length-1] == m_directorySeparator) 609return String.Compare( right, 0, left, 0, right.Length, strComp) == 0; 611else if (left[right.Length] == m_directorySeparator) 614return String.Compare( right, 0, left, 0, right.Length, strComp) == 0; 625if (right == null || left == null || right.Length == 0 || left.Length == 0) 629else if (right.Length == left.Length) 638if (right.Length < left.Length) 649if (String.Compare( shortString, 0, longString, 0, shortString.Length, strComp) != 0) 654if (shortString.Length == 3 && 660return longString[shortString.Length] == m_directorySeparator;
system\security\util\tokenizer.cs (7)
132_inSize = input.Length; 140_inSize = _inString.Length; 457if (0==String.Compare(_searchStrings[istr], 0, _inString, _inIndex-1, _searchStrings[istr].Length, StringComparison.Ordinal)) 460_inNestedSize = _inNestedString.Length; 463_inIndex += _searchStrings[istr].Length - 1; 654int l = str.Length; 688if (str.Length != l)
system\security\util\urlstring.cs (26)
125StringBuilder intermediate = StringBuilderCache.Acquire(url.Length); 140intermediate = intermediate.Append(url, Rindex, (url.Length - Rindex)); 151if (url.Length - index < 2) // Check that there is at least 1 char after the '%' 156if (url.Length - index < 6) // example: "%u004d" is 6 chars long 181if (url.Length - index < 3) // example: "%4d" is 3 chars long 221else if (url.Length > index + 1) 223if (index == m_defaultProtocol.Length && 236if (url.Length > index + 2 && 242for (int i = 0; i < m_protocol.Length; ++i) 386if ((url.Length - curCmpIdx) >= 4 && 410if ((url.Length - curCmpIdx) >= 4 && 491index != temp.Length - 1) 512if (localSite.Length == 0) 531for (; i < localSite.Length; ++i) 561if (localSite[localSite.Length-1] == '*') 569if (directoryString.Length == 0) 602if (directoryString.Length == 0) 622if (url.Length == 0) 756return host == null || host.Length < 2 || !host.EndsWith(':') || 779if (directory.Length != 2 || 807for (int i = intermediateDirectory.Length; i > 0; i--) 821if (directory.Length != 2 || 1028if (localSite.Length == 2 && 1093if (directory == null || directory.Length == 0) 1164if (m_site.Length > 2 && m_site.IndexOf( ':' ) != -1) 1172if (directory == null || directory.Length == 0)
system\security\util\xmlutil.cs (3)
129int requiredNamespaceLength = requiredNamespace.Length; 156namespaceClassNameLength = fullClassName.Length; 198if(s.Length < 1)
system\string.cs (193)
233jointLength += value[stringToJoinIndex].Length; 238jointLength += (count - 1) * separator.Length; 274int length = Math.Min(strA.Length, strB.Length); 301return strA.Length - strB.Length; 333int length = strIn.Length; 368Contract.Requires(strA.Length == strB.Length); 370int length = strA.Length; 422Contract.Requires(strA.Length == strB.Length, "Lengths of strA and strB must be the same"); 423int length = strA.Length; 467int length = Math.Min(strA.Length, strB.Length); 544return strA.Length - strB.Length; 561if (this.Length != str.Length) 580if (this.Length != value.Length) 615if (this.Length != value.Length) 620if (this.Length != value.Length) 647if (a.Length != b.Length) 682if (a.Length != b.Length) 688if (a.Length != b.Length) 738if (count > Length - sourceIndex) 757int length = Length; 775if (startIndex < 0 || startIndex > Length || startIndex > Length - length) 794return (value == null || value.Length == 0); 801for(int i = 0; i < value.Length; i++) { 838return InternalMarvin32HashString(this, this.Length, 0); 844Contract.Assert(src[this.Length] == '\0', "src[this.Length] == '\\0'"); 857int len = this.Length; 901Contract.Assert(src[this.Length] == '\0', "src[this.Length] == '\\0'"); 914int len = this.Length; 1023if ((count == 0) || (omitEmptyEntries && this.Length == 0)) 1028int[] sepList = new int[Length]; 1072if ((count == 0) || (omitEmptyEntries && this.Length ==0)) { 1076int[] sepList = new int[Length]; 1077int[] lengthList = new int[Length]; 1115for (int i = 0; i < numActualReplaces && currIndex < Length; i++) { 1121if (currIndex < Length && numActualReplaces >= 0) { 1151for(int i=0; i< numReplaces && currIndex < Length; i++) { 1169if (currIndex< Length) { 1196for (int i=0; i < Length && foundCount < sepList.Length; i++) { 1208for (int i=0; i< Length && foundCount < sepListCount; i++) { 1238for (int i=0; i< Length && foundCount < sepListCount; i++) { 1244Int32 currentSepLength = separator.Length; 1245if ( pwzChars[i] == separator[0] && currentSepLength <= Length - i) { 1264return this.Substring (startIndex, Length-startIndex); 1277if (startIndex > Length) { 1285if (startIndex > Length - length) { 1294if( startIndex == 0 && length == this.Length) { 1303Contract.Assert( startIndex >= 0 && startIndex <= this.Length, "StartIndex is out of range!"); 1304Contract.Assert( length >= 0 && startIndex <= this.Length - length, "length is out of range!"); 1441Contract.Assert(cbNativeBuffer >= (Length + 1) * Marshal.SystemMaxDBCSCharSize, "Insufficient buffer length passed to ConvertToAnsi"); 1457this.Length, 1541if (src.Length > dest.Length - destPos) { 1548wstrcpy(pDest + destPos, pSrc, src.Length); 1902if (strA.Length - indexA < lengthA) { 1903lengthA = (strA.Length - indexA); 1908if (strB.Length - indexB < lengthB) { 1909lengthB = (strB.Length - indexB); 1926if (strA.Length - indexA < lengthA) { 1927lengthA = (strA.Length - indexA); 1932if (strB.Length - indexB < lengthB) { 1933lengthB = (strB.Length - indexB); 1959if (strA.Length - indexA < lengthA) { 1960lengthA = (strA.Length - indexA); 1965if (strB.Length - indexB < lengthB) { 1966lengthB = (strB.Length - indexB); 1993if (strA.Length - indexA < lengthA) { 1994lengthA = (strA.Length - indexA); 1999if (strB.Length - indexB < lengthB) { 2000lengthB = (strB.Length - indexB); 2039if (strA.Length - indexA < 0) { 2044if (strB.Length - indexB < 0) { 2058if (strA.Length - indexA < lengthA) { 2059lengthA = (strA.Length - indexA); 2064if (strB.Length - indexB < lengthB) { 2065lengthB = (strB.Length - indexB); 2203if( value.Length == 0) { 2221return this.Length < value.Length ? false : (nativeCompareOrdinalEx(this, this.Length -value.Length, value, 0, value.Length) == 0); 2224return this.Length < value.Length ? false : (TextInfo.CompareOrdinalIgnoreCaseEx(this, this.Length - value.Length, value, 0, value.Length, value.Length) == 0); 2253int thisLen = this.Length; 2267return IndexOf(value, 0, this.Length); 2272return IndexOf(value, startIndex, this.Length - startIndex); 2286return IndexOfAny(anyOf,0, this.Length); 2291return IndexOfAny(anyOf, startIndex, this.Length - startIndex); 2326if (startIndex < 0 || startIndex > this.Length) { 2330if (count < 0 || count > this.Length - startIndex) { 2340return IndexOf(value, 0, this.Length, comparisonType); 2345return IndexOf(value, startIndex, this.Length - startIndex, comparisonType); 2355if (startIndex < 0 || startIndex > this.Length) 2358if (count < 0 || startIndex > this.Length - count) 2396return LastIndexOf(value, this.Length-1, this.Length); 2419return LastIndexOfAny(anyOf,this.Length-1,this.Length); 2442return LastIndexOf(value, this.Length-1,this.Length, StringComparison.CurrentCulture); 2462return LastIndexOf(value, this.Length-1, this.Length, comparisonType); 2478if (this.Length == 0 && (startIndex == -1 || startIndex == 0)) 2479return (value.Length == 0) ? 0 : -1; 2482if (startIndex < 0 || startIndex > this.Length) 2486if (startIndex == this.Length) 2493if (value.Length == 0 && count >= 0 && startIndex - count + 1 >= 0) 2583if( value.Length == 0) { 2601if( this.Length < value.Length) { 2604return (nativeCompareOrdinalEx(this, 0, value, 0, value.Length) == 0); 2607if( this.Length < value.Length) { 2611return (TextInfo.CompareOrdinalIgnoreCaseEx(this, 0, value, 0, value.Length, value.Length) == 0); 2748int end = this.Length-1; 2753for (start=0; start < this.Length; start++) { 2759for (end= Length -1; end >= start; end--) { 2772int end = this.Length-1; 2777for (start=0; start < this.Length; start++) { 2790for (end= Length -1; end >= start; end--) { 2810if (len == this.Length) { 2826if (startIndex < 0 || startIndex > this.Length) 2829Contract.Ensures(Contract.Result<String>().Length == this.Length + value.Length); 2831int oldLength = Length; 2832int insertLength = value.Length; 2866Contract.Ensures(Contract.Result<String>().Length == this.Length); 2918if (count > Length - startIndex) 2922Contract.Ensures(Contract.Result<String>().Length == this.Length - count); 2924int newLength = Length - count; 2949if (startIndex >= Length) { 3022.Acquire(format.Length + args.Length * 8) 3034int length = str.Length; 3135totalLength += sArgs[i].Length; 3189Contract.Ensures(Contract.Result<String>().Length == 3190(str0 == null ? 0 : str0.Length) + 3191(str1 == null ? 0 : str1.Length)); 3205int str0Length = str0.Length; 3207String result = FastAllocateString(str0Length + str1.Length); 3218Contract.Ensures(Contract.Result<String>().Length == 3219(str0 == null ? 0 : str0.Length) + 3220(str1 == null ? 0 : str1.Length) + 3221(str2 == null ? 0 : str2.Length)); 3240int totalLength = str0.Length + str1.Length + str2.Length; 3244FillStringChecked(result, str0.Length, str1); 3245FillStringChecked(result, str0.Length + str1.Length, str2); 3253Contract.Ensures(Contract.Result<String>().Length == 3254(str0 == null ? 0 : str0.Length) + 3255(str1 == null ? 0 : str1.Length) + 3256(str2 == null ? 0 : str2.Length) + 3257(str3 == null ? 0 : str3.Length)); 3280int totalLength = str0.Length + str1.Length + str2.Length + str3.Length; 3284FillStringChecked(result, str0.Length, str1); 3285FillStringChecked(result, str0.Length + str1.Length, str2); 3286FillStringChecked(result, str0.Length + str1.Length + str2.Length, str3); 3297Contract.Assert((currPos <= totalLength - values[i].Length), 3301currPos+=values[i].Length; 3321totalLength += internalValues[i].Length; 3336Contract.Ensures(Contract.Result<String>().Length == str.Length); 3349Contract.Ensures(Contract.Result<String>() == null || Contract.Result<String>().Length == str.Length);
system\stringcomparer.cs (5)
345if( x.Length != y.Length) { 421if( x.Length != y.Length) { 440return String.InternalMarvin32HashString(obj, obj.Length, _entropy);
system\stubhelpers.cs (16)
30byte[] buffer = new byte[(str.Length + 1) * Marshal.SystemMaxDBCSCharSize]; 69StubHelpers.CheckStringLength(strManaged.Length); 80nb = (strManaged.Length + 1) * Marshal.SystemMaxDBCSCharSize; 140StubHelpers.CheckStringLength(strManaged.Length); 151nb = (strManaged.Length + 1) * MAX_UTF8_CHAR_SIZE; 252StubHelpers.CheckStringLength(strManaged.Length); 257uint lengthInBytes = (uint)strManaged.Length * 2; 294(strManaged.Length + 1) * 2); 376cch = strManaged.Length; 440int length = strManaged.Length; 555int hrCreate = System.Runtime.InteropServices.WindowsRuntime.UnsafeNativeMethods.WindowsCreateString(managed, managed.Length, &hstring); 580int hrCreate = System.Runtime.InteropServices.WindowsRuntime.UnsafeNativeMethods.WindowsCreateStringReference(pManaged, managed.Length, hstringHeader, &hstring); 686return CreateNativeUriInstanceHelper(pManaged, rawUri.Length); 1114StubHelpers.CheckStringLength(pManagedHome.Length); 1116int allocSize = (pManagedHome.Length + 1) * 2; 1446int hrCreate = System.Runtime.InteropServices.WindowsRuntime.UnsafeNativeMethods.WindowsCreateString(typeName, typeName.Length, &pNativeType->typeName);
system\text\asciiencoding.cs (2)
99return GetByteCount(pChars, chars.Length, null); 142if (chars.Length - charIndex < charCount)
system\text\decoderreplacementfallback.cs (6)
32for (int i = 0; i < replacement.Length; i++) 87return strDefault.Length; 133if (strDefault.Length == 0) 136fallbackCount = strDefault.Length; 162Contract.Assert(fallbackIndex < strDefault.Length && fallbackIndex >= 0, 208return strDefault.Length;
system\text\encoderreplacementfallback.cs (5)
34for (int i = 0; i < replacement.Length; i++) 89return strDefault.Length; 143fallbackCount = strDefault.Length/2; 169fallbackCount = strDefault.Length; 195Contract.Assert(fallbackIndex < strDefault.Length && fallbackIndex >= 0,
system\text\encoding.cs (1)
1070int bytesReceived = GetBytes(s, 0, s.Length, bytes, 0);
system\text\encodingnls.cs (2)
85return GetByteCount(pChars, s.Length, null); 124if (s.Length - charIndex < charCount)
system\text\normalization.cs (3)
198strInput.Length); 233int iLength = nativeNormalizationNormalizeString(normForm, ref iError, strInput, strInput.Length, null, 0); 270strInput.Length,
system\text\stringbuilder.cs (29)
112: this(value, 0, ((value != null) ? value.Length : 0), capacity) { 136if (startIndex > value.Length - length) { 215if (persistedMaxCapacity < 1 || persistedString.Length > persistedMaxCapacity) { 222if (persistedCapacity < persistedString.Length) { 223persistedCapacity = persistedString.Length; 229if (persistedCapacity < 0 || persistedCapacity < persistedString.Length || persistedCapacity > persistedMaxCapacity) { 236persistedString.CopyTo(0, m_ChunkChars, 0, persistedString.Length); 237m_ChunkLength = persistedString.Length; 353if ((uint)(chunkLength + chunkOffset) <= ret.Length && (uint)chunkLength <= (uint)sourceArray.Length) 642int valueLen = value.Length; 676Append(valueChars, value.Length); 730if (startIndex > value.Length - count) { 834if (value == null || value.Length == 0 || count == 0) { 840long insertingChars = (long) value.Length * count; 853ReplaceInPlaceAtChunk(ref chunk, ref indexInChunk, valuePtr, value.Length); 1048Insert(index, sourcePtr, value.Length); 1330int len = format.Length; 1471int pad = width - s.Length; 1552if (oldValue.Length == 0) 1560int deltaLength = newValue.Length - oldValue.Length; 1585indexInChunk += oldValue.Length; 1586count -= oldValue.Length; 1601ReplaceAllInChunk(replacements, replacementsCount, chunk, oldValue.Length, newValue); 1603index += ((newValue.Length - oldValue.Length) * replacementsCount); 1738int delta = (value.Length - removeCount) * replacementsCount; 1751ReplaceInPlaceAtChunk(ref targetChunk, ref targetIndexInChunk, valuePtr, value.Length); 1787for (int i = 0; i < value.Length; i++)
system\text\unicodeencoding.cs (2)
136return GetByteCount(pChars, s.Length, null); 179if (s.Length - charIndex < charCount)
system\text\utf32encoding.cs (2)
140return GetByteCount(pChars, s.Length, null); 182if (s.Length - charIndex < charCount)
system\text\utf7encoding.cs (4)
76int count = directChars.Length; 84count = optionalChars.Length; 205return GetByteCount(pChars, s.Length, null); 249if (s.Length - charIndex < charCount)
system\text\utf8encoding.cs (2)
168return GetByteCount(pChars, chars.Length, null); 211if (s.Length - charIndex < charCount)
system\threading\eventwaithandle.cs (7)
59if(null != name && System.IO.Path.MAX_PATH < name.Length) 84if(null != name && 0 != name.Length && Win32Native.ERROR_INVALID_HANDLE == errorCode) 105if(null != name && System.IO.Path.MAX_PATH < name.Length) 146if(null != name && 0 != name.Length && Win32Native.ERROR_INVALID_HANDLE == errorCode) 228if(name.Length == 0) 233if(null != name && System.IO.Path.MAX_PATH < name.Length) 256if(null != name && 0 != name.Length && Win32Native.ERROR_INVALID_HANDLE == errorCode)
system\threading\mutex.cs (6)
63if(null != name && System.IO.Path.MAX_PATH < name.Length) 92if (null != name && Path.MAX_PATH < name.Length) 193if(null != m_name && 0 != m_name.Length && Win32Native.ERROR_INVALID_HANDLE == errorCode) 359if(name.Length == 0) 363if(System.IO.Path.MAX_PATH < name.Length) 395if (null != name && 0 != name.Length && Win32Native.ERROR_INVALID_HANDLE == errorCode)
system\threading\Tasks\TPLETWProvider.cs (1)
648eventPayload[1].Size = ((OperationName.Length + 1) * 2);
system\threading\thread.cs (1)
1509InformThreadNameChange(GetNativeHandle(), value, (value != null) ? value.Length : 0);
system\timezoneinfo.cs (21)
890if (source.Length == 0) { 1956else if (id.Length == 0 || id.Length > c_maxKeyLength || id.Contains("\0")) { 2938if (id.Length == 0) { 3731if (m_currentTokenStartIndex < 0 || m_currentTokenStartIndex >= m_serializedText.Length) { 3737for (int i = m_currentTokenStartIndex; i < m_serializedText.Length; i++) { 3755if (m_currentTokenStartIndex >= m_serializedText.Length) { 3805if (m_currentTokenStartIndex < 0 || m_currentTokenStartIndex >= m_serializedText.Length) { 3812for (int i = m_currentTokenStartIndex; i < m_serializedText.Length; i++) { 3844if (m_currentTokenStartIndex >= m_serializedText.Length) { 3873m_currentTokenStartIndex = m_serializedText.Length; 3948if (m_currentTokenStartIndex < 0 || m_currentTokenStartIndex >= m_serializedText.Length) { 3972if (m_currentTokenStartIndex < 0 || m_currentTokenStartIndex >= m_serializedText.Length) { 3995if (m_state == State.EndOfLine || m_currentTokenStartIndex >= m_serializedText.Length) { 4005if (m_state == State.EndOfLine || m_currentTokenStartIndex >= m_serializedText.Length) { 4032if (m_currentTokenStartIndex >= m_serializedText.Length) { 4052|| (m_currentTokenStartIndex < m_serializedText.Length 4060if (m_currentTokenStartIndex < 0 || m_currentTokenStartIndex >= m_serializedText.Length) { 4109if (m_state == State.EndOfLine || m_currentTokenStartIndex >= m_serializedText.Length) { 4127if (m_currentTokenStartIndex < m_serializedText.Length 4141if (m_currentTokenStartIndex >= m_serializedText.Length) {
system\typenameparser.cs (3)
87if (typeName.Length > 0 && typeName[0] == '\0') 145if (asmName.Length > 0) 211Contract.Requires(asmName != null && asmName.Length > 0);
system\unityserializationholder.cs (4)
270if (m_data == null || m_data.Length == 0) 276if (m_assemblyName.Length == 0) 288if (m_data == null || m_data.Length == 0) 307if (m_data == null || m_data.Length == 0)
system\unsafecharbuffer.cs (3)
41if ( (m_totalSize - m_length) < stringToAppend.Length ) { 46Buffer.Memcpy( (byte*) (m_buffer + m_length), (byte *) pointerToString, stringToAppend.Length * sizeof(char)); 49m_length += stringToAppend.Length;
PresentationBuildTasks (113)
Base\MS\Internal\IO\Packaging\Compoundfile\ContainerUtilities.cs (1)
143strByteLen = outputString.Length * 2;
Base\System\IO\Packaging\Compoundfile\FormatVersion.cs (1)
88if (featureId.Length == 0)
Base\System\Windows\Markup\RuntimeIdentifierPropertyAttribute.cs (1)
113for (int i = 0; i < name.Length; i++)
Base\System\Windows\Markup\TypeConverterHelper.cs (1)
94"Get" + methodInfo.Name.Substring("Set".Length),
Base\System\Windows\Markup\XmlCompatibilityReader.cs (1)
971int length = pair.Length;
BuildTasks\Microsoft\Build\Tasks\Windows\MarkupCompilePass1.cs (2)
1077if (relPath.Length > 0) 1334if (ApplicationFile != null && ApplicationFile.Length > 0)
BuildTasks\Microsoft\Build\Tasks\Windows\MarkupCompilePass2.cs (1)
540if (relPath.Length > 0)
BuildTasks\Microsoft\Build\Tasks\Windows\UidManager.cs (3)
536reader.LinePosition + reader.Name.Length, 1299get { return (Index == Content.Length); } 1327Index = Content.Length;
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (37)
238if (cu.ApplicationFile.Path != null && cu.ApplicationFile.Path.Length > 0) 243if (ApplicationFile.Length > 0) 265if (SourceFileInfo.RelativeSourceFilePath.Length > 0) 474if (TargetPath.Length > 0) 487if (targetPath.Length > 0 && !Directory.Exists(targetPath)) 665if (codeProvider.Supports(GeneratorSupport.PartialTypes) && _ccRoot.SubClass.Length == 0) 1324if (refasm != null && refasm.Path.Length > 0) 1338asmMissing += (asmMissing.Length > 0 ? ", " : string.Empty) + "PresentationCore"; 1342asmMissing += (asmMissing.Length > 0 ? ", " : string.Empty) + "PresentationFramework"; 1345if (asmMissing.Length > 0) 1390if (ns != null && ns.Length > 0) 1427if (className.Length > 0) 1447if (typeArgs.Length == 0) 1506if (className.Length == 0 ||!NameValidationHelper.IsValidIdentifierName(className)) 1516if (ns.Length > 0) 1547if (handler.Length == 0) 1564string relPath = TargetPath.Substring(SourceFileInfo.SourcePath.Length); 1596if (_private.Length == 0) 1662if (modifier.Length > 0) 1664if (_privateClass.Length == 0) 1877bool subClassed = _ccRoot.SubClass.Length > 0; 1923bool subClassed = _ccRoot.SubClass.Length > 0; 1979Debug.Assert(_ccRoot != null && _ccRoot.SubClass.Length > 0); 2185if (codeText == null || codeText.Trim().Length == 0) 2212if (localTypeArgNamespace.Length == 0 && localTypeArgClassName.Length == 0) 2251if (genericName.Length > 0 || t.IsGenericType) 2253Debug.Assert(genericName.Length > 0 || t.IsGenericTypeDefinition); 2257Debug.Assert(genericName.Length == 0 && typeArgsList != null); 2416else if (baseClassFullName.Length > 0) 2472else if (IsCompilingEntryPointClass && className.Length == 0) 2898if (className.Length > 0) 2902else if (subClassFullName.Length > 0) 2906else if (modifier.Length > 0) 2929if (subClassFullName.Length > 0) 3037string appClassName = _ccRoot.SubClass.Length > 0 ? _ccRoot.SubClass 3112if (ApplicationFile.Length > 0)
BuildTasks\Ms\Internal\MarkupCompiler\ParserExtension.cs (4)
204if (localElementFullName.Length > 0 && !_pass2) 251if (xamlUnknownAttributeNode.OwnerTypeFullName.Length > 0) 347if (localTagFullName.Length > 0 && !_pass2) 758if ((xamlPIMappingNode.AssemblyName == null) || (xamlPIMappingNode.AssemblyName.Length == 0))
BuildTasks\MS\Internal\Tasks\CompilerWrapper.cs (1)
401relPath = fullFilePath.Substring(_sourceDir.Length);
BuildTasks\MS\Internal\Tasks\TaskHelper.cs (5)
133relPath = fullpath2.Substring (fullpath1.Length); 151if (str != null && str.Length > 0) 174if (str != null && str.Length > 0) 198if (name != null && name.Length > 0) 292int length = assemblyPath.Length;
Core\CSharp\MS\internal\Media\XamlSerializationHelper.cs (2)
393List<ThreeDoublesMarkup> resource = new List<ThreeDoublesMarkup>( source.Length/ 8 ) ; // SWAG the length of the collection. 419List<Point> resource = new List<Point>(source.Length/ 8 ); // SWAG the length of the collection.
Core\CSharp\System\Windows\Media\Knowncolors.cs (1)
295switch (colorUpper.Length)
Core\CSharp\System\Windows\Media\ParsersCommon.cs (5)
131while ((curIndex < pathString.Length) && Char.IsWhiteSpace(pathString, curIndex)) 137if (curIndex < pathString.Length) 145while ((curIndex < pathString.Length) && Char.IsWhiteSpace(pathString, curIndex)) 152if ((curIndex == pathString.Length) || 536_pathLength = pathString.Length;
Framework\MS\Internal\Globalization\LocalizationComments.cs (3)
101for (int i = 0; i < input.Length; i++) 227for (int i = 0; i < input.Length; i ++) 373enumName = enumName.Substring(_enumPrefix.Length);
Framework\System\Windows\Markup\BamlMapTable.cs (1)
1034Debug.Assert(assemblyFullName.Length != 0, "empty assembly");
Framework\System\Windows\Markup\MarkupExtensionParser.cs (5)
134if (attrValue.Length < 2) 360int length = attrValue.Length; 956int length = args.Length; 1638for (int i = 0; i < value.Length; i++) 1644builder = new StringBuilder(value.Length);
Framework\System\Windows\Markup\ParserContext.cs (1)
449if (parserContext.XmlSpace != null && parserContext.XmlSpace.Length != 0)
Framework\System\Windows\Markup\StyleXamlParser.cs (4)
178if (localElementFullName.Length == 0 || !IsLocalPass1) 262if (xamlUnknownAttributeNode.OwnerTypeFullName.Length > 0) 322if (localTagFullName.Length == 0 || !IsLocalPass1) 1193for (int i = 0; i< xamlTextNode.Text.Length; i++)
Framework\System\Windows\Markup\TemplateXamlParser.cs (4)
192if (localElementFullName.Length == 0 || !IsLocalPass1) 298if (xamlUnknownAttributeNode.OwnerTypeFullName.Length > 0) 358if (localTagFullName.Length == 0 || !IsLocalPass1) 1324for (int i = 0; i< xamlTextNode.Text.Length; i++)
Framework\System\Windows\Markup\XamlBrushSerializer.cs (1)
146if (stringValue.Length > 3)
Framework\System\Windows\Markup\XamlParser.cs (1)
783if (xamlPIMappingNode.AssemblyName.Length == 0)
Framework\System\Windows\Markup\XamlReaderHelper.cs (12)
2232prefix = attribName.Substring(NamespacePrefix.Length); 2380MappingParser parser = new MappingParser(mappingUri, MappingProtocol.Length); 2389bool isLocalAssembly = assemblyName == null || assemblyName.Length < 1; 2519return len == value.Length && String.CompareOrdinal(value, 0, _text, _start, len) == 0; 3219"Set" + methodInfo.Name.Substring("Get".Length), 3527null != methodInfo.DeclaringType.GetMethod("Set" + methodInfo.Name.Substring("Get".Length), 5438for (int i = 0; i < text.Length; i++) 5453Debug.Assert(currentPos > 0 && currentPos < s.Length - 1); 5525int textLength = text.Length; 5536StringBuilder collapsedTextStringBuilder = new StringBuilder(text.Length); 6341if (null != textFlowData.TextNode && textFlowData.TextNode.Text.Length > 0) 6352if (collapsedText.Length > 0)
Framework\System\Windows\Markup\XamlTypeMapper.cs (7)
816for (int i = 0; i < attribValue.Length; i++) 1946if( xmlLangPropertyName != null && xmlLangPropertyName.Length > 0) 2197return methodInfo.Name.Substring("Get".Length); 2369else if (!isTypeExpected && prefix.Length == 0) 3845if (keyString.Length > 0 && 3847Char.IsWhiteSpace(keyString[keyString.Length-1]))) 4561if (null == _assembly && _assemblyName.Length > 0)
Framework\System\Windows\Markup\XmlnsDictionary.cs (4)
723if (xmlNamespace.Length > 0 || prefix.Length > 0) 748if (prefix.Length > 0 || _nsDeclarations[thisDecl].Uri.Length > 0)
Framework\System\Windows\SystemResourceKey.cs (1)
376srkField = memberName.Remove(memberName.Length - 3);
Shared\MS\Internal\ResourceIDHelper.cs (1)
72resourceID = sourcePath.Substring(basePath.Length);
Shared\MS\Internal\TokenizerHelper.cs (2)
95_strLen = str == null ? 0 : str.Length; 348if ((numberFormat.NumberDecimalSeparator.Length > 0) && (numericSeparator == numberFormat.NumberDecimalSeparator[0]))
PresentationCore (139)
Core\CSharp\MS\Internal\FontCache\CanonicalFontFamilyReference.cs (1)
193if (familyNameIndex < normalizedString.Length)
Core\CSharp\MS\Internal\FontCache\DWriteFactory.cs (2)
99if (String.Compare(((localPath.Length > 0 && localPath[localPath.Length - 1] != Path.DirectorySeparatorChar) ? localPath + Path.DirectorySeparatorChar : localPath), Util.WindowsFontsUriObject.LocalPath, StringComparison.OrdinalIgnoreCase) == 0)
Core\CSharp\MS\Internal\FontCache\FamilyCollection.cs (1)
496if (familyName == null || familyName.Length == 0)
Core\CSharp\MS\Internal\FontCache\FontCacheUtil.cs (4)
598length = s.Length; 787return NormalizeFontFamilyReference(fontFamilyReference, 0, fontFamilyReference.Length); 888int aLength = a.Length; 889int bLength = b.Length;
Core\CSharp\MS\Internal\FontCache\FontResourceCache.cs (4)
78escapedPath = escapedPath.Substring(0, escapedPath.Length - FakeFileName.Length); 105return path.Length == 0 || path[path.Length - 1] == '/';
Core\CSharp\MS\Internal\FontCache\FontSourceCollection.cs (1)
143_isFileSystemFolder = localPath[localPath.Length - 1] == Path.DirectorySeparatorChar;
Core\CSharp\MS\Internal\FontFace\CompositeFontInfo.cs (1)
187if (matchingLanguage.IetfLanguageTag.Length == 0)
Core\CSharp\MS\Internal\FontFace\CompositeFontParser.cs (1)
142if (s.Length > 1 && s[1] == '}')
Core\CSharp\MS\Internal\FontFace\FontFamilyIdentifier.cs (1)
311int length = friendlyName.Length;
Core\CSharp\MS\Internal\IListConverters.cs (4)
111List<double> list = new List<double>(Math.Min(256, value.Length / EstimatedCharCountPerItem + 1)); 154List<ushort> list = new List<ushort>(Math.Min(256, value.Length / EstimatedCharCountPerItem + 1)); 195List<bool> list = new List<bool>(Math.Min(256, value.Length / EstimatedCharCountPerItem + 1)); 237List<Point> list = new List<Point>(Math.Min(256, value.Length / EstimatedCharCountPerItem + 1));
Core\CSharp\MS\Internal\IO\Packaging\ByteRangeDownloader.cs (4)
75if (tempFileName.Length <= 0) 867if (contentRange.Length == 0 882int firstByteOffset = Int32.Parse(contentRange.Substring(ByteRangeUnit.Length, 883index - ByteRangeUnit.Length),
Core\CSharp\MS\Internal\TextFormatting\NumberSubstitution.cs (3)
215if (d.Length != 1 || d[0] != (char)('0' + i)) 618if (s.Length == 1) 622else if (s.Length == 2 &&
Core\CSharp\MS\Internal\TextFormatting\TextMarkerSource.cs (1)
281int b = numericSymbols.Length;
Core\CSharp\System\Windows\DataObject.cs (8)
2156sizeInBytes += (files[i].Length + 1) * 2; 2191UnsafeNativeMethods.CopyMemoryW(currentPtr, files[i], files[i].Length * 2); 2192currentPtr = (IntPtr)((long)currentPtr + (files[i].Length * 2)); 2235byteSize = (str.Length*2 + 2); 2247chars = str.ToCharArray(0, str.Length); 2275if (str.Length > 0) 2277pinvokeSize = Win32WideCharToMultiByte(str, str.Length, null, 0); 2288Win32WideCharToMultiByte(str, str.Length, strBytes, strBytes.Length);
Core\CSharp\System\Windows\FontStretches.cs (1)
74switch (s.Length)
Core\CSharp\System\Windows\FontWeights.cs (1)
104switch (s.Length)
Core\CSharp\System\Windows\Ink\StrokeCollectionConverter.cs (1)
97if (text.Length != 0)
Core\CSharp\System\Windows\Input\AccessKeyManager.cs (2)
345if ((text == null) || (text.Length == 0)) 350if ((text != null) && (text.Length > 0))
Core\CSharp\System\Windows\Input\Command\RoutedCommand.cs (1)
64if (name.Length == 0)
Core\CSharp\System\Windows\Input\DefaultTextStore.cs (2)
169if (result.Length > 0) 201if (comp.Length > 0)
Core\CSharp\System\Windows\Input\TextComposition.cs (1)
342Debug.Assert((_resultText.Length == 1) && Char.IsControl(_resultText[0]));
Core\CSharp\System\Windows\Interop\HwndSource.cs (1)
2373if ((text != null) && (text.Length > 0))
Core\CSharp\System\Windows\Markup\XamlSerializerUtil.cs (1)
54for (int i = 0; i < s.Length; i++)
Core\CSharp\System\Windows\Markup\XmlLanguage.cs (13)
234if (_lowerCaseTag.Length == 0 || String.CompareOrdinal(_lowerCaseTag, "und") == 0) 242if (culture.IetfLanguageTag.Length == 0) 437if (languageTag.Length > 0) 448int tagLength = languageTag.Length; 555else if (_current.IetfLanguageTag.Length == 0) 649return (prefix.Length == 0 || prefix.Length == longTag.Length || longTag[prefix.Length] == '-'); 691if (languageTag.Length == 0) 696int i = languageTag.Length - 1; 733if (ietfLanguageTag.Length > 0) 820int length = tag.Length;
Core\CSharp\System\Windows\Media\Animation\KeyTimeConverter.cs (1)
92else if (stringValue[stringValue.Length - 1] == _percentCharacter[0])
Core\CSharp\System\Windows\Media\Animation\RepeatBehaviorConverter.cs (2)
84else if ( stringValue.Length > 0 85&& stringValue[stringValue.Length - 1] == _iterationCharacter[0])
Core\CSharp\System\Windows\Media\CharacterMetrics.cs (3)
157while (i < s.Length && s[i] == ' ') 162while (j < s.Length && s[j] != ',') 192if (j < s.Length)
Core\CSharp\System\Windows\Media\CharacterMetricsDictionary.cs (1)
518if (!FontFamilyMap.ParseHexNumber(s, ref i, out value) || i < s.Length)
Core\CSharp\System\Windows\Media\FamilyMap.cs (7)
250while (index < unicodeRanges.Length) 260if (index < unicodeRanges.Length) 270index < unicodeRanges.Length && 286(index<unicodeRanges.Length && unicodeRanges[index] !=',')) 304while (index<numString.Length && numString[index] == ' ') 313while (index < numString.Length) 338while (index < numString.Length && numString[index] == ' ')
Core\CSharp\System\Windows\Media\FontFamilyConverter.cs (2)
69return fontFamily != null && fontFamily.Source != null && fontFamily.Source.Length != 0; 95if (s == null || s.Length == 0)
Core\CSharp\System\Windows\Media\FontFamilyValueSerializer.cs (1)
58return fontFamily != null && fontFamily.Source != null && fontFamily.Source.Length != 0;
Core\CSharp\System\Windows\Media\FormattedText.cs (22)
249_latestPosition = _formatRuns.SetValue(0, _text.Length, runProps, _latestPosition); 316if (startIndex < 0 || startIndex > _text.Length) 321if (count < 0 || limit < startIndex || limit > _text.Length) 339SetForegroundBrush(foregroundBrush, 0, _text.Length); 389SetFontFamily(fontFamily, 0, _text.Length); 412SetFontFamily(fontFamily, 0, _text.Length); 468SetFontSize(emSize, 0, _text.Length); 521SetCulture(culture, 0, _text.Length); 577SetNumberSubstitution(numberSubstitution, 0, _text.Length); 641SetFontWeight(weight, 0, _text.Length); 693SetFontStyle(style, 0, _text.Length); 746SetFontStretch(stretch, 0, _text.Length); 799SetFontTypeface(typeface, 0, _text.Length); 851SetTextDecorations(textDecorations, 0, _text.Length); 1020if (_that._text.Length == 0) 1065if (_textStorePosition + _currentLine.Length < _that._text.Length) 1147Debug.Assert(_that._text.Length > 0 && textSourcePosition + line.Length <= _that._text.Length + 1); 1152Math.Min(textSourcePosition + line.Length - 1, _that._text.Length - 1) 1602return BuildHighlightGeometry(origin, 0, _text.Length); 1774if (_text.Length == 0) 1880if (textSourceCharacterIndex >= _that._text.Length)
Core\CSharp\System\Windows\Media\GlyphsSerializer.cs (1)
309Debug.Assert(caretStopStringLength == sb.ToString().Length);
Core\CSharp\System\Windows\Media\KnownColors.cs (5)
240if (((trimmedString.Length == 4) || 241(trimmedString.Length == 5) || 242(trimmedString.Length == 7) || 243(trimmedString.Length == 9)) && 295switch (colorUpper.Length)
Core\CSharp\System\Windows\Media\Parsers.cs (7)
61if ( trimmedColor.Length > 7 ) 68else if ( trimmedColor.Length > 5) 74else if (trimmedColor.Length > 4) 108string tokens = trimmedColor.Substring(s_ContextColor.Length); 116tokens = tokens.Substring(preSplit[0].Length); 164string tokens = trimmedColor.Substring(3, trimmedColor.Length - 3); 265if (trimmedColor.Length == 0)
Core\CSharp\System\Windows\Media\ParsersCommon.cs (5)
131while ((curIndex < pathString.Length) && Char.IsWhiteSpace(pathString, curIndex)) 137if (curIndex < pathString.Length) 145while ((curIndex < pathString.Length) && Char.IsWhiteSpace(pathString, curIndex)) 152if ((curIndex == pathString.Length) || 536_pathLength = pathString.Length;
Core\CSharp\System\Windows\Media\SolidColorBrush.cs (1)
131if (stringValue.Length > 3)
Core\CSharp\System\Windows\Media\TextFormatting\CharacterString.cs (1)
150charString.Length
Core\CSharp\System\Windows\Media\TextFormatting\TextCharacters.cs (1)
73(characterString == null) ? 0 : characterString.Length,
Core\CSharp\System\Windows\Navigation\BaseUriHelper.cs (2)
430string.Compare(uri.OriginalString, 0, Uri.UriSchemeFile, 0, Uri.UriSchemeFile.Length, StringComparison.OrdinalIgnoreCase) != 0) 688int byteCount = assemblyKey.Length / 2;
Core\CSharp\system\windows\TextDecorationCollectionConverter.cs (13)
118while (index >= 0 && index < text.Length) 123index = AdvanceToNextNonWhiteSpace(text, index + None.Length); 124if (textDecorations.Count > 0 || index < text.Length) 156index = AdvanceToNextNameStart(text, index + TextDecorationNames[i].Length); 213i < pattern.Length 214&& index + i < input.Length 218return (i == pattern.Length); 230if (separator >= input.Length) 233nextNameStart = input.Length; 240if (nextNameStart >= input.Length) 262for (; index < input.Length && Char.IsWhiteSpace(input[index]); index++) ; 263return (index > input.Length) ? input.Length : index;
Shared\MS\Internal\CharacterBuffer.cs (4)
323get { return _string.Length; } 385Debug.Assert(characterOffset >= 0 && characterOffset < _string.Length, "Invalid character index"); 388|| characterOffset + characterLength > _string.Length) 390characterLength = _string.Length - characterOffset;
PresentationFramework (418)
parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (3)
81if (frameworkName == null || frameworkName.Length == 0) 100if (identifier.Length == 0) 133if (value.Length > 0 && (value[0] == c_versionValuePrefix || value[0] == 'V'))
src\Framework\Microsoft\Win32\FileDialog.cs (8)
266else if (value.Length == 0) // Normalize empty strings to null. 1439if (fileName.Length == 0) 1466bool isFullPath = (fileName.Length > 3 && 1639Invariant.Assert(currentExtension.Length == 0 || currentExtension.StartsWith(".", StringComparison.Ordinal), 1651StringBuilder s = new StringBuilder(fileName.Substring(0, fileName.Length - currentExtension.Length)); 1730if (_fileNames[0].Length > 0) 1851extensions.Add(ext.Substring(i + 1, ext.Length - (i + 1)));
src\Framework\MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (2)
412return (newValue != null && newValue.Length == 0) ? null : value; 429if ((nodeId == null) || (nodeId.Length == 0))
src\Framework\MS\Internal\AppModel\ApplicationProxyInternal.cs (1)
304fragment = fragment.Substring(FRAGMENT_MARKER.Length);
src\Framework\MS\Internal\AppModel\DeploymentExceptionMapper.cs (1)
143version = String.Copy(excpMsg.Substring(index + versionString.Length));
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (1)
733for (int i=0; i < rawString.Length; i++)
src\Framework\MS\Internal\Data\PathParser.cs (2)
87_n = _path.Length; 218SourceValueInfo info = (name.Length > 0)
src\Framework\MS\Internal\Data\XmlBindingWorker.cs (4)
70if (XPath.Length > 0) 135if (XPath.Length == 0) 451if (XPath.Length == 0) 570int n = xpath.Length;
src\Framework\MS\Internal\Globalization\BamlResourceContent.cs (5)
37for (int i = 0; i < content.Length; i++) 120Debug.Assert(match.Value.Length > 0 && match.Value[0] == BamlConst.EscapeChar); 121if (match.Value.Length == 2) 144for (int i = 0; i < input.Length; i++) 196if (tokenStart < input.Length)
src\Framework\MS\Internal\Globalization\BamlTreeMap.cs (6)
451|| assembly == null || assembly.Length == 0 452|| className == null || className.Length == 0) 485|| assembly == null || assembly.Length == 0 486|| className == null || className.Length == 0 487|| property == null || property.Length == 0) 544if (className == null || className.Length == 0)
src\Framework\MS\Internal\Globalization\LocalizableResourceBuilder.cs (1)
360if (className == null || className.Length == 0)
src\Framework\MS\Internal\Globalization\LocalizationComments.cs (3)
101for (int i = 0; i < input.Length; i++) 227for (int i = 0; i < input.Length; i ++) 373enumName = enumName.Substring(_enumPrefix.Length);
src\Framework\MS\Internal\Ink\XamlClipboardData.cs (1)
122Debug.Assert(setString.Length > 0);
src\Framework\MS\Internal\Interop\InternalDispatchObject.cs (1)
139int dispid = int.Parse(name.Substring(8, name.Length-9), CultureInfo.InvariantCulture);
src\Framework\MS\Internal\IO\Packaging\indexingfiltermarshaler.cs (4)
120if ((uint)(s.Length) > bufCharacterCount - 1) 124bufCharacterCount = (UInt32)s.Length + 1; 127Marshal.Copy(s.ToCharArray(), 0, p, s.Length); 130Marshal.WriteInt16(p, s.Length * _int16Size, 0);
src\Framework\MS\Internal\IO\Packaging\PackageFilter.cs (1)
566Debug.Assert(contentType != null && contentType.ToString().Length > 0);
src\Framework\MS\Internal\IO\Packaging\XamlFilter.cs (7)
305int numCharactersToReturn = _currentContent.Length - _countOfCharactersReturned; 630if (title != null && title.Length > 0) 648if (content != null && content.Length > 0) 781if (textContent == null || textContent.Length == 0) 815if (_xamlReader.XmlLang.Length > 0) 868if (languageString.Length == 0) 884if (languageString.Length == 0)
src\Framework\MS\Internal\IO\Packaging\XmlGlyphRunInfo.cs (1)
178if (languageString != null && languageString.Length > 0)
src\Framework\MS\Internal\LayoutDump.cs (1)
605int cpEnd = content.Length;
src\Framework\MS\Internal\Markup\StaticExtension.cs (1)
103Member = Member.Substring(dotIndex + 1, Member.Length - dotIndex - 1);
src\Framework\MS\Internal\Printing\Win32PrintDialog.cs (1)
140bool isRtlCaption = caption != null && caption.Length > 0 && caption[0] == RightToLeftMark;
src\Framework\MS\Internal\PtsHost\Line.cs (1)
221precedingText = new CharacterBufferRange(precedingTextString, 0, precedingTextString.Length);
src\Framework\MS\Internal\PtsHost\ListMarkerSourceInfo.cs (3)
167int b = numericSymbols.Length; 302if (romanString.Length > largestIndexSize) 305largestIndexSize = romanString.Length;
src\Framework\MS\Internal\PtsHost\OptimalTextSource.cs (1)
171precedingText = new CharacterBufferRange(precedingTextString, 0, precedingTextString.Length);
src\Framework\MS\Internal\Text\ComplexLine.cs (1)
109precedingText = new CharacterBufferRange(precedingTextString, 0, precedingTextString.Length);
src\Framework\MS\Internal\Text\SimpleLine.cs (3)
47if (dcp < _content.Length) 62run = new TextCharacters(_content, dcp, _content.Length - dcp, _textProps); 92Math.Min(dcp, _content.Length)
src\Framework\MS\Internal\TraceData.cs (2)
281name = name.Substring(0, name.Length - suffix.Length);
src\Framework\MS\Internal\Utility\BindUriHelper.cs (1)
190if (frag != null && frag.Length > 0)
src\Framework\System\Windows\Annotations\Annotation.cs (1)
550if (reader.Prefix.Length == 0)
src\Framework\System\Windows\Annotations\Storage\XmlStreamStore.cs (1)
577Invariant.Assert(queryExpression != null && queryExpression.Length > 0,
src\Framework\System\Windows\ColorConvertedBitmapExtension.cs (1)
53if (str.Length > 0)
src\Framework\System\Windows\Controls\AccessText.cs (6)
113return (_accessKey != null && _accessKey.Text.Length > 0) ? _accessKey.Text[0] : (char)0; 585if(index != -1 && index < text.Length - 1) 588TextPointer keyEnd = navigator.GetPositionAtOffset(index + 1 + keyText.Length); 635TextPointer keyEnd = new TextPointer(navigator, text.Length); 661int lenght = text.Length; 684if (index >=0 && index < text.Length - 1)
src\Framework\System\Windows\Controls\ComboBox.cs (2)
721if (selectionStart == newText.Length && 821EditableTextBoxSite.SelectionStart = matchedText.Length - matchedTextInfo.TextExcludingPrefixLength;
src\Framework\System\Windows\Controls\DataGridClipboardHelper.cs (2)
101int length = s.Length; 162int cb = s.Length;
src\Framework\System\Windows\Controls\DataGridHelper.cs (1)
735for (int i = 0, count = text.Length; i < count; i++)
src\Framework\System\Windows\Controls\DataGridHyperlinkColumn.cs (1)
235textBox.Select(inputText.Length, 0);
src\Framework\System\Windows\Controls\DataGridLengthConverter.cs (3)
223int strLen = goodString.Length; 237strLenUnit = unitString.Length; 255strLenUnit = unitString.Length;
src\Framework\System\Windows\Controls\DataGridTextColumn.cs (1)
184textBox.Select(inputText.Length, 0);
src\Framework\System\Windows\Controls\DefinitionBase.cs (2)
563while (++i < id.Length) 576if (i == id.Length)
src\Framework\System\Windows\Controls\ItemContainerGenerator.cs (2)
118if (label == null || label.Length == 0) 1136string token = aqn.Substring(index + PublicKeyToken.Length);
src\Framework\System\Windows\Controls\PasswordBox.cs (1)
210for (int i = 0; i < value.Length; i++)
src\Framework\System\Windows\Controls\PasswordTextContainer.cs (2)
92for (i = 0; i < textData.Length; i++) 97OnPasswordChange(offset, textData.Length);
src\Framework\System\Windows\Controls\Primitives\DatePickerTextBox.cs (1)
111Select(0, this.Text.Length);
src\Framework\System\Windows\Controls\TextBlock.cs (2)
2935if (!whitespacesIgnorable || text.Trim().Length > 0) 3919if (content != null && content.Length > 0)
src\Framework\System\Windows\Controls\TextBox.cs (17)
1691if (oldText.Length > 0 && index >= 0) 1697if (oldIndex == oldText.Length) 1698return newText.Length; 1707prefix < oldText.Length && prefix < newText.Length; 1714suffix < oldText.Length && suffix < newText.Length; 1717if (oldText[oldText.Length - 1 - suffix ] != newText[newText.Length - 1 - suffix]) 1722if ( 2*(prefix + suffix) >= Math.Min(oldText.Length, newText.Length)) 1728if (oldIndex >= oldText.Length - suffix) 1729return newText.Length - (oldText.Length - oldIndex); 1757index < newText.Length && oldIndex + (index - anchorIndex) < oldText.Length; 1777return (bestIndex < 0) ? newText.Length : bestIndex;
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (2)
1773if (text.Length == 0) 1884return (text.Length <= maxLength || maxLength == -1) ? text : text.Substring(0, maxLength);
src\Framework\System\Windows\Controls\TextSearch.cs (10)
299Prefix = prefix.Substring(0, prefix.Length - lastChar.Length); 328if (matchedText.Length < newText.Length) 330matchedPrefixLength = matchedText.Length; 336int i = newText.Length; 349textExcludingPrefixLength = matchedText.Length - i; 353if (j <= matchedText.Length) 359textExcludingPrefixLength = matchedText.Length - j; 366} while (i >= 1 || j <= matchedText.Length);
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (1)
12391if (dotIndex < 0) dotIndex = filename.Length;
src\Framework\System\Windows\Controls\WebBrowser.cs (1)
281MemoryStream ms = new MemoryStream(text.Length);
src\Framework\System\Windows\Data\XmlDataProvider.cs (1)
169return (_xPath != null) && (_xPath.Length != 0);
src\Framework\System\Windows\Documents\FixedFindEngine.cs (1)
47if (findPattern.Length == 0)
src\Framework\System\Windows\Documents\FixedPage.cs (2)
672int fragmentLength = (fragment == null) ? 0 : fragment.Length; 1133int fragmentLength = (fragment == null) ? 0 : fragment.Length;
src\Framework\System\Windows\Documents\FixedSchema.cs (3)
166if (uriAttr.Length > 0) 424attrValue = attrValue.Substring(_colorConvertedBitmap.Length); 441attrValue = attrValue.Substring(_contextColor.Length);
src\Framework\System\Windows\Documents\FixedSOMElement.cs (1)
82if (glyphs.UnicodeString.Length > 0)
src\Framework\System\Windows\Documents\FixedSOMPageConstructor.cs (6)
414if (s.Length == 0 || 444charIndex = s.IndexOf(" ", charIndex+1, s.Length - charIndex -1, StringComparison.Ordinal); 481if ((charIndex == 0 || s[charIndex-1] == ' ') && (charIndex != s.Length - 1)) 500} while (charIndex >= 0 && charIndex < s.Length-1); 502if (textRunStartIndex < s.Length) 513s.Length);
src\Framework\System\Windows\Documents\FixedSOMTextRun.cs (6)
158startIndex == 0 && endIndex == s.Length 162char[] chars = new char[run.Text.Length]; 163for (int i=0; i<run.Text.Length; i++) 165chars[i] = run.Text[run.Text.Length - 1 - i]; 171if (s == "" && glyphs.Indices != null && glyphs.Indices.Length > 0) 178for (int i = 0; i < s.Length; i++)
src\Framework\System\Windows\Documents\FixedTextBuilder.cs (8)
689if (strPrev.Length == 0 || strCurrent.Length == 0) 696int textLength = strPrev.Length; 977if (namedNode != null && namedNode.Name != null && namedNode.Name.Length != 0) 1696Debug.Assert(run.EndIndex - run.StartIndex == run.Text.Length); 1704if (addSpace && run.Text.Length>0 && !run.Text.EndsWith(" ", StringComparison.Ordinal) && !IsHyphen(run.Text[run.Text.Length - 1])) 1724offset += textRun.Text.Length;
src\Framework\System\Windows\Documents\FixedTextView.cs (3)
463int characterCount = (g.UnicodeString == null ? 0 : g.UnicodeString.Length); 624lastIndex = ((Glyphs)element).UnicodeString.Length; 1023charCount = g.UnicodeString.Length;
src\Framework\System\Windows\Documents\Glyphs.cs (11)
248caretStopCount = glyphRunProperties.unicodeString.Length + 1; 542clusterMap = new ushort[unicodeString.Length]; 543estimatedNumberOfGlyphs = unicodeString.Length; 552estimatedNumberOfGlyphs = Math.Max(estimatedNumberOfGlyphs, glyphsProp.Length / 5); 566for (int i = 0; i <= glyphsProp.Length; i++) 569char c = i < glyphsProp.Length ? glyphsProp[i] : '\0'; 572if ((c == ',') || (c == ';') || (i == glyphsProp.Length)) 595if (unicodeString.Length <= parsedCharacterCount) 653if ((c == ';') || (i == glyphsProp.Length)) 685while (parsedCharacterCount < unicodeString.Length) 690if (unicodeString.Length <= parsedCharacterCount)
src\Framework\System\Windows\Documents\ImmComposition.cs (9)
983RecordCaretOffset(caretOffset, attributes, compositionString.Length); 1074return (compositionString.Length == originalLength) ? compositionString : null; 1260_caretOffset = Math.Min(_caretOffset, text.Length); 1493int requestSize = Marshal.SizeOf(typeof(NativeMethods.RECONVERTSTRING)) + (target.Length * Marshal.SizeOf(typeof(short))) + ((_maxSrounding + 1) * Marshal.SizeOf(typeof(short)) * 2); 1506reconv.dwStrLen = surrounding.Length; // in char count 1508reconv.dwCompStrLen = target.Length; // in char count 1510reconv.dwTargetStrLen = target.Length; // in char count 1544Marshal.Copy(surrounding.ToCharArray(), 0, new IntPtr((void*)p), surrounding.Length); 1603offsetStart = surrounding.Length;
src\Framework\System\Windows\Documents\RtfToXamlReader.cs (58)
286for (int i = 0; i < s.Length; i++) 3443if (Name != null && Name.Length > 0) 3445byte[] rgBytes = new byte[Name.Length * 6]; 3446char[] rgChars = new char[Name.Length * 6]; 3452int cb = e.GetBytes(Name, 0, Name.Length, rgBytes, 0); 3455if (cch == Name.Length) 3771if (name.Length > 0 && value.Length > 0) 3783lhs_tag = name.Substring(i + 1, name.Length - i - 1); 3789rhs_tag = value.Substring(i + 1, value.Length - i - 1); 3791if (lhs_name.Length > 0 && rhs_name.Length > 0) 3795if (lhs_tag.Length > 0 && rhs_tag.Length > 0) 3804else if (lhs_tag.Length == 0 && rhs_tag.Length == 0) 3806if (lhs_name.Length > rhs_name.Length) 3808string s = lhs_name.Substring(0, rhs_name.Length); 3817else if (lhs_tag.Length > 0 && rhs_tag.Length == 0) 4883if (entry.Name.Length > 32) 4963if (text == null || text.Length == 0) 4971for (; i < text.Length; i++) 4974for (; i < text.Length; i++) 4978if ((i + 1 == text.Length) // and no trail char 4992if (iStart != 0 || i != text.Length) 5020while (index < text.Length) 5024while (currentIndex < text.Length) 5046if (currentIndex < text.Length) 5373if (NavigateUri != null && NavigateUri.Length > 0) 5804return textdata.Length == 0; 8192if (instructionName.Length > 0 && instructionName[0] == ' ') 8415pictureUri = instructionName.Substring(uriIndex, instructionName.Length - uriIndex - 1); 8445while (i < instr.Length) 8457if (i < instr.Length) 8462for (; iEnd < instr.Length; iEnd++) 8493if (i < instr.Length) 8536return dn.NavigateUri.Length > 0 ? dn : null; 8549while (i < instr.Length) 8560if (instr[i] == '0' && i < instr.Length - 1 && instr[i + 1] == 'x') 8565for (; i < instr.Length && instr[i] != ' ' && instr[i] != '\\'; i++) 8576for (; i < instr.Length && instr[i] != ' ' && instr[i] != '\\'; i++) 8589if (i < instr.Length) 8609return (dn.Xaml != null && dn.Xaml.Length > 0) ? dn : null; 8631if (i < instr.Length && instr[i] == ' ') 8635for (; i < instr.Length && instr[i] != ' '; i++) 8665if (i < instr.Length && instr[i] == ' ') 8669if (i < instr.Length && instr[i] == '"') 8674for (; i < instr.Length && instr[i] != '"'; i++) 8681if (name != null && name.Length > 0) 9809if (token.Text.Length == 0) 11481if (entry != null && tokenName.Length > 0 && !entry.IsNameSealed) 11544while (nStart < text.Length) 11547while (nEnd < text.Length) 11557if (nStart == 0 && nEnd == text.Length) 11568while (nEnd < text.Length && (text[nEnd] == 0x0d || text[nEnd] == 0x0a)) 11572if (nEnd + 1 < text.Length && text[nEnd] == 0x0d && text[nEnd] == 0x0a)
src\Framework\System\Windows\Documents\TextContainer.cs (1)
1557length = textString.Length;
src\Framework\System\windows\Documents\TextEditor.cs (3)
1227if (textData.Length > extraCharsAllowed) 1238if (textData.Length == extraCharsAllowed && Char.IsHighSurrogate(textData, extraCharsAllowed - 1)) 1246if (string.IsNullOrEmpty(textAdjacent) || !Char.IsHighSurrogate(textAdjacent, textAdjacent.Length - 1))
src\Framework\System\windows\Documents\TextEditorContextMenu.cs (1)
553if (suggestion.Length == 1)
src\Framework\System\windows\Documents\TextEditorCopyPaste.cs (8)
154if (xamlTextWithImages.Length > 0) 191if (xamlText.Length > 0) 729args.CanExecute = formatToApply.Length > 0; 1093if (pasteXaml.Length == 0) 1128if (pastedText.Length > 0) 1145for (int i = 0; i < pastedText.Length; i++) 1168if (pastedText[i] == '\r' && i + 1 < pastedText.Length && pastedText[i + 1] == '\n') 1175end.InsertTextInRun(pastedText.Substring(currentLineStart, pastedText.Length - currentLineStart));
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (1)
503dropPosition = (indexInWord < (wordText.Length / 2)) ? wordSegment.Start : wordSegment.End;
src\Framework\System\windows\Documents\TextEditorSpelling.cs (2)
151caretPosition = textStart.CreatePointer(+correctedText.Length, LogicalDirection.Forward); 356for (int i = 0; i < text.Length && !isSelectionIgnoringErrors; i++)
src\Framework\System\windows\Documents\TextEditorTyping.cs (3)
385(e.Text == null || e.Text.Length == 0)) 1554for (int i = 0; i < textData.Length; i++) 1564if (filteredText.Length == 0)
src\Framework\System\Windows\Documents\TextElement.cs (1)
942if (text.Trim().Length > 0)
src\Framework\System\Windows\Documents\TextFindEngine.cs (18)
125SafeNativeMethods.GetStringTypeEx(0 /* ignored */, SafeNativeMethods.CT_CTYPE1, new char[] { charFindPattern[findPattern.Length - 1] }, 1, findPatternEndCharType1); 221int textBlockLength = Math.Max(TextBlockLength, findPattern.Length * 2 * 2); 243if (!matchDiacritics || findTextLength >= findPattern.Length) 294if (findTextLength > findPattern.Length) 298navigator.MoveByOffset(matchLast ? - findTextPositionMap[findText.Length - findTextLength + findPattern.Length] : findTextPositionMap[findTextLength - findPattern.Length]); 429int searchLength = textString.Length; 439matchLength = findPattern.Length; 459searchLength = textString.Length - searchStart; 484int startIndex = matchLast ? textString.Length - 1 : 0; 485int endIndex = matchLast ? -1 : textString.Length; 536for (int j = i; j < textString.Length; j++) 566for (int j = i; j < textString.Length; j++) 568if (compareInfo.Compare(textString, i, j - i + 1, findPattern, 0, findPattern.Length, options) == 0 && 595sourceString, sourceString.Length, findString, findString.Length, out found); 804for (int index = 0; index < textString.Length; index++) 843int textLength = textString.Length;
src\Framework\System\Windows\Documents\TextRangeBase.cs (5)
228if (textFromWordStart.Length >= autoWord.Length) 1039int b = numericSymbols.Length; 1315textData.Length > 0) 1363if (textData.Length > 0)
src\Framework\System\Windows\Documents\TextStore.cs (9)
1354if (result.Length > 0) 1376int cnt = result.Length; 1851if (text.Length != composition.Text.Length) 1863Invariant.Assert(text.Length == composition.CompositionText.Length); 3198if (newText.Length != text.Length) 3696if (textData.Length > extraCharsAllowed)
src\Framework\System\Windows\Documents\XamlToRtfParser.cs (17)
276if (_xamlIndex < _xaml.Length) 330if (token.Text.Length == 0) 355return ((_xamlIndex + index) <= _xaml.Length); 523if (top.Length == 0) 528if (string.Compare(xamlTag, xamlTag.Length, top, top.Length, top.Length, StringComparison.OrdinalIgnoreCase) == 0) 783if (xaml.Length < 2 || xaml[0] != '<' || xaml[xaml.Length - 1] != '>') 814while (xamlIndex < xaml.Length) 823if (xamlIndex == xaml.Length - 1) 831if (xamlIndex == xaml.Length - 2) 854if (xamlIndex < xaml.Length) 863if (xamlIndex == xaml.Length || xaml[xamlIndex] != '=') 887for (; xamlIndex < xaml.Length && xaml[xamlIndex] != quoteChar; xamlIndex++) 892if (xamlIndex == xaml.Length) 987if (xamlIndex == xaml.Length - 1)
src\Framework\System\Windows\Documents\XamlToRtfWriter.cs (32)
844for (int i = 0; i < documentNode.NavigateUri.Length; i++) 2445while (xamlToRtfError == XamlToRtfError.None && index < characters.Length) 2448while (index < characters.Length && IsNewLine(characters[index])) 2455while (end < characters.Length && !IsNewLine(characters[end])) 2628for (int i = 0; i < xaml.Length; ) 2633for (; iEnd < xaml.Length; iEnd++) 2637if (xaml[iEnd] == '\r' && iEnd + 1 < xaml.Length && xaml[iEnd + 1] == '\n') 2649if (iStart == 0 && iEnd == xaml.Length) 2678i = (iEnd == xaml.Length) ? iEnd : iRestart; 2739if (name.Length >= 5) 2741string num = name.Substring(3, name.Length - 4); 2755if (name.Length >= 4) 2757string num = name.Substring(2, name.Length - 3); 3065if (xamlTag == XamlTag.XTHyperlink && valueString.Length > 0) 3486if (tagName.Length == 0) 3498if (s.Length == 0) 3510if (attributeName.Length == 0) 3522if (attributeName.Length == 0) 3553if (s.Length == 0) 3559int n = s.Length - 1; 3566if (n < s.Length - 1) 3578if (units == null || units.Length == 0) 3604if (brush.Length == 0) 3620for (; brushStringIndex < brush.Length && brushStringIndex < 9; brushStringIndex++) 3696if (dirName.Length == 0) 3789if (styleName.Length == 0) 3823while (s < thickness.Length) 3827while (e < thickness.Length && thickness[e] != ',') 3833if (onenum.Length > 0) 3875if (alignName.Length == 0) 3887if (stretchName.Length == 0) 3909for (int i = 0; i < s.Length; i++)
src\Framework\System\Windows\Documents\ZoomPercentageConverter.cs (3)
168if ((!culture.IsNeutralCulture) && (zoomString.Length > 0) && (culture.NumberFormat != null)) 176if (zoomString.Length - 1 == zoomString.LastIndexOf( 180zoomString = zoomString.Substring(0, zoomString.Length - 1);
src\Framework\System\Windows\FrameworkElement.cs (1)
484if( targetName == null || targetName.Length == 0 )
src\Framework\System\Windows\Interop\ActiveXHost.cs (1)
251Debug.Assert(args.Key.Length > 0, "got an empty access key");
src\Framework\System\Windows\Interop\DocobjHost.cs (1)
850if(tempFile.Length <= 0)
src\Framework\System\Windows\LengthConverter.cs (2)
196int strLen = goodString.Length; 211strLenUnit = PixelUnitStrings[i].Length;
src\Framework\System\Windows\Markup\Baml2006\Baml2006Reader.cs (1)
1033for (int i = 0; i < value.Length; i++)
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (1)
291for (int i = 1; i < 15 && i < typeName.Length; i++)
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
784for (int i = 0; i < 26 && i < typeName.Length; i++)
src\Framework\System\Windows\Markup\BamlMapTable.cs (1)
1034Debug.Assert(assemblyFullName.Length != 0, "empty assembly");
src\Framework\System\Windows\Markup\BamlReader.cs (2)
1767for (int i=0; i<value.Length; i++) 1773builder = new StringBuilder(value.Length+2);
src\Framework\System\Windows\Markup\BamlRecordReader.cs (4)
3872value = OptionallyMakeNullable(methodInfo.GetParameters()[1].ParameterType, value, methodInfo.Name.Substring("Set".Length)); 4271string resourceName = resourceNameString.Substring(1, resourceNameString.Length-2); 5938return this.AttachedPropertySetter.Name.Substring("Set".Length); 5942return this.AttachedPropertyGetter.Name.Substring("Get".Length);
src\Framework\System\Windows\Markup\MarkupExtensionParser.cs (5)
134if (attrValue.Length < 2) 360int length = attrValue.Length; 956int length = args.Length; 1638for (int i = 0; i < value.Length; i++) 1644builder = new StringBuilder(value.Length);
src\Framework\System\Windows\Markup\ParserContext.cs (3)
120if (xmlParserContext.BaseURI != null && xmlParserContext.BaseURI.Length > 0) 144if( xmlReader.BaseURI != null && xmlReader.BaseURI.Length != 0 ) 449if (parserContext.XmlSpace != null && parserContext.XmlSpace.Length != 0)
src\Framework\System\Windows\Markup\Primitives\ExtensionSimplifierMarkupObject.cs (4)
334resultBuilder.Append(typeName, 0, typeName.Length - EXTENSIONLENGTH); 362if (value != null && value.Length > 0) 366if (value.Length > 1 && value[1] == '}') 380for (int i = 0; i < value.Length; i++)
src\Framework\System\Windows\Markup\Primitives\MarkupWriter.cs (8)
495name = name.Substring(0, name.Length - EXTENSIONLENGTH); 1062name = name.Substring(0, name.Length - EXTENSIONLENGTH); 1259for (int textIndex = 0; textIndex < value.Length; textIndex++) 1606(null != newPrefix && previousBestPrefix.Length > newPrefix.Length) ) 1660string ns = uri.Substring(clrUriPrefix.Length, uri.IndexOf(";", StringComparison.Ordinal) - clrUriPrefix.Length); 1662for (int i = 0; i < ns.Length; i++)
src\Framework\System\Windows\Markup\XamlFigureLengthSerializer.cs (4)
204int strLen = goodString.Length; 214strLenUnit = UnitStrings[i].Name.Length; 225strLenUnit = UnitStrings[i].Name.Length; 242strLenUnit = PixelUnitStrings[i].Length;
src\Framework\System\Windows\Markup\XamlGridLengthSerializer.cs (4)
205int strLen = goodString.Length; 215strLenUnit = UnitStrings[i].Length; 226strLenUnit = UnitStrings[i].Length; 243strLenUnit = PixelUnitStrings[i].Length;
src\Framework\System\Windows\Markup\XamlSerializerUtil.cs (1)
53for (int i = 0; i < s.Length; i++)
src\Framework\System\Windows\Markup\XamlTypeMapper.cs (8)
816for (int i = 0; i < attribValue.Length; i++) 1946if( xmlLangPropertyName != null && xmlLangPropertyName.Length > 0) 2197return methodInfo.Name.Substring("Get".Length); 2266typeName = typeName.Substring(colonIndex+1, typeName.Length-colonIndex-1); 2369else if (!isTypeExpected && prefix.Length == 0) 3845if (keyString.Length > 0 && 3847Char.IsWhiteSpace(keyString[keyString.Length-1]))) 4561if (null == _assembly && _assemblyName.Length > 0)
src\Framework\System\Windows\Markup\XamlTypeMapperSchemaContext.cs (4)
260clrNsIndex += XamlReaderHelper.MappingProtocol.Length; 261if (clrNsIndex <= xmlNamespace.Length) 272assemblyIndex += XamlReaderHelper.MappingAssembly.Length; 273if (assemblyIndex <= xmlNamespace.Length)
src\Framework\System\Windows\Markup\XmlnsDictionary.cs (4)
723if (xmlNamespace.Length > 0 || prefix.Length > 0) 748if (prefix.Length > 0 || _nsDeclarations[thisDecl].Uri.Length > 0)
src\Framework\System\Windows\MultiDataTrigger.cs (1)
114if (_conditions[i].SourceName != null && _conditions[i].SourceName.Length > 0)
src\Framework\System\Windows\PropertyPath.cs (4)
577name = name.Substring(1, name.Length-2); 913return (name != null && name.Length > 1 && name[0] == '(' && (name[name.Length - 1] == ')')); 921name = name.Substring(1, name.Length - 2);
src\Framework\System\Windows\PropertyPathConverter.cs (3)
194for (int i=0; i<originalPath.Length; ++i) 200for (j=i+1; j<originalPath.Length; ++j) 312if (start < originalPath.Length)
src\Framework\System\Windows\Shell\JumpList.cs (1)
1068if (jumpTask.IconResourcePath.Length >= Win32Constant.MAX_PATH)
src\Framework\System\Windows\Shell\ThumbButtonInfo.cs (1)
110if (text != null && text.Length >= 260)
src\Framework\System\Windows\Standard\Debug.cs (1)
169if (value.Trim().Length == 0)
src\Framework\System\Windows\Style.cs (1)
835if( eventTrigger.SourceName != null && eventTrigger.SourceName.Length > 0 )
src\Framework\System\Windows\StyleHelper.cs (2)
1834if (label == null || label.Length == 0) 1874if (label == null || label.Length == 0)
src\Framework\System\Windows\SystemResourceKey.cs (1)
376srkField = memberName.Remove(memberName.Length - 3);
src\Framework\System\Windows\SystemResources.cs (1)
779StringBuilder sb = new StringBuilder(_assemblyName.Length + 10);
src\Framework\System\Windows\ThemeDictionaryExtension.cs (1)
115StringBuilder uri = new StringBuilder(assemblyName.Length + 50);
src\Framework\System\Windows\TriggerBase.cs (1)
195if (target.Length == 0)
SMDiagnostics (14)
System\ServiceModel\Diagnostics\EncodingFallbackAwareXmlTextWriter.cs (1)
40int len = value.Length;
System\ServiceModel\Diagnostics\ExceptionUtility.cs (1)
140stackString = string.Concat(stackString, stackString.Length == 0 ? "" : Environment.NewLine, "throw", Environment.NewLine, stack, Environment.NewLine, "catch", Environment.NewLine);
System\ServiceModel\Diagnostics\TraceXPathNavigator.cs (12)
71return this.nodeValue.Length + 8; // <!--XXX--> 215int size = 2 * this.name.Length + 6; //upper bound <NAME></NAME> 218size += this.prefix.Length + 1; 222size += this.xmlns.Length + 9; // xmlns="xmlns" 248int size = this.name.Length + this.nodeValue.Length + 5; 252size += this.prefix.Length + 1; 257size += this.xmlns.Length + 9; //upper bound 282return this.name.Length + this.text.Length + 12; //<?xml NAME="TEXT"?> 299return this.nodeValue.Length; 870this.VerifySize(node.Length);
SMSvcHost (1)
System\ServiceModel\Activation\ListenerAdapterBase.cs (1)
134bindingsBufferPtr += bindingString.Length + 1;
svcutil (1)
CommandLineParser.cs (1)
177if (arg.Length == 1)
System (1092)
compmod\microsoft\csharp\csharpcodeprovider.cs (23)
420StringBuilder b = new StringBuilder(value.Length+5); 426while(i < value.Length) { 467&& (i < value.Length -1) 486StringBuilder b = new StringBuilder(value.Length+5); 490for (int i=0; i<value.Length; i++) { 511if (value.Length < 256 || value.Length > 1500 || (value.IndexOf('\0') != -1)) 570if (options.MainClass != null && options.MainClass.Length > 0) { 1388for (int i=0; i<value.Length; i++) { 1395if (i < value.Length - 1 && value[i+1] == '\n') { // if next char is '\n', skip it 2608if (arg.Name != null && arg.Name.Length > 0) { 2857if (e.Name != null && e.Name.Length > 0) { 3011if (e.Name != null && e.Name.Length > 0) { 3125if( value.Length < 3) { 3146if (value == null || value.Length == 0) { 3150if (value.Length > 512) 3196if (s.Length == 0) { 3255StringBuilder sb = new StringBuilder(s.Length + 10); 3264for (int i=0; i<baseType.Length; i++) { 3278while (i < baseType.Length && baseType[i] >= '0' && baseType[i] <='9') { 3288if (i < baseType.Length && (baseType[i] =='+' || baseType[i] == '.')) { 3298if (lastIndex < baseType.Length) 3392if (options.OutputAssembly == null || options.OutputAssembly.Length == 0) {
compmod\microsoft\visualbasic\VBCodeProvider.cs (27)
420StringBuilder b = new StringBuilder(value.Length+5); 428while(i < value.Length) { 444if (i < value.Length - 1 && value[i+1] == '\n') { 483&& (i < value.Length -1) 522if (rawLine != null && rawLine.Length > 0) { 549if (options.MainClass != null && options.MainClass.Length > 0) { 647if (arg.Name != null && arg.Name.Length > 0) { 676if (prefix != null && prefix.Length > 0) { 1493for (int i=0; i<value.Length; i++) { 1497if (i < value.Length - 1 && value[i+1] == '\n') { // if next char is '\n', skip it 1864if (e.ReturnType.BaseType.Length == 0 || string.Compare(e.ReturnType.BaseType, typeof(void).FullName, StringComparison.OrdinalIgnoreCase) == 0) { 2186if (del.ReturnType.BaseType.Length > 0 && string.Compare(del.ReturnType.BaseType, "System.Void", StringComparison.OrdinalIgnoreCase) != 0) 2194if (del.ReturnType.BaseType.Length > 0 && string.Compare(del.ReturnType.BaseType, "System.Void", StringComparison.OrdinalIgnoreCase) != 0) { 2514if (e.Name != null && e.Name.Length > 0) { 2534if (e.Name != null && e.Name.Length > 0) { 2588if (value == null || value.Length == 0) { 2592if (value.Length > 1023) 2597if (value[0] != '[' || value[value.Length - 1] != ']') { 2602value = value.Substring(1, value.Length - 2); 2606if (value.Length == 1 && value[0] == '_') 2629if (baseType.Length == 0) { 2681StringBuilder sb = new StringBuilder(baseType.Length + 10); 2688for (int i=0; i<baseType.Length; i++) { 2702while (i < baseType.Length && baseType[i] >= '0' && baseType[i] <='9') { 2712if (i < baseType.Length && (baseType[i] =='+' || baseType[i] == '.')) { 2722if (lastIndex < baseType.Length) 2826if (options.OutputAssembly == null || options.OutputAssembly.Length == 0) {
compmod\microsoft\win32\NativeMethods.cs (1)
255System.Diagnostics.Debug.Assert(fileName != null && fileName.Length > 0, "Cannot get local path, fileName is not valid");
compmod\microsoft\win32\SystemEvents.cs (7)
1081if (companyName == null || companyName.Length == 0) { 1090if (companyName == null || companyName.Length == 0) { 1131if (productName == null || productName.Length == 0) { 1140if (productName == null || productName.Length == 0) { 1148if (lastDot != -1 && lastDot < ns.Length - 1) { 1181if (productVersion == null || productVersion.Length == 0) { 1190if (productVersion == null || productVersion.Length == 0) {
compmod\system\codedom\CodeTypeReference.cs (4)
131if (typeName == null || typeName.Length == 0) { 141int end = typeName.Length -1; 382int end = typeName.Length - 1; 386while( start < typeName.Length && Char.IsWhiteSpace(typeName[start])) start++;
compmod\system\codedom\compiler\CodeCompiler.cs (1)
341if (options.OutputAssembly == null || options.OutputAssembly.Length == 0) {
compmod\system\codedom\compiler\CodeDomConfigurationHandler.cs (3)
272if (language.Length == 0) 277if (extension.Length == 0 || extension[0] != '.') 399if (a != null && val.Length == 0) {
compmod\system\codedom\compiler\CodeGenerator.cs (3)
1018if (arg.Name != null && arg.Name.Length > 0) { 1929if (value.Length == 0) 1934for(int i = 0; i < value.Length; i++) {
compmod\system\codedom\compiler\CodeValidator.cs (4)
127if (e.Name != null && e.Name.Length > 0) { 160if (arg.Name != null && arg.Name.Length > 0) { 551for (int i=0; i<baseType.Length; i++) { 555while (i < baseType.Length && baseType[i] >= '0' && baseType[i] <='9') {
compmod\system\codedom\compiler\CompilerError.cs (1)
148if (FileName.Length > 0) {
compmod\system\codedom\compiler\Executor.cs (2)
146if (outputName == null || outputName.Length == 0) 149if (errorName == null || errorName.Length == 0)
compmod\system\codedom\compiler\IndentTextWriter.cs (1)
453StringBuilder sb = new StringBuilder(indent * tabString.Length);
compmod\system\codedom\compiler\TempFiles.cs (2)
118if (fileExtension == null || fileExtension.Length == 0) 129if (fileName == null || fileName.Length == 0)
compmod\system\collections\specialized\fixedstringlookup.cs (2)
25int length = value.Length; 68while (pos < value.Length) {
compmod\system\componentmodel\CharConverter.cs (3)
61if (text.Length > 1) { 65if (text != null && text.Length > 0) { 66if (text.Length != 1) {
compmod\system\componentmodel\ComponentResourceManager.cs (4)
129if (string.Compare(key, 0, objectName, 0, objectName.Length, StringComparison.OrdinalIgnoreCase) != 0) { 134if (string.CompareOrdinal(key, 0, objectName, 0, objectName.Length) != 0) { 141int idx = objectName.Length; 142if (key.Length <= idx || key[idx] != '.' ) {
compmod\system\componentmodel\CultureInfoConverter.cs (1)
102if (text == null || text.Length == 0 || string.Compare(text, DefaultCultureString, StringComparison.Ordinal) == 0) {
compmod\system\componentmodel\DateTimeConverter.cs (1)
59if (text.Length == 0) {
compmod\system\componentmodel\DateTimeOffsetConverter.cs (1)
63if (text.Length == 0) {
compmod\system\componentmodel\design\DesignerOptionService.cs (2)
57if (name.Length == 0) { 58throw new ArgumentException(SR.GetString(SR.InvalidArgument, name.Length.ToString(CultureInfo.CurrentCulture), (0).ToString(CultureInfo.CurrentCulture)), "name.Length");
compmod\system\componentmodel\design\DesigntimeLicenseContext.cs (1)
75System.Diagnostics.Debug.Assert(fileName != null && fileName.Length > 0, "Cannot get local path, fileName is not valid");
compmod\system\componentmodel\ExtendedPropertyDescriptor.cs (1)
119if (providerName != null && providerName.Length > 0) {
compmod\system\componentmodel\MaskedTextProvider.cs (8)
328for (int maskPos = 0; maskPos < this.mask.Length; maskPos++) 970if( input.Length == 0 ) // nothing to add. 1372if (input.Length == 0) // nothing to insert. 1925if (input.Length == 0) // remove the character at position. 1972if (input.Length == 0) // remove character at position. 2148if (input.Length == 0) // Clearing the input text. 2578if( input.Length == 0 ) 2872if( input == null || input.Length == 0 ) // nothing to verify.
compmod\system\componentmodel\MemberDescriptor.cs (1)
62if (name == null || name.Length == 0) {
compmod\system\componentmodel\PropertyDescriptor.cs (2)
92if (attr.ConverterTypeName != null && attr.ConverterTypeName.Length > 0) { 378if (typeName == null || typeName.Length == 0) {
compmod\system\componentmodel\ReflectTypeDescriptionProvider.cs (1)
1957if (typeName == null || typeName.Length == 0)
compmod\system\componentmodel\TypeDescriptor.cs (1)
1906if (name == null || name.Length == 0)
compmod\system\configuration\appsettingsreader.cs (3)
63return val.Substring(1, val.Length - 2); 70string displayString = (val.Length == 0) ? SR.AppSettingsReaderEmptyString : val; 78int len = val.Length;
compmod\system\diagnostics\assertwrapper.cs (2)
224while (lineCount < maxLines && i < message.Length - 1) { 240if (i < message.Length - 1)
compmod\system\diagnostics\DefaultTraceListener.cs (3)
167if (message == null || message.Length <= internalWriteSize) { 172for (offset = 0; offset < message.Length - internalWriteSize; offset += internalWriteSize) { 178if (useLogFile && LogFileName.Length != 0)
compmod\system\diagnostics\DelimitedListTraceListener.cs (3)
62if (value.Length == 0) 208sb.Append(message, lastindex, message.Length - lastindex); 233sb.Append(operation, lastindex, operation.Length - lastindex);
compmod\system\diagnostics\ListenerElementsCollection.cs (1)
239if ((Filter != null) && (Filter.TypeName != null) && (Filter.TypeName.Length != 0)) {
compmod\system\diagnostics\SwitchAttribute.cs (1)
30if (value.Length == 0)
compmod\system\diagnostics\TraceSource.cs (1)
36if (name.Length == 0)
compmod\system\diagnostics\traceutils.cs (1)
24if (className.Length == 0) {
compmod\system\diagnostics\XmlWriterTraceListener.cs (2)
289for (int i=0; i<str.Length; i++) { 328InternalWrite(str.Substring(lastIndex, str.Length-lastIndex));
net\System\_DomainName.cs (3)
207return IdnEquivalent(host, 0, hostname.Length, ref allAscii, ref atLeastOneValidIdn); 226int length = strippedHost.Length; 400int length = unescapedHostname.Length;
net\System\_IPv6Address.cs (1)
411for (int i = start; i < address.Length && address[i] != ']'; ) {
net\System\_UriSyntax.cs (1)
272if (syntax.SchemeName.Length != 0)
net\System\Net\_AuthenticationState.cs (1)
288GlobalLog.Print("AuthenticationState#" + ValidationHelper.HashString(this) + "::AttemptAuthenticate() AuthorizationHeader:" + AuthorizationHeader + " blob: " + Authorization.Message.Length + "bytes Complete:" + Authorization.Complete.ToString());
net\System\Net\_AutoWebProxyScriptHelper.cs (8)
269return index != -1 && (index+domain.Length) == host.Length; 493if (weekDay!=null && weekDay.Length==3) { 549if(IPAddressList == null || IPAddressList.Length == 0) 583 if(IPAddressStrings[i].Length == 0) 749if(parts.Length != 2 || parts[0] == null || parts[0].Length == 0 || 750parts[1] == null || parts[1].Length == 0 || parts[1].Length > 2)
net\System\Net\_BasicClient.cs (2)
16internal static int SignatureSize = Signature.Length; 119GlobalLog.Enter("BasicClient::EncodingRightGetBytes", "[" + rawString.Length.ToString() + ":" + rawString + "]");
net\System\Net\_CommandStream.cs (4)
225string sendCommand = m_Commands[m_Index].Command.Substring(0, m_Commands[m_Index].Command.Length-2); 519if(m_Buffer.Length > 0) 581if(m_Buffer.Length > 0) 619m_Buffer = szResponse.Substring(szResponse.Length-unusedChars, unusedChars);
net\System\Net\_Connection.cs (8)
1899while (totalBytesParsed - initialBytesParsed + bytesParsed < BeforeVersionNumberBytes.Length) 2036if (bytesParsed < effectiveMax - s.Length && byteBuffer[bytesParsed] == (byte) s[0]) 2040for(i = 1; i < s.Length; i++) 2043if (i == s.Length) 2046bytesParsed += s.Length; 2682if(i++>0 && i <server.Length){ 2684while(i < server.Length && Char.IsDigit(server[i])) { 3009if (detailedInfo.Length != 0)
net\System\Net\_CookieModule.cs (3)
36if (cookieString.Length > 0) { 78if ((cookieString != null) && (cookieString.Length > 0)) { 92if ((cookieString != null) && (cookieString.Length > 0)) {
net\System\Net\_DigestClient.cs (22)
26internal static int SignatureSize = Signature.Length; 170(index+HttpDigest.SupportedQuality.Length==challenge.QualityOfProtection.Length || HttpDigest.ValidSeparator.IndexOf(challenge.QualityOfProtection[index + HttpDigest.SupportedQuality.Length])>=0) ) { 173index += HttpDigest.SupportedQuality.Length; 226if (challenge.Length > blobBegin && challenge[blobBegin] != ',') { 232if (index >= 0 && challenge.Length > blobBegin) { 330if (NC == null || (!(NC is SystemNetworkCredential) && NC.InternalGetUserName().Length == 0)) 462Debug.Assert(index >= 0 && index < challenge.Length); 470if (challenge.Length > blobBegin && challenge[blobBegin] != ',') { 477if (index >= 0 && challenge.Length > blobBegin) { 517GlobalLog.Print("DigestClient::XPDoAuthenticate() start:" + start + " offset:" + offset + " index:" + index + " valid:" + valid + " incoming.Length:" + incoming.Length + " incoming:" + incoming); 518if ((!valid || offset<0) && start<incoming.Length) { 599QopPresent = QualityOfProtection!=null && QualityOfProtection.Length>0; 845for (int i=0; i<value.Length; i++) { 853byte[] bytes = new byte[value.Length]; 854for (int i=0; i<value.Length; i++) { 908for (int i=0; i<rawString.Length; i++) { 1228GlobalLog.Enter("HttpDigest::hashString", "[" + myString.Length.ToString() + ":" + myString + "]"); 1229byte[] encodedBytes = new byte[myString.Length]; 1230for (int i=0; i<myString.Length; i++) { 1235GlobalLog.Leave("HttpDigest::hashString", "[" + hashString.Length.ToString() + ":" + hashString + "]");
net\System\Net\_FtpControlStream.cs (17)
504if (domainUserName.Length == 0 && password.Length == 0) 543if (requestFilename.Length == 0 && request.MethodInfo.HasFlag(FtpMethodFlags.TakesParameter)) 558if (request.MethodInfo.HasFlag(FtpMethodFlags.MustChangeWorkingDirectoryToPath) && requestDirectory.Length > 0) 785index != -1 && index == path.Length-1) { 787path = path.Substring(0, path.Length-1); 797filename = path.Substring(index+1, path.Length-(index+1)); 801if (directory.Length > 1 && directory[directory.Length-1] == '/') 802directory = directory.Substring(0, directory.Length-1); 907if (dateTimeLine.Length < 14) { 946end = str.Length; 960if (orginalPath.Length > 0 && orginalPath[orginalPath.Length-1] != '/') { 1147StringBuilder stringBuilder = new StringBuilder(command.Length + ((parameter != null) ? parameter.Length : 0) + 3 /*size of ' ' \r\n*/); 1220if(responseString.Length > lineStart + 4)
net\System\Net\_HeaderInfoTable.cs (3)
43char[] vp = new char[value.Length]; 46for (int i = 0; i < value.Length; i++) { 85bool isExpires = (lastAttribute.IndexOf("Expires", StringComparison.OrdinalIgnoreCase) >= 0) && (lastAttribute.Length == 7);
net\System\Net\_HTTPDateParse.cs (3)
282while (index < DateString.Length && i < MAX_FIELD_DATE_ENTRIES) { 294} while (index < DateString.Length && 338} while (index < DateString.Length &&
net\System\Net\_KerberosClient.cs (6)
18internal static int SignatureSize = Signature.Length; 54if (challenge.Length > blobBegin && challenge[blobBegin] != ',') { 61if (index >= 0 && challenge.Length > blobBegin) 81if (NC == null || (!(NC is SystemNetworkCredential) && NC.InternalGetUserName().Length == 0)) 179if (challenge.Length > blobBegin && challenge[blobBegin] != ',') { 184if (index >= 0 && challenge.Length > blobBegin) {
net\System\Net\_ListenerResponseStream.cs (4)
167dataToWrite = dataToWrite + (uint)(chunkHeader.Length + 4); 170for (int i = 0; i < chunkHeader.Length; i++) { 173Marshal.WriteInt16(pBufferAsIntPtr, chunkHeader.Length, 0x0A0D); 174Marshal.Copy(buffer, offset, IntPtrHelper.Add(pBufferAsIntPtr, chunkHeader.Length + 2), size);
net\System\Net\_LoggingObject.cs (1)
951int detailLength = fullMessage.Length - pipeIndex - 1;
net\System\Net\_NegotiateClient.cs (9)
46int blobBegin = index + (useNego2 ? nego2Signature.Length : negotiateSignature.Length); 53if (challenge.Length > blobBegin && challenge[blobBegin] != ',') { 60if (index >= 0 && challenge.Length > blobBegin) 84if (NC == null || (!(NC is SystemNetworkCredential) && (username = NC.InternalGetUserName()).Length == 0)) 195int blobBegin = index + (useNego2 ? nego2Signature.Length : negotiateSignature.Length); 202if (challenge.Length > blobBegin && challenge[blobBegin] != ',') { 207if (index >= 0 && challenge.Length > blobBegin) {
net\System\Net\_NetRes.cs (4)
96if (statusMessage!=null && statusMessage.Length>0) { 103if (statusDescription!=null && statusDescription.Length>0) { 126if (statusMessage!=null && statusMessage.Length>0) { 133if (statusDescription!=null && statusDescription.Length>0) {
net\System\Net\_NetworkingPerfCounters.cs (2)
364if (result.Length > instanceNameMaxLength) 366result = friendlyName.Substring(0, instanceNameMaxLength - postfix.Length) + postfix;
net\System\Net\_NTAuthentication.cs (5)
552AuthIdentity authIdentity = new AuthIdentity(username, credential.InternalGetPassword(), (object)package == (object)NegotiationInfoClass.WDigest && (domain == null || domain.Length == 0)? null: domain); 621if (incomingBlob != null && incomingBlob.Length > 0) { 1262UserNameLength = userName==null ? 0 : userName.Length; 1264PasswordLength = password==null ? 0 : password.Length; 1266DomainLength = domain==null ? 0 : domain.Length;
net\System\Net\_NtlmClient.cs (4)
17internal static int SignatureSize = Signature.Length; 52if (challenge.Length > blobBegin && challenge[blobBegin] != ',') { 59if (index >= 0 && challenge.Length > blobBegin) 81if (NC == null || (!(NC is SystemNetworkCredential) && (username = NC.InternalGetUserName()).Length == 0))
net\System\Net\_PrefixLookup.cs (7)
91Debug.Assert(prefix.Length > 0, "PrefixLookup.Add; prefix must not be empty"); 94if (capacity == 0 || prefix == null || prefix.Length == 0 || value == null) 125Debug.Assert(lookupKey.Length > 0, "PrefixLookup.Lookup; lookupKey must not be empty"); 127if (lookupKey == null || lookupKey.Length == 0 || lruList.Count == 0) 150if (prefix.Length > longestMatchPrefix && lookupKey.StartsWith(prefix)) 155longestMatchPrefix = prefix.Length; 158if (longestMatchPrefix == lookupKey.Length)
net\System\Net\_SafeNetHandles.cs (1)
1580if (targetName == null || targetName.Length == 0)
net\System\Net\_ServiceNameStore.cs (1)
137while(j < uriPrefix.Length && uriPrefix[j] != '/' && (uriPrefix[j] != ':' || inSquareBrackets))
net\System\Net\_ShellExpression.cs (11)
57if (j > target.Length) 65match[i++] = j = target.Length; 69if (j == target.Length) 80if (j == target.Length) 95if (j == target.Length || target[j] == '.') 106if (j == target.Length || target[j] == '.') 125if (j == target.Length) 134if (j < target.Length && (int) pattern[i] == (int) char.ToLowerInvariant(target[j])) 178pattern = new ShExpTokens[patString.Length + 2]; // 2 for the start, end 183for (int j = 0; j < patString.Length; j++) 196if (j < patString.Length - 1)
net\System\Net\_SpnDictionary.cs (3)
76if(s != null && s.Length > lastLength){ 77if(String.Compare(s,0,canonicalKey,0,s.Length,StringComparison.OrdinalIgnoreCase) == 0){ 78lastLength = s.Length;
net\System\Net\_WebProxyDataBuilder.cs (2)
218if (rawString.Length == 0) 246if (trimmedBypassString.Length>0) {
net\System\Net\AuthenticationManager.cs (16)
267if (challenge != null && signature != null && challenge.Length >= signature.Length) 270for (int i = 0; i < challenge.Length && index < 0; i++) 281if (i == challenge.Length - 1 || (challenge[i] == '\"' && firstQuote > secondQuote)) 285if (i == challenge.Length - 1) 286firstQuote = challenge.Length; 302(index + signature.Length == challenge.Length || challenge[index + signature.Length] == ' ' || challenge[index + signature.Length] == ',')) 323count += start + 1 - lwrCaseSignature.Length; 327for (; i < lwrCaseSignature.Length; ++i) 333if (i == lwrCaseSignature.Length) 358if (challenge != null && realOffset < challenge.Length) 362for (int i = realOffset; i < challenge.Length; i++) 367if (firstQuote > secondQuote && challenge[i] == '\\' && i + 1 < challenge.Length && challenge[i + 1] == '\"')
net\System\Net\Cache\_RequestCacheProtocol.cs (1)
689if (context[i].Length != 0) {
net\System\Net\Cache\_Rfc2616CacheValidators.cs (21)
130if (ctx.Uri.Query.Length != 0) { 1841if (s1.Length != s2.Length) { 1844for (int i = 0; i < s1.Length; ++i) { 1855if (length-start < s2.Length) { 1858for (int i = 0; i < s2.Length; ++i) { 1877while (idx < ranges.Length && ranges[idx] == ' ') { 1883if( idx >= ranges.Length || ranges[idx-5] != 'b' || ranges[idx-4] != 'y' || ranges[idx-3] != 't' || ranges[idx-2] != 'e' || ranges[idx-1] != 's') 1890while (idx < ranges.Length && ranges[idx] == ' ') { 1904while (++idx < ranges.Length && (ch=ranges[idx]) == ' ') { 1911if (idx < ranges.Length && ch >= '0' && ch <= '9') { 1913while(++idx < ranges.Length && (ch = ranges[idx]) >= '0' && ch <= '9') { 1918while (idx < ranges.Length && ch == ' ') {ch = ranges[++idx];} 1923while (idx < ranges.Length && (ch = ranges[++idx]) == ' ') { 1928if (idx < ranges.Length && ch >= '0' && ch <= '9') { 1930while(++idx < ranges.Length && (ch = ranges[idx]) >= '0' && ch <= '9') { 1935while (idx < ranges.Length) { 1944while (idx < ranges.Length && (ch = ranges[idx]) == ' ') { 1951while (++idx < ranges.Length && (ch=ranges[idx]) == ' ') { 1957if (idx < ranges.Length && ch >= '0' && ch <= '9') { 1959while (++idx < ranges.Length && (ch = ranges[idx]) >= '0' && ch <= '9') {
net\System\Net\Cache\HttpRequestCacheValidator.cs (29)
496System.Text.StringBuilder sb = new System.Text.StringBuilder(CacheStatusDescription.Length + 20); 586while (++idx < s.Length && (ch=s[idx]) != '/') { 590if (idx == s.Length) {return s;} 596while (++idx < s.Length && (ch=s[idx]) >= '0' && ch <= '9') { 602while (++idx < s.Length && (ch=s[idx]) >= '0' && ch <= '9') { 608while (++idx < s.Length && ((ch=s[idx]) == ' ' || ch == '\t')) 611if (idx >= s.Length) {return s;} 616if (++idx == s.Length) 621if (status < 0 || (idx <= s.Length && (ch != ' ' && ch != '\t'))) {return s;} 623while (idx < s.Length && (s[idx] == ' ' || s[idx] == '\t')) 682if (s == null || s.Length == 0) 702while (++colpos < s.Length && (s[colpos] == ' ' || s[colpos] == '\t')) 783if (s != null && s.Length != 0) { 786while (i < s.Length && ch == ' ') { 789if (i != s.Length && ch >= '0' && ch <= '9') { 791while(++i < s.Length && (ch = s[i]) >= '0' && ch <= '9') { 832while(i < s.Length && s[i++] == ' ') { 835while(i < s.Length && s[i] >= '0' && s[i] <= '9') { 890if (s != null && s.Length != 0) { 892int len = s.Length; 1207while (end < val.Length) { 1209while (start < val.Length && val[start] == ' ') { 1213if (start == val.Length ) { 1221while (end < val.Length && val[end] != ',' && val[end] != '\"') { 1225if (end == val.Length ) { 1231while (++end < val.Length && val[end] != '"') { 1234if (end == val.Length ) { 1245while (++end < val.Length && val[end] == ' ') { 1248if (end >= val.Length) {
net\System\Net\Cache\IERequestCache.cs (8)
242if (entry.MetaInfo != null && entry.MetaInfo.Length != 0) 248int length = entry.MetaInfo.Length; 275if (value.Length == 0 && cacheEntry.EntryMetadata == null) 363if (entryMetadata[i] == null || entryMetadata[i].Length == 0) 374if (systemMetadata[i] == null || systemMetadata[i].Length == 0) 438if (entry.MetaInfo.Length == 0) { 560if (entry.MetaInfo.Length != 0) { 1044if (m_Entry.MetaInfo == null || m_Entry.MetaInfo.Length == 0 ||
net\System\Net\Cache\RequestCacheManager.cs (2)
54if (internedScheme.Length == 0) 89if (uriScheme.Length == 0)
net\System\Net\Cache\WinInetCache.cs (8)
203if (maxHeadersSize != Int32.MaxValue && (Int32.MaxValue - (key.Length + EntryBuffer.MarshalSize + 1024)*2) > maxHeadersSize) { 209MaxBufferBytes += (key.Length + EntryBuffer.MarshalSize + 1024)*2; 357if ((s.Length + entry.Key.Length + entry.Filename.Length + (entry.OriginalUrl==null? 0: entry.OriginalUrl.Length)) > entry.MaxBufferBytes/c_CharSz) { 366byte* realBytesPtr = s.Length == 0? null: (byte*)ptr; 374s.Length,
net\System\Net\Configuration\SmtpNetworkElement.cs (1)
175else if (element.UserName != null && element.UserName.Length > 0)
net\System\Net\cookie.cs (42)
196return (Plain || m_domain_implicit || (m_domain.Length == 0)) 279return (Plain || m_path_implicit || (m_path.Length == 0)) 332if ((host.Length + 1 == domain.Length) && 333(string.Compare(host, 0, domain, 1, host.Length, StringComparison.OrdinalIgnoreCase) == 0)) { 373if (m_name == null || m_name.Length == 0 || m_name[0] == '$' || m_name.IndexOfAny(Reserved2Name) != -1) { 382(!(m_value.Length > 2 && m_value[0] == '\"' && m_value[m_value.Length-1] == '\"') && m_value.IndexOfAny(Reserved2Value) != -1)) { 390if (Comment != null && !(Comment.Length > 2 && Comment[0] == '\"' && Comment[Comment.Length-1] == '\"') 398if (Path != null && !(Path.Length > 2 && Path[0] == '\"' && Path[Path.Length-1] == '\"') 446else if (domain.IndexOf('.', 1, domain.Length-2) == -1) { 458if (host.Length <= domain.Length || 459string.Compare(host, host.Length-domain.Length, domain, 0, domain.Length, StringComparison.OrdinalIgnoreCase) != 0) { 465domain.Length != host.Length-host_dot || 466string.Compare(host, host_dot, domain, 0, domain.Length, StringComparison.OrdinalIgnoreCase) != 0) { 526if (set_default && (m_port_implicit == false && m_port.Length == 0)) { 552if (name == null || name.Length == 0) { 555for(int i=0; i < name.Length; ++i) { 578if ((value == null || value.Length == 0)) { 584if (value[0] != '\"' || value[value.Length-1] != '\"') { 624+ ((m_port.Length == 0) ? string.Empty : (EqualsLiteral + m_port)) 765((version.Length == 0)? string.Empty : (version + SeparatorLiteral)) 767+ ((path.Length == 0) ? string.Empty : (SeparatorLiteral + path)) 768+ ((domain.Length == 0) ? string.Empty : (SeparatorLiteral + domain)) 769+ ((port.Length == 0) ? string.Empty : (SeparatorLiteral + port)) 779if (m_comment!=null && m_comment.Length>0) { 788if (!m_domain_implicit && m_domain!=null && m_domain.Length>0) { 800if (!m_path_implicit && m_path!=null && m_path.Length>0) { 803if (!Plain && !m_port_implicit && m_port!=null && m_port.Length>0) { 902m_length = tokenStream.Length; 1199if ((Name = Extract()).Length != 0) { 1520bool first = cookie==null || cookie.Name==null || cookie.Name.Length==0; 1604if (value.Length < 2 || value[0] != '\"' || value[value.Length-1] != '\"') 1607return value.Length == 2? string.Empty: value.Substring(1, value.Length-2);
net\System\Net\cookiecontainer.cs (10)
123if (domain != null && domain.Length > 1) 230if (cookie.Domain.Length == 0) { 289if (cookie.Value.Length > m_maxCookieSize) { 550if (string.Compare(m_fqdnMyDomain, 0, host, dot, m_fqdnMyDomain.Length, StringComparison.OrdinalIgnoreCase ) == 0) 562switch (ipParts[i].Length) 725if (m_fqdnMyDomain != null && m_fqdnMyDomain.Length != 0) { 736if (fqdnRemote.Length > 2) { 738int last = fqdnRemote.LastIndexOf('.', fqdnRemote.Length-2); 967int ll = pathLeft.Length; 968int lr = pathRight.Length;
net\System\Net\CredentialCache.cs (4)
101if (host.Length == 0) { 244if (host.Length == 0) { 469return "[" + Host.Length.ToString(NumberFormatInfo.InvariantInfo) + "]:" + Host + ":" + Port.ToString(NumberFormatInfo.InvariantInfo) + ":" + ValidationHelper.ToString(AuthenticationType); 483UriPrefixLength = UriPrefix.ToString().Length;
net\System\Net\DNS.cs (3)
214if (hostName.Length > MaxHostName // If 255 chars, the last one must be a dot. 215|| hostName.Length == MaxHostName && hostName[MaxHostName-1] != '.') { 557if (string.IsNullOrEmpty(hostName) || hostName.Length > MaxHostName)
net\System\Net\FtpWebRequest.cs (3)
530if (m_Uri.UserInfo != null && m_Uri.UserInfo.Length != 0) { 538password = Uri.UnescapeDataString(userInfo.Substring(index, userInfo.Length - index)); 2046if (cacheUri.Fragment.Length != 0 || username != null)
net\System\Net\HttpListener.cs (7)
646while (j<uriPrefix.Length && uriPrefix[j]!='/' && (uriPrefix[j]!=':' || inSquareBrakets)) { 662if (uriPrefix[uriPrefix.Length-1]!='/') { 1453for (index = 0; index < authorizationHeader.Length; index++) 1463if (index < authorizationHeader.Length) 1523for (index++; index < authorizationHeader.Length; index++) 1531string inBlob = index < authorizationHeader.Length ? authorizationHeader.Substring(index) : ""; 2214if (challenge.Length>0) {
net\System\Net\HttpListenerRequest.cs (9)
366if (postDataCharset!=null && postDataCharset.Length>0) { 671if (cookie.Name.Length==0) { 683if (cookieString!=null && cookieString.Length>0) { 1220int l = headerValue.Length; 1221int k = attrName.Length; 1289int l = s.Length; 1333int count = s.Length; 1459int l = (s != null) ? s.Length : 0; 1460int i = (s.Length>0 && s[0]=='?') ? 1 : 0;
net\System\Net\HttpListenerRequestUriBuilder.cs (8)
231while (index < rawPath.Length) 237Debug.Assert(index + 2 < rawPath.Length, "Expected >=2 characters after '%' (e.g. %2F)"); 244Debug.Assert(index + 4 < rawPath.Length, "Expected >=4 characters after '%u' (e.g. %u0062)"); 417Debug.Assert(uriString.Length > 0, "uriString must not be empty"); 450pathStartIndex = uriString.Length; 459Debug.Assert((uriString.Length == 1) && (uriString[0] == '*'), "Unknown request Uri string format", 476queryIndex = uriString.Length; 489if ((path.Length == 1) && (path[0] == '*'))
net\System\Net\HttpListenerResponse.cs (4)
155for (int i = 0; i < value.Length; i++) 523if (StatusDescription.Length>0) { 602if (cookieString==null || cookieString.Length==0) { 700if (HttpListenerContext.MutualAuthentication != null && HttpListenerContext.MutualAuthentication.Length > 0)
net\System\Net\HttpWebRequest.cs (24)
3109if (value.Length != 0) { 4214if (cacheUri.Fragment.Length != 0) 4693int writeBufferLength = CurrentMethod.Name.Length + 4698offset = Encoding.ASCII.GetBytes(CurrentMethod.Name, 0, CurrentMethod.Name.Length, WriteBuffer, 0); 4788int writeBufferLength = CurrentMethod.Name.Length + 4789scheme.Length + 4791path.Length + 4796offset = Encoding.ASCII.GetBytes(CurrentMethod.Name, 0, CurrentMethod.Name.Length, WriteBuffer, 0); 4798offset += Encoding.ASCII.GetBytes(scheme, 0, scheme.Length, WriteBuffer, offset); 4801offset += Encoding.ASCII.GetBytes(path, 0, path.Length, WriteBuffer, offset); 4853int writeBufferLength = CurrentMethod.Name.Length + 4854scheme.Length + 4855userInfo.Length + 4857path.Length + 4862offset = Encoding.ASCII.GetBytes(CurrentMethod.Name, 0, CurrentMethod.Name.Length, WriteBuffer, 0); 4864offset += Encoding.ASCII.GetBytes(scheme, 0, scheme.Length, WriteBuffer, offset); 4865offset += Encoding.ASCII.GetBytes(userInfo, 0, userInfo.Length, WriteBuffer, offset); 4868offset += Encoding.ASCII.GetBytes(path, 0, path.Length, WriteBuffer, offset); 4894CurrentMethod.Name.Length + 4895pathAndQuery.Length + 4900offset = Encoding.ASCII.GetBytes(CurrentMethod.Name, 0, CurrentMethod.Name.Length, WriteBuffer, 0); 4902offset += Encoding.ASCII.GetBytes(pathAndQuery, 0, pathAndQuery.Length, WriteBuffer, offset); 5109WebHeaderCollection.HeaderEncoding.GetBytes(requestHeadersString, 0, requestHeadersString.Length, WriteBuffer, offset); 6280if ((curRange == null) || (curRange.Length == 0)) {
net\System\Net\HttpWebResponse.cs (2)
230while (i < srchString.Length && srchString[i] == ' ') 235if (i < srchString.Length - 1 && srchString[i] == '=') {
net\System\Net\Internal.cs (4)
833if ( stringValue == null || stringValue.Length == 0) { 877} else if (objectValue is string && ((string)objectValue).Length==0) { 890} else if (objectValue is string && ((string)objectValue).Length==0) { 902return stringValue==null || stringValue.Length==0;
net\System\Net\IPAddress.cs (5)
233int end = ipString.Length; 236if (IPv6AddressHelper.IsValidStrict(name, offset, ref end) || (end != ipString.Length)) 247if (scopeId == null || scopeId.Length == 0) 280int end = ipString.Length; 290if (result == IPv4AddressHelper.Invalid || end != ipString.Length)
net\System\Net\mail\Attachment.cs (11)
66int start = fileName.LastIndexOfAny(new char[] { '\\', ':' }, fileName.Length - 1, fileName.Length); 69name = fileName.Substring(start + 1, fileName.Length - start - 1); 161if (value.Length == 0 || offset >= mediaType.Length || mediaType[offset++] != '/') 164if(value.Length == 0 || offset < mediaType.Length){ 222if (cid.Length >= 2 && cid[0] == '<' && cid[cid.Length - 1] == '>') 224return cid.Substring(1, cid.Length - 2); 355if (!allowUnicode && name != null && name.Length != 0 && !MimeBasePart.IsAscii(name, false)) {
net\System\Net\mail\BaseWriter.cs (4)
61WriteAndFold(value, name.Length + 2, allowUnicode); 68for (int index = 0; index < value.Length; index++) 96if (value.Length - startOfLine > 0) 98this.bufferBuilder.Append(value, startOfLine, value.Length - startOfLine, allowUnicode);
net\System\Net\mail\BufferBuilder.cs (1)
65Append(value, 0, value.Length, allowUnicode);
net\System\Net\mail\ContentType.cs (9)
123if (mediaType.Length == 0 || offset >= value.Length || value[offset++] != '/') 127if(subType.Length == 0 || offset < value.Length){ 264if (mediaType == null || mediaType.Length == 0 || offset >= type.Length || type[offset++] != '/'){ 270if (subType == null || subType.Length == 0){ 288if(paramAttribute == null || paramAttribute.Length == 0){ 294if ( offset >= type.Length || type[offset++] != '='){
net\System\Net\mail\DomainLiteralReader.cs (1)
37Debug.Assert(0 <= index && index < data.Length, "index was outside the bounds of the string: " + index);
net\System\Net\mail\DotAtomReader.cs (1)
44Debug.Assert(0 <= index && index < data.Length, "index was outside the bounds of the string: " + index);
net\System\Net\mail\MailAddress.cs (3)
82if (this.displayName.Length >= 2 && this.displayName[0] == '\"' 83&& this.displayName[this.displayName.Length - 1] == '\"') { 85this.displayName = this.displayName.Substring(1, this.displayName.Length - 2);
net\System\Net\mail\MailAddressParser.cs (4)
34int index = data.Length - 1; 46int index = data.Length - 1; 74Debug.Assert(index >= 0 && index < data.Length, "Index out of range: " + index + ", " + data.Length);
net\System\Net\mail\MailBnfHelper.cs (11)
144for (;offset < data.Length ;offset++) 168for (; offset < data.Length; offset++) 189for (; offset < data.Length; offset++) 203data.Length > offset + 3 && 243for (; offset < data.Length; offset++) 305for (; offset < data.Length; offset++) 315for (; offset < data.Length; offset++) 341if(data.Length == 0){ 363for (int i = 0; i < data.Length; i++) { 375Debug.Assert(index < data.Length); 378&& index + 2 < data.Length
net\System\Net\mail\MailMessage.cs (1)
42if (from != null && from.Length > 0) {
net\System\Net\mail\Message.cs (12)
343EnvelopeHeaders.InternalSet(xSenderHeader, sender.Encode(xSenderHeader.Length, allowUnicode)); 350EnvelopeHeaders.InternalAdd(headerName, address.Encode(headerName.Length, allowUnicode)); 353EnvelopeHeaders.InternalAdd(headerName, address.Encode(headerName.Length, allowUnicode)); 356EnvelopeHeaders.InternalAdd(headerName, address.Encode(headerName.Length, allowUnicode)); 377Headers.InternalAdd(headerName, Sender.Encode(headerName.Length, allowUnicode)); 384Headers.InternalAdd(headerName, From.Encode(headerName.Length, allowUnicode)); 388Headers.InternalAdd(headerName, To.Encode(headerName.Length, allowUnicode)); 396Headers.InternalAdd(headerName, CC.Encode(headerName.Length, allowUnicode)); 404Headers.InternalAdd(headerName, ReplyTo.Encode(headerName.Length, allowUnicode)); 407Headers.InternalAdd(headerName, ReplyToList.Encode(headerName.Length, allowUnicode)); 444headerName.Length)); 486headerName.Length);
net\System\Net\mail\MimeBasePart.cs (2)
53if(value == null || value.Length == 0){ 95if (value == null || value.Length == 0){
net\System\Net\mail\QuotedPairReader.cs (2)
41Debug.Assert(0 <= index && index < data.Length, "Index out of range: " + index + ", " + data.Length);
net\System\Net\mail\QuotedStringFormatReader.cs (4)
41Debug.Assert(0 <= index && index < data.Length, "Index out of range: " + index + ", " + data.Length); 105Debug.Assert(0 <= index && index < data.Length, "Index out of range: " + index + ", " + data.Length);
net\System\Net\mail\SmtpClient.cs (4)
121if (host == null || host.Length == 0) { 156if (host != null && host.Length != 0) { 189for (int i = 0; i < clientDomainRaw.Length; i++) { 789if (host == null || host.Length == 0) {
net\System\Net\mail\SmtpDateTime.cs (2)
231if (offset.Length != offsetLength) 269for (int i = 0; i < value.Length; i++)
net\System\Net\mail\SmtpLoginAuthenticationModule.cs (1)
53if (domain!=null && domain.Length > 0) {
net\System\Net\mail\WhitespaceReader.cs (2)
41Debug.Assert(index < data.Length, "index was outside the bounds of the string"); 105Debug.Assert(index < data.Length, "index was outside the bounds of the string");
net\System\Net\NetWebProxyFinder.cs (5)
444if (!tryParse || uri.UserInfo.Length > 0 || uri.HostNameType == UriHostNameType.Basic || uri.AbsolutePath.Length != 1 || proxyAuthority[proxyAuthority.Length - 1] == '/' || proxyAuthority[proxyAuthority.Length - 1] == '#' || proxyAuthority[proxyAuthority.Length - 1] == '?')
net\System\Net\NetworkCredential.cs (1)
219if (domainUserName.Length != 0)
net\System\Net\NetworkInformation\PhysicalAddress.cs (4)
109buffer = new byte[(address.Length+1)/3]; 113if(address.Length % 2 > 0){ //should be even 117buffer = new byte[address.Length/2]; 121for (int i = 0; i < address.Length; i++ ) {
net\System\Net\SecureProtocols\_SslState.cs (1)
172if (targetHost.Length == 0) {
net\System\Net\ServicePoint.cs (4)
679Debug.Assert(connectionGroupPrefixSafeInternal.Length > connectionGroupPrefixSafe.Length); 680Debug.Assert(connectionGroupPrefixUnsafeInternal.Length > connectionGroupPrefixUnsafe.Length);
net\System\Net\SocketPermission.cs (5)
809int len = hostname.Length; 830for (int i = 0; i < hostname.Length; i++) { 849if(this.Hostname.Length == 0 || e.Hostname.Length == 0) { 1212for(int i=0; i < name.Length; ++i) {
net\System\Net\Sockets\Socket.cs (2)
1436if (fileName != null && fileName.Length>0) { 3616if (fileName != null && fileName.Length>0) {
net\System\Net\UnsafeNativeMethods.cs (2)
3396if (plainString == null || plainString.Length == 0) 3401secureString = new SecureString(pch, plainString.Length);
net\System\Net\webclient.cs (7)
160if ((value == null) || (value.Length == 0)) { 936if ((accept != null) && (accept.Length > 0)) { 939if ((connection != null) && (connection.Length > 0)) { 942if ((contentType != null) && (contentType.Length > 0)) { 945if ((expect != null) && (expect.Length > 0)) { 948if ((referrer != null) && (referrer.Length > 0)) { 951if ((userAgent != null) && (userAgent.Length > 0)) {
net\System\Net\WebHeaderCollection.cs (44)
308if (value!=null && value.Length>ushort.MaxValue) { 328if (value!=null && value.Length>ushort.MaxValue) { 347if (value!=null && value.Length>ushort.MaxValue) { 360if (value!=null && value.Length>ushort.MaxValue) { 393if (headerValue!=null && headerValue.Length>ushort.MaxValue) { 464if (name == null || name.Length == 0) { 482for(int i = 0; i < name.Length; ++i) { 541return (token.Length > 0) 547for (int i = 0; i < token.Length; ++i) { 623if (value!=null && value.Length>ushort.MaxValue) { 666if (value!=null && value.Length>ushort.MaxValue) { 700if (value!=null && value.Length>ushort.MaxValue) { 718if (value!=null && value.Length>ushort.MaxValue) { 1100return myString.Length; 1103if (myString.Length==0) { 1115byte[] bytes = new byte[myString.Length]; 1116if (myString.Length!=0) { 1117GetBytes(myString, 0, myString.Length, bytes, 0); 1132for (int i = 0; i < input.Length; i++) { 1142byte[] rawBytes = new byte[input.Length]; 1143for (int i = 0; i < input.Length; i++) { 1489if (headerName.Length>0) { 1734valueAccumulator = new StringBuilder(s, s.Length * 5); 1765if (sValue.Length != 0) 1786if (s.Length < headerNameLength || CaseInsensitiveAscii.AsciiToLower[byteBuffer[iBeginName]] != CaseInsensitiveAscii.AsciiToLower[s[0]]) 1790if (s.Length > headerNameLength) 1795for (j = 1; j < s.Length; j++) 1801if (j == s.Length) 1864if (m_CommonHeaders != null && name != null && name.Length > 0 && name[0] < 256) 1874if (s.Length < name.Length || CaseInsensitiveAscii.AsciiToLower[name[0]] != CaseInsensitiveAscii.AsciiToLower[s[0]]) 1878if (s.Length > name.Length) 1882for (j = 1; j < s.Length; j++) 1888if (j == s.Length) 2014int myHashCode = myString.Length; 2032int result = firstString.Length - secondString.Length; 2033int comparisons = result > 0 ? secondString.Length : firstString.Length; 2048int myHashCode = myString.Length; 2063int index = firstString.Length; 2064if (index==secondString.Length) { 2066int comparisons = firstString.Length;
net\System\Net\WebPermission.cs (4)
1003&& (M.Length == s.Length)) { // ... and the whole string matched 1016&& (M.Length == s.Length)) { // ... and the whole string matched 1138&& (M.Length == uriString.Length)) { // ... and the whole string matched 1149&& (M.Length == uriString.Length)) { // ... and the whole string matched
net\System\Net\webproxy.cs (4)
366if (local != null && local.Length == (hostString.Length - dot) && 367string.Compare(local, 0, hostString, dot, local.Length, StringComparison.OrdinalIgnoreCase ) == 0) { 697return proxyName==null || proxyName.Length==0 ? null : new Uri("http://" + proxyName);
net\System\Net\WebRequest.cs (8)
138int LookupLength = LookupUri.Length; 159if (LookupLength >= Current.Prefix.Length) { 169Current.Prefix.Length, 390cookedUri = cookedUri.Substring(0, cookedUri.Length - 1); 407if (prefix.Length > Current.Prefix.Length) { 414if (prefix.Length == Current.Prefix.Length) {
net\System\Net\WebSockets\WebSocketProtocolComponent.cs (21)
41NameLength = (uint)HttpKnownHeaderNames.Connection.Length, 43ValueLength = (uint)HttpKnownHeaderNames.Upgrade.Length 48NameLength = (uint)HttpKnownHeaderNames.Upgrade.Length, 50ValueLength = (uint)WebSocketHelpers.WebSocketUpgradeToken.Length 161NameLength = (uint)HttpKnownHeaderNames.Connection.Length, 163ValueLength = (uint)HttpKnownHeaderNames.Upgrade.Length 168NameLength = (uint)HttpKnownHeaderNames.Upgrade.Length, 170ValueLength = (uint)WebSocketHelpers.WebSocketUpgradeToken.Length 175NameLength = (uint)HttpKnownHeaderNames.Host.Length, 182NameLength = (uint)HttpKnownHeaderNames.SecWebSocketVersion.Length, 184ValueLength = (uint)s_SupportedVersion.Length 189NameLength = (uint)HttpKnownHeaderNames.SecWebSocketKey.Length, 191ValueLength = (uint)s_DummyWebsocketKeyBase64.Length 482NameLength = (uint)HttpKnownHeaderNames.Connection.Length, 484ValueLength = (uint)HttpKnownHeaderNames.Upgrade.Length 489NameLength = (uint)HttpKnownHeaderNames.Upgrade.Length, 491ValueLength = (uint)WebSocketHelpers.WebSocketUpgradeToken.Length 496NameLength = (uint)HttpKnownHeaderNames.SecWebSocketAccept.Length, 498ValueLength = (uint)acceptValue.Length 805(httpHeader.Name != null && length != httpHeader.Name.Length)) 828(httpHeader.Value != null && length != httpHeader.Value.Length))
net\System\Net\WebUtility.cs (11)
80Debug.Assert(0 <= index && index <= value.Length, "0 <= index && index <= value.Length"); 83int cch = value.Length - index; 180int l = value.Length; 192if (entity.Length > 1 && entity[0] == '#') { 275Debug.Assert(0 <= startPos && startPos <= s.Length, "0 <= startPos && startPos <= s.Length"); 278int cch = s.Length - startPos; 289return s.Length - cch; 294return s.Length - cch; 298return s.Length - cch; 495int count = value.Length; 708for (int i = 0; i < s.Length; i++) {
net\System\URI.cs (114)
254if (m_Syntax.SchemeName.Length > 32) 305for (int i = 0; i < schemeHost.Length; ++i) 560for (int i=0; i < relativeStr.Length; ++i) 577if (CheckSchemeSyntax(sptr, (ushort) scheme.Length, ref syntax) == ParsingError.None) { 580if (i+1 < relativeStr.Length) { 599if (relativeStr.Length == 0) { 656if (uriString.Length != 0) 900if (path.Length == 0) { 906while (current < path.Length) { 909next = path.Length - 1; 1065for (int i = 0; i < str.Length; ++i) { 1082result = new char [host.Length + 3 + m_Info.Offset.Fragment - m_Info.Offset.Path ]; 1090UriHelper.UnescapeString(host, 0, host.Length, result, ref count, c_DummyChar, c_DummyChar, 1263} else if (m_Info.Host.Length == 0) { 1273ret = ret.Substring(1, ret.Length - 2); 1284char[] dest = new char[ret.Length]; 1286UriHelper.UnescapeString(ret, 0, ret.Length, dest, ref count, c_DummyChar, c_DummyChar, 1357if ((object)name == null || name.Length == 0 || name.Length > short.MaxValue) { 1360int end = name.Length; 1364if (name[0] == '[' && name[name.Length-1] == ']') { 1366if (IPv6AddressHelper.IsValid(fixedName, 1, ref end) && end == name.Length) { 1370end = name.Length; 1371if (IPv4AddressHelper.IsValid(fixedName, 0 , ref end, false, false, false) && end == name.Length) { 1374end = name.Length; 1376if (DomainNameHelper.IsValid(fixedName, 0, ref end, ref dummyBool, false) && end == name.Length) { 1380end = name.Length; 1383&& end == name.Length) { 1389end = name.Length+2; 1393if (IPv6AddressHelper.IsValid(newFixedName, 1, ref end) && end == name.Length) { 1499if ((index < 0) || (index >= pattern.Length)) { 1503&& (pattern.Length - index >= 3)) { 1536if ((pattern.Length - index) < 3) { 1564|| (schemeName.Length == 0) 1568for (int i = schemeName.Length - 1; i > 0; --i) { 1774if (m_String.Length == obj.m_String.Length) { 1780int i = (m_String.Length-1); 1881if (me.Length != she.Length) { 1888char *endMe = pMe + me.Length; 1889char *endShe = pShe + me.Length; 1974char[] dest = UriHelper.EscapeString(rawString, 0, rawString.Length, null, ref position, true, '?', '#', '%'); 1987int length = uriString.Length; 2039ushort length = (ushort) m_String.Length; 2247m_Flags |= (Flags)m_String.Length; 2249m_String += m_originalUnicodeString.Substring(idx, m_originalUnicodeString.Length - idx); 2270info.Offset.End = (ushort)m_String.Length; 2300idx = (ushort)m_Syntax.SchemeName.Length; 2396info.Offset.End = (ushort)m_originalUnicodeString.Length; 2489if (host.Length != 0) 2499result = CheckCanonical(pHost, ref idx, (ushort)host.Length, c_DummyChar); 2521char[] dest = UriHelper.EscapeString(host, 0, host.Length, null, ref position, true, '?', 2539for (int i=0 ; i < host.Length; ++i) { 2595if (host.Length == 0) { 2629if (host.Length >= c_MaxUriBufferSize) 2638if (CheckAuthorityHelper(pHost, 0, (ushort)host.Length, ref err, ref flags, m_Syntax, ref newHost) != 2639(ushort)host.Length) 2654host = CreateHostStringHelper(host, 0, (ushort)host.Length, ref flags, ref m_Info.ScopeId); 2655for (int i=0 ; i < host.Length; ++i) { 2669if ((object)portStr == null || portStr.Length == 0) 2678for (int idx=0; idx < portStr.Length; ++idx) 2781char[] chars = new char[stemp.Length + count + m_Syntax.SchemeName.Length + 3 + 1]; 2786m_Syntax.SchemeName.CopyTo(0, chars, count, m_Syntax.SchemeName.Length); 2787count += m_Syntax.SchemeName.Length; 2850if ((parts & UriComponents.Host) != 0 && stemp.Length != 0) 2877hostPtr, 0, stemp.Length, ref allAscii, ref atLeastOneValidIdn); 2885chars = UriHelper.UnescapeString(stemp, 0, stemp.Length, chars, ref count, '/', '?', '#', mode, 2892m_Info.ScopeId.CopyTo(0, chars, count-1, m_Info.ScopeId.Length); 2893count += m_Info.ScopeId.Length; 2914stemp.CopyTo(0, chars, count, stemp.Length); 2915count += stemp.Length; 2923stemp.CopyTo(0, chars, count, stemp.Length); 2924count += stemp.Length; 3095if (m_Info.Offset.Scheme == 0 && m_Info.Offset.End == m_String.Length) 3106if (m_Info.Offset.Scheme == 0 && m_Info.Offset.Fragment == m_String.Length) 3117if (m_Info.Offset.Scheme == 0 && m_Info.Offset.Fragment == m_String.Length) 3199if (m_Info.Offset.Scheme == 0 && m_Info.Offset.End == m_String.Length) 3253ushort length = (ushort)m_String.Length; 3275ushort syntaxLength = (ushort)m_Syntax.SchemeName.Length; 3343m_Info.Offset.Path = (ushort)m_String.Length; 3348FindEndOfComponent(m_originalUnicodeString, ref origIdx, (ushort)m_originalUnicodeString.Length, c_DummyChar); 3351FindEndOfComponent(m_originalUnicodeString, ref origIdx, (ushort)m_originalUnicodeString.Length, 3370if (!ServicePointManager.AllowAllUriEncodingExpansion && m_String.Length > ushort.MaxValue){ 3375length = (ushort)m_String.Length; 3473if (origIdx < m_originalUnicodeString.Length && m_originalUnicodeString[origIdx] == '?'){ 3475FindEndOfComponent(m_originalUnicodeString, ref origIdx, (ushort)m_originalUnicodeString.Length, ((syntaxFlags &(UriSyntaxFlags.MayHaveFragment)) != 0) ? '#' : c_EOL); 3492if (!ServicePointManager.AllowAllUriEncodingExpansion && m_String.Length > ushort.MaxValue){ 3497length = (ushort)m_String.Length; 3530if (origIdx < m_originalUnicodeString.Length && m_originalUnicodeString[origIdx] == '#') 3533FindEndOfComponent(m_originalUnicodeString, ref origIdx, (ushort)m_originalUnicodeString.Length, c_EOL); 3550if (!ServicePointManager.AllowAllUriEncodingExpansion && m_String.Length > ushort.MaxValue){ 3555length = (ushort)m_String.Length; 3986if (!ServicePointManager.AllowAllUriEncodingExpansion && newHost.Length > ushort.MaxValue){ 5009(relativePart.Length == 1 || (relativePart[1] != '/' && relativePart[1] != '\\'))) 5028if(relativePart.Length >= 2 && (relativePart[1] == '\\' || relativePart[1] == '/')) { 5038for (int i = 1; i < share.Length; ++i) { 5072if (relativePart.Length >= 2 && relativePart[1] == '/') { 5099int length = left.Length; 5100char[] path = new char[length + relativePart.Length]; 5113relativePart.CopyTo(0, path, length, relativePart.Length); 5127for (;i < relativePart.Length; ++i) { 5135else if (i < relativePart.Length) { 5141length += relativePart.Length; 5207for (i = 0; (i < path1.Length) && (i < path2.Length); ++i) { 5223if ((i == path1.Length) && (i == path2.Length)) { 5229for (; i < path1.Length; ++i) { 5235if (relPath.Length == 0 && path2.Length - 1 == si) 5366char[] dest = new char[path.Length]; 5368dest = UriHelper.UnescapeString(path, 0, path.Length, dest, ref count, c_DummyChar, c_DummyChar, 5384char[] dest = UriHelper.EscapeString(str, 0, str.Length, null, ref destStart, true, '?', '#', '%');
net\System\uribuilder.cs (20)
150if (value.Length > 0) { 157end = value.Length; 185if (value.Length > 0) { 239if ((value == null) || (value.Length == 0)) { 277if (value.Length > 0) { 302if (value.Length != 0) 348StringBuilder sb = new StringBuilder(path.Length); 351for (int i = 0; i < path.Length; ++i) { 389if (userInfo.Length > 0) { 408if (m_username.Length == 0 && m_password.Length > 0) { 412if (m_scheme.Length != 0) 417(m_host.Length != 0 && syntax.NotAny(UriSyntaxFlags.MailToLikeUri) && syntax.InFact(UriSyntaxFlags.OptionalAuthority )) 421m_schemeDelimiter = m_host.Length != 0? Uri.SchemeDelimiter: ":"; 424string result = m_scheme.Length != 0? (m_scheme + m_schemeDelimiter): string.Empty; 427+ ((m_password.Length > 0) ? (":" + m_password) : String.Empty) 428+ ((m_username.Length > 0) ? "@" : String.Empty) 430+ (((m_port != -1) && (m_host.Length > 0)) ? (":" + m_port) : String.Empty) 431+ (((m_host.Length > 0) && (m_path.Length != 0) && (m_path[0] != '/')) ? "/" : String.Empty) + m_path
net\System\UriExt.cs (30)
67(uriKind == UriKind.Relative || (m_String.Length >= 2 && (m_String[0] != '\\' || m_String[1] != '\\')))) 238m_String = EscapeUnescapeIri(m_originalUnicodeString, 0, m_originalUnicodeString.Length, 265int length = data.Length; 292char[] chars = new char[data.Length]; 295chars = UriHelper.UnescapeString(data, 0, data.Length, chars, ref count, c_DummyChar, c_DummyChar, 313for (int i = 0; i < data.Length - 2; ++i) 497return (CheckCanonical(str, ref idx, (ushort)m_String.Length, c_EOL) 526idx = (ushort)(m_Info.Offset.Scheme + m_Syntax.SchemeName.Length + 2); 582idx = (ushort)m_Syntax.SchemeName.Length; 584if (idx + 1 >= m_String.Length || str[idx] != '/' || str[idx + 1] != '/') 603if (stringToUnescape.Length == 0) 610for (position = 0; position < stringToUnescape.Length; ++position) 614if (position == stringToUnescape.Length) 619char[] dest = new char[stringToUnescape.Length]; 620dest = UriHelper.UnescapeString(stringToUnescape, 0, stringToUnescape.Length, dest, ref position, 636if (stringToEscape.Length == 0) 640char[] dest = UriHelper.EscapeString(stringToEscape, 0, stringToEscape.Length, null, ref position, true, 655if (stringToEscape.Length == 0) 659char[] dest = UriHelper.EscapeString(stringToEscape, 0, stringToEscape.Length, null, ref position, false, 763if (relativeStr.Length > 0 && (IsLWS(relativeStr[0]) || IsLWS(relativeStr[relativeStr.Length - 1]))) 766if (relativeStr.Length == 0) 790if (relativeStr.Length >= 3 836if (m_String.Length == 0) 839char[] dest = UriHelper.EscapeString(m_String, 0, m_String.Length, null, ref position, true, 851if (m_String.Length == 0) 854char[] dest = new char[m_String.Length]; 856dest = UriHelper.UnescapeString(m_String, 0, m_String.Length, dest, ref position, c_DummyChar, 985return UriHelper.TestForSubPath(pMe, (ushort)me.Length, pShe, (ushort)she.Length,
net\System\UriScheme.cs (1)
177if (schemeName.Length == 1)
parent\parent\parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (3)
81if (frameworkName == null || frameworkName.Length == 0) 100if (identifier.Length == 0) 133if (value.Length > 0 && (value[0] == c_versionValuePrefix || value[0] == 'V'))
regex\system\text\regularexpressions\Regex.cs (15)
698for (int i = 0; i < name.Length; i++) { 767return IsMatch(input, UseOptionR() ? input.Length : 0); 786return (null == Run(true, -1, input, 0, input.Length, startat)); 841return Match(input, UseOptionR() ? input.Length : 0); 856return Run(false, -1, input, 0, input.Length, startat); 928return Matches(input, UseOptionR() ? input.Length : 0); 946return new MatchCollection(this, input, 0, input.Length, startat); 1001return Replace(input, replacement, -1, UseOptionR() ? input.Length : 0); 1018return Replace(input, replacement, count, UseOptionR() ? input.Length : 0); 1101return Replace(input, evaluator, -1, UseOptionR() ? input.Length : 0); 1119return Replace(input, evaluator, count, UseOptionR() ? input.Length : 0); 1189return Split(input, 0, UseOptionR() ? input.Length : 0); 1206return RegexReplacement.Split(this, input, count, UseOptionR() ? input.Length : 0); 1290if (startat < 0 || startat > input.Length) 1293if (length < 0 || length > input.Length)
regex\system\text\regularexpressions\RegexBoyerMoore.cs (16)
45Debug.Assert(pattern.Length != 0, "RegexBoyerMoore called with an empty string. This is bad for perf"); 60StringBuilder sb = new StringBuilder(pattern.Length); 61for (int i=0; i<pattern.Length; i++) 73last = pattern.Length - 1; 77beforefirst = pattern.Length; 97_positive = new int[pattern.Length]; 232if( text.Length - index < _pattern.Length) { 237for( int i = 0; i < _pattern.Length; i++) { 246return(0 == String.CompareOrdinal(_pattern, 0, text, index, _pattern.Length)); 256if (index < beglimit || endlimit - index < _pattern.Length) 262if (index > endlimit || index - beglimit < _pattern.Length) 265return MatchPattern(text, index - _pattern.Length); 292defadv = _pattern.Length; 293startmatch = _pattern.Length - 1; 299defadv = -_pattern.Length;
regex\system\text\regularexpressions\RegexCapture.cs (1)
100return _text.Substring(_index + _length, _text.Length - _index - _length);
regex\system\text\regularexpressions\RegexCharClass.cs (17)
488WordClass = "\x00\x00" + (char) Word.Length + Word; 489NotWordClass = "\x01\x00" + (char) Word.Length + Word;; 569if (_canonical && RangeCount() > 0 && set.Length > 0 && 573for (i = 0; i < set.Length - 1; i += 2) { 577if (i < set.Length) { 743StringBuilder sb = new StringBuilder(set.Length + category.Length + 3); 745if (set.Length >= 2 && set[0] =='\0' && set[1] == '\0') { 747sb.Append((char) (set.Length - 2)); 748sb.Append((char) category.Length); 753sb.Append((char) set.Length); 754sb.Append((char) category.Length); 805return (charClass.Length > SETSTART + charClass[SETLENGTH] + charClass[CATEGORYLENGTH]); 841if (set.Length > myEndPosition) { 993StringBuilder sb = new StringBuilder(category.Length); 995for (int i=0; i<category.Length; i++) { 1028if (charClass.Length > myEndPosition)
regex\system\text\regularexpressions\RegexCompilationInfo.cs (1)
90if (value.Length == 0) {
regex\system\text\regularexpressions\RegexCompiler.cs (16)
225if (regexes[i].Namespace.Length == 0) 1245last = _bmPrefix._pattern.Length - 1; 1248beforefirst = _bmPrefix._pattern.Length; 1263Ldc(_bmPrefix._pattern.Length - 1); 1267Ldc(_bmPrefix._pattern.Length); 1276Ldc(_bmPrefix._pattern.Length); 1278Ldc(-_bmPrefix._pattern.Length); 1339for (i = _bmPrefix._pattern.Length - 2; i >= 0; i--) { 1346charindex = _bmPrefix._pattern.Length - 1 - i; 2485Ldc(str.Length); 2492for (i = 0; i < str.Length; i++) { 2508Ldc(str.Length); 2530Ldc(str.Length); 2537for (i = str.Length; i > 0;) { 2541Ldc(str.Length - i); 2553Ldc(str.Length);
regex\system\text\regularexpressions\RegexFCD.cs (2)
454if (node._str.Length == 0) 459PushFC(new RegexFC(node._str[node._str.Length - 1], false, false, ci));
regex\system\text\regularexpressions\RegexInterpreter.cs (3)
243if (runtextend - runtextpos < (c = str.Length)) 249if (runtextpos - runtextbeg < (c = str.Length)) 267pos += str.Length;
regex\system\text\regularexpressions\RegexMatch.cs (1)
93System.Diagnostics.Debug.Assert(!(_textbeg < 0 || _textstart < _textbeg || _textend < _textstart || _text.Length < _textend),
regex\system\text\regularexpressions\RegexMatchCollection.cs (1)
50if (startat < 0 || startat > input.Length)
regex\system\text\regularexpressions\RegexParser.cs (10)
110for (int i = 0; i < input.Length; i++) { 137while (i < input.Length) { 147} while (i < input.Length); 160for (int i = 0; i < input.Length; i++) { 171if (i < input.Length) 175while (i < input.Length && input[i] != '\\') 179} while (i < input.Length); 1886StringBuilder sb = new StringBuilder(str.Length); 1887for (int i=0; i<str.Length; i++) 2151return _pattern.Length - _currentPos;
regex\system\text\regularexpressions\RegexReplacement.cs (11)
190if (startat < 0 || startat > input.Length) 219if (prevat < input.Length) 220sb.Append(input, prevat, input.Length - prevat); 224int prevat = input.Length; 269if (startat < 0 || startat > input.Length) 301if (prevat < input.Length) 302sb.Append(input, prevat, input.Length - prevat); 306int prevat = input.Length; 347if (startat < 0 || startat > input.Length) 391al.Add(input.Substring(prevat, input.Length - prevat)); 394int prevat = input.Length;
regex\system\text\regularexpressions\RegexWriter.cs (1)
294if (prefix != null && prefix.Prefix.Length > 0)
security\system\security\cryptography\bigint.cs (1)
450int length = decNum.Length;
security\system\security\cryptography\x509\x509certificate2.cs (10)
450if (simpleName.Length > 0) { 456if (emailName.Length > 0) { 462if (upnName.Length > 0) { 468if (dnsName.Length > 0) { 480if (simpleName.Length > 0) { 486if (emailName.Length > 0) { 492if (upnName.Length > 0) { 498if (dnsName.Length > 0) { 1042if (name == null || name.Length == 0) 1375DataBlob.cbData = 2 * ((uint) name.Length + 1);
security\system\security\cryptography\x509\x509certificate2collection.cs (2)
894if (eku.Length == 0) 931if (certPolicy.Length == 0)
security\system\security\cryptography\x509\x509extension.cs (5)
46if (base.Oid.Value.Length == 0) 485X509Utils.AlignedLength((uint) (objId.Length + 1)) + 492IntPtr pbParameters = new IntPtr((long) pszObjId + X509Utils.AlignedLength(((uint) (objId.Length + 1)))); 496byte[] szObjId = new byte[objId.Length + 1]; 497Encoding.ASCII.GetBytes(objId, 0, objId.Length, szObjId, 0);
security\system\security\cryptography\x509\x509utils.cs (10)
230return DiscardWhiteSpaces(inputBuffer, 0, inputBuffer.Length); 248uint cbHex = (uint) hexString.Length / 2; 316byte[] arr = new byte[s.Length + 1]; 317Encoding.ASCII.GetBytes(s, 0, s.Length, arr, 0); 327byte[] arr = new byte[2 * (s.Length + 1)]; 328Encoding.Unicode.GetBytes(s, 0, s.Length, arr, 0); 394if (keyValue.Length == 0) 455int len = keyValue.Length; 505oidSize += (oidStr.Length + 1); 514pOid = new IntPtr((long)pOid + oidStrs[index].Length + 1);
services\io\system\io\FileSystemWatcher.cs (2)
144if (path.Length == 0 || !Directory.Exists(path)) 661if (directory.Length != 0 && enabled == true)
services\io\system\io\PatternMatcher.cs (10)
143if (name == null || name.Length == 0 || expression == null || expression.Length == 0) { 166int rightLength = expression.Length - 1; 170if (name.Length >= rightLength && String.Compare(expression, 1, name, name.Length - rightLength, rightLength, StringComparison.OrdinalIgnoreCase) == 0) { 228maxState = expression.Length * 2; 231if (nameOffset < name.Length) { 270if ( exprOffset == expression.Length ) { 283if (exprOffset == expression.Length) { 334int nameLength = name.Length;
services\monitoring\system\diagnosticts\EventLog.cs (22)
403if (logName == null || logName.Length==0) 407if (source == null || source.Length==0) 409if (source.Length + EventLogKey.Length > 254) 410throw new ArgumentException(SR.GetString(SR.ParameterTooLong, "source", 254 - EventLogKey.Length)); 463if (logKey == null && logName.Length >= 8) { 594if (logName == null || logName.Length==0) 725if ( string.Compare(keyname, index+1, source, 0, keyname.Length - index, StringComparison.Ordinal) == 0 ) 806if (logName == null || logName.Length==0) 846if ( currentLogName.Length >= 8 && 871if (source != null && source.Length != 0) { 1187if (logName.Length > 8) 1242for (int i = 0; i < formatString.Length; i++) { 1245if(formatString.Length > i + 1) { 1247while (i + 1 < formatString.Length && Char.IsDigit(formatString[i + 1])) { 1335if (msg.Length > 1 && msg[msg.Length-1] == '\n') 1336msg = msg.Substring(0, msg.Length-2); 1358if (logName.Length == 0 && !ignoreEmpty) 1494if (source.Length + EventLogKey.Length > 254) 1495throw new ArgumentException(SR.GetString(SR.ParameterTooLong, "source", 254 - EventLogKey.Length));
services\monitoring\system\diagnosticts\EventLogEntry.cs (3)
430int msgLength = msg.Length; 525if (fileNames[i].Length >= 2 && fileNames[i][1] == ':') { 531result.Append(fileNames[i], 2, fileNames[i].Length - 2);
services\monitoring\system\diagnosticts\EventLogInternal.cs (11)
310if (logName == null || logName.Length == 0) { 322if ((logName == null || logName.Length == 0) && sourceName != null && sourceName.Length!=0) { 834if (dllName == null || dllName.Length == 0) 1286if (logname == null || logname.Length==0) 1326if (sourceName == null || sourceName.Length==0) 1495if (logName.Length == 0 && !ignoreEmpty) 1619if (Source.Length == 0) 1650if (Source.Length == 0) 1694if (strings[i].Length > 32766) 1700if (Source.Length == 0)
services\monitoring\system\diagnosticts\FileVersionInfo.cs (2)
311if (s.Length == 8) { 316for (int l = s.Length;l<8; l++) {
services\monitoring\system\diagnosticts\InstanceDataCollection.cs (1)
64if (instanceName.Length == 0)
services\monitoring\system\diagnosticts\PerformanceCounter.cs (2)
564if (instanceName != null && instanceName.Length != 0) 570if (instanceName == null || instanceName.Length == 0)
services\monitoring\system\diagnosticts\PerformanceCounterCategory.cs (15)
59if (categoryName.Length == 0) 84if (value.Length == 0) 186if (categoryName.Length == 0) 275if (categoryName.Length > (1024 - SharedPerformanceCounter.DefaultFileMappingName.Length)) 289if (id.Length == 0 || id.Length > maxLength) 292for (int index = 0; index < id.Length; ++index) { 295if ((index == 0 || index == (id.Length -1)) && current == ' ') 311if (help.Length > MaxHelpLength) 319if (counterData[i].CounterName == null || counterData[i].CounterName.Length == 0) { 370if (counterData[i].CounterHelp == null || counterData[i].CounterHelp.Length == 0) { 428if (categoryName.Length == 0) 482if (instanceName.Length != 0 && !InstanceExists(instanceName)) 560if (categoryName.Length == 0)
services\monitoring\system\diagnosticts\PerformanceCounterLib.cs (1)
1565if (instanceName.Length > SharedPerformanceCounter.InstanceNameMaxLength)
services\monitoring\system\diagnosticts\Process.cs (8)
872if (processName.Length == 15 && ProcessManager.IsNt && ProcessManager.IsOSOlderThanXP && !isRemoteMachine) { 1874if (startInfo.FileName.Length == 0) 2058if (startInfo.UserName.Length != 0) { 2234if (startInfo.FileName.Length != 0) 2236if (startInfo.Verb.Length != 0) 2238if (startInfo.Arguments.Length != 0) 2240if (startInfo.WorkingDirectory.Length != 0) 2411if( processName.Length != 0) {
services\monitoring\system\diagnosticts\ProcessManager.cs (7)
310if (machineName.Length == 0) 692&& moduleInfo.fileName.Length >= 4 852if (processName.Length == 15) { 1187if (ProcessManager.IsOSOlderThanXP && (processName.Length == 15)) { 1249for (int i = 0; i < name.Length; i++) { 1257period = name.Length - 1; // set to end of string 1267period = name.Length - 1; // set to end of string
services\monitoring\system\diagnosticts\ProcessStartInfo.cs (1)
297if (extension != null && extension.Length > 0) {
services\monitoring\system\diagnosticts\SharedPerformanceCounter.cs (19)
106if (instanceName != null && instanceName.Length > InstanceNameMaxLength) 208categoryNameLength = (categoryName.Length + 1) * 2; 211totalSize += (((string)categoryData.CounterNames[i]).Length + 1) * 2; 231instanceNameLength = (instanceName.Length +1) * 2; 292nextPtr += (counterName.Length + 1) * 2; 305nextPtr += (counterName.Length + 1) * 2; 348instanceNameLength = (instanceName.Length +1) * 2; 353totalSize += (((string)categoryData.CounterNames[i]).Length + 1) * 2; 421nextPtr += (counterName.Length + 1) * 2; 452int counterNameLength = (counterName.Length + 1) * 2; 551for(uint i=0; i < wstr.Length; i++) 583for (i=0; i<stringA.Length; i++) { 715if (instanceName != null && instanceName.Length != 0) 1049Debug.Assert(((instanceName.Length + 1) * 2) <= InstanceNameSlotSize, "The instance name length should always fit in our slot size"); 1060hasFit = (length == instanceName.Length); 1322if (instanceName == null || instanceName.Length == 0) 1643char[] tmp = new char[str.Length + 1]; 1644str.CopyTo(0, tmp, 0, str.Length); 1645tmp[str.Length] = '\0'; // make sure the char[] is null terminated
services\monitoring\system\diagnosticts\SharedUtils.cs (1)
280if (majorVersion.Length > 1 && majorVersion[0] == 'v' && majorVersion.Contains(".")) {
sys\system\configuration\SettingsPropertyValue.cs (2)
179if (type == typeof(string) && (attValue == null || attValue.Length < 1 || serializeAs == SettingsSerializeAs.String)) 183if (attValue == null || attValue.Length < 1)
sys\system\io\ports\InternalResources.cs (3)
108if (str.Length == 0) 114if (str.Length == 0) 124if (str.Length == 0)
sys\system\io\ports\SerialPort.cs (9)
355if (value.Length == 0) 414if (value.Length ==0) 1231if (value.Length == 0) 1239char lastValueChar = value[value.Length-1]; 1277if (lastValueChar == (char) singleCharBuffer[numCharsRead-1] && (currentLine.Length >= value.Length)) { 1281for (int i=2; i<=value.Length; i++) { 1282if (value[value.Length-i] != currentLine[currentLine.Length-i]) { 1290string ret = currentLine.ToString(0, currentLine.Length - value.Length); 1342if (text.Length == 0) return;
sys\system\runtime\versioning\FrameworkName.cs (4)
111if (identifier.Trim().Length == 0) { 132if (frameworkName.Length == 0) { 149if (m_identifier.Length == 0) { 178if (value.Length > 0 && (value[0] == c_versionValuePrefix || value[0] == 'V')) {
sys\system\security\accesscontrol\semaphoresecurity.cs (1)
139if ((name != null) && (name.Length != 0))
sys\system\threading\semaphore.cs (7)
65if(null != name && MAX_PATH < name.Length) 75if(null != name && 0 != name.Length && NativeMethods.ERROR_INVALID_HANDLE == errorCode) 117if(null != name && MAX_PATH < name.Length) 143if(null != name && 0 != name.Length && NativeMethods.ERROR_INVALID_HANDLE == errorCode) 252if(name.Length == 0) 256if(null != name && MAX_PATH < name.Length) 281if (null != name && 0 != name.Length && NativeMethods.ERROR_INVALID_HANDLE == errorCode)
System.Activities (19)
System\Activities\Debugger\DebugInfo.cs (2)
399value = value.Substring(0, value.Length - 1); // remove the suffix 469stringValue = stringValue.Substring(0, stringValue.Length - 1);
System\Activities\Debugger\State.cs (2)
144if (result.Length > 255) 215if (newFileName.Length > 255)
System\Activities\RuntimeArgument.cs (1)
500int byteLength = s.Length * sizeof(char);
System\Activities\Statements\MethodResolver.cs (1)
120if (int.TryParse(name.Substring(paramArrayBaseName.Length), NumberStyles.Integer, NumberFormatInfo.CurrentInfo, out n))
System\Activities\Validation\ActivityValidationServices.cs (2)
270if (exceptionString.Length > maxExceptionStringSize) 274exceptionString = exceptionString.Substring(0, maxExceptionStringSize - snipNotification.Length);
System\Activities\WorkflowIdentity.cs (4)
238for (int i = 0; i < value.Length; i++) 250return value.Length > 0 && 251(char.IsWhiteSpace(value[0]) || char.IsWhiteSpace(value[value.Length - 1])); 259for (int i = result.Length - 1; i >= 0; i--)
System\Activities\XamlIntegration\ActivityWithResultConverter.cs (2)
126string expressionText = text.Substring(1, text.Length - 2); 153text = text.Substring(1, text.Length - 1);
System\Activities\XamlIntegration\ActivityXamlServices.cs (1)
381int lengthOfName = dynamicActivity.Name.Length;
System\Activities\XamlIntegration\DynamicActivityXamlReader.cs (4)
490if (stringValue != null && stringValue.Trim().Length == 0) 585string clrNamespace = ns.Substring(clrNamespacePart.Length); 588if (lastIndex < 0 || lastIndex > clrNamespace.Length) 590lastIndex = clrNamespace.Length;
System.Activities.Core.Presentation (11)
System\Activities\Core\Presentation\FlowchartDesigner.ModelChangeReactions.cs (6)
153string switchCaseName = e.Key.Substring(0, e.Key.Length - CaseViewStateKeyAppendString.Length); 646Fx.Assert(propertyName.Length >= GenericFlowSwitchHelper.FlowSwitchCasesKeyIdentifier.Length, "Case property names should be prepended by the string GenericFlowSwitchHelper.FlowSwitchCasesKeyIdentifier"); 647link = GenericFlowSwitchHelper.CreateFlowSwitchLink(srcModelItem.ItemType, srcModelItem, propertyName.Substring(GenericFlowSwitchHelper.FlowSwitchCasesKeyIdentifier.Length), false); 699if (connectorCaseMI != null && caseName.Equals(propertyName.Substring(GenericFlowSwitchHelper.FlowSwitchCasesKeyIdentifier.Length))) 706if (GenericFlowSwitchHelper.FlowSwitchNullCaseKeyIdentifier.Equals(propertyName.Substring(GenericFlowSwitchHelper.FlowSwitchCasesKeyIdentifier.Length)))
System\Activities\Presentation\DynamicArgumentDesigner.xaml.cs (2)
583.Where<string>(p => 0 == string.Compare(p, 0, this.ArgumentPrefix, 0, this.ArgumentPrefix.Length, StringComparison.Ordinal)) 584.Select(p => p.Substring(this.ArgumentPrefix.Length));
System\ServiceModel\Activities\Presentation\ActivityXRefConverter.cs (1)
40else if (displayName.Length == 0)
System\ServiceModel\Activities\Presentation\ServiceContractImporter.cs (2)
186string faultName = faultReply.DisplayName.Substring(0, faultReply.DisplayName.Length - SendFaultReply.Length);
System.Activities.DurableInstancing (2)
System\Activities\DurableInstancing\SerializationUtilities.cs (2)
73(value.Value is string && ((string)value.Value).Length <= 4000) || 261return ((decimalAsString.Length - decimalAsString.IndexOf(".", StringComparison.Ordinal)) - 1 <= 18);
System.Activities.Presentation (35)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\DesignTimeXamlWriter.cs (2)
91if (nonassemblyQualifedNamespace[nonassemblyQualifedNamespace.Length - 1] == ';') 93nonassemblyQualifedNamespace = nonassemblyQualifedNamespace.Substring(0, nonassemblyQualifedNamespace.Length - 1);
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\SourceTextScanner.cs (6)
70SharedFx.Assert(index >= 0 && index < this.source.Length, "index out of range"); 120SharedFx.Assert(index >= 0 && index < this.source.Length, "invalid index"); 136if (startIndex >= this.source.Length) 168if (index < 0 || index >= this.source.Length) 174while (index < this.source.Length) 180if (index + 1 < this.source.Length && this.source[index + 1] == NewLine)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ViewStateIdManager.cs (2)
20if (separatorLocation == -1 || separatorLocation == 0 || separatorLocation == id.Length - 1) 28idParts[1] = id.Substring(separatorLocation + 1, id.Length - (separatorLocation + 1));
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\WorkflowDesignerXamlSchemaContext.cs (3)
202if (result[result.Length - 1] != ';') 229return string.IsNullOrEmpty(this.localAssemblyNsPostfix) ? ns : ns.Substring(0, ns.Length - this.localAssemblyNsPostfix.Length);
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\XamlNamespaceHelper.cs (2)
22int clrNsIndex = ClrNamespacePrefix.Length; 30assemblyIndex += ClrNamespaceAssemblyField.Length;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (2)
419if (a.PropertyName != null && a.PropertyName.Length > 0) 1599member.Name.Length > 3,
System.Activities.Presentation\System\Activities\Presentation\ExpressionHelper.cs (2)
108expressionText.IndexOf("\"", 1, StringComparison.CurrentCulture) == expressionText.Length - 1; 122var valueToConvert = isQuotedString ? expressionText.Substring(1, expressionText.Length - 2) : expressionText;
System.Activities.Presentation\System\Activities\Presentation\Expressions\ExpressionActivityEditor.cs (1)
165if (name != null && name.Trim().Length == 0)
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemExtensions.cs (4)
403indexString = indexString.Substring(0, indexString.Length - 1); 482if (nameDefaultPrefix.Length == 0) 497return (0 == string.Compare(value, 0, nameDefaultPrefix, 0, nameDefaultPrefix.Length, CultureInfo.CurrentCulture, CompareOptions.None)); 504return (int.TryParse(nameGetter(p).Substring(nameDefaultPrefix.Length), out result))
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxItemLoader.cs (2)
66if (entry.Length > 1 && (entry[0] != ';' && entry[0] != '#')) 70string categoryName = entry.Substring(1, entry.Length - 2);
System.Activities.Presentation\System\Activities\Presentation\View\BreadCrumbTextConverter.cs (1)
61if (breadCrumbText.Length > actualDisplayNameLength)
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (2)
1249tb.CaretIndex = tb.Text.Length; 1307textBox.CaretIndex = textBox.Text.Length;
System.Activities.Presentation\System\Activities\Presentation\View\ImportDesigner.xaml.cs (1)
391if (this.lastInput.Length > 0)
System.Activities.Presentation\System\Activities\Presentation\View\TypeBrowser.xaml.cs (1)
215this.GenericTypeName = strName.Substring(0, strName.Length - 2) + " <";
System.Activities.Presentation\System\Activities\Presentation\View\ViewUtilities.cs (1)
221if (indexOfDot < name.Length - 1)
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (3)
875if (this.Text.Length == 0 && 882if (this.Text.Length == 0) 1078context.ExpressionText.IndexOf("\"", 1, StringComparison.CurrentCulture) == context.ExpressionText.Length - 1;
System.AddIn (15)
System\Addin\AddInAttribute.cs (1)
39if (name.Length <= 0)
System\Addin\Hosting\AddInStore.cs (6)
75if (pipelineRootFolderPath.Length == 0) 377if (pipelineRootFolderPath.Length == 0) 480if (pipelineRootFolderPath.Length == 0) 576if (pipelineRootFolderPath.Length == 0) 580if (addInFilePath.Length == 0) 584if (addInTypeName.Length == 0 )
System\Addin\Hosting\Utils.cs (2)
159char lastChar = root[root.Length - 1]; 163String relPath = path.Substring(root.Length + skip);
System\Addin\MiniReflection\MetadataReader\AssemblyInfo.cs (1)
40if (m_Culture.Length == 0) m_Culture = null;
System\Addin\MiniReflection\MetadataReader\PEFileReader.cs (1)
361if ((Culture != null) && (Culture.Length == 0)) Culture = null;
System\Addin\MiniReflection\MiniAssembly.cs (2)
156if (assemblySimpleName == "mscorlib" && (cultureName.Length == 0 || cultureName == "neutral")) 291if ((culture != null) && (culture.Length == 0)) culture = null;
System\Addin\MiniReflection\TypeInfo.cs (2)
167if (simpleName == "mscorlib" && (culture.Length == 0) && Utils.PublicKeyMatches(mscorlib.GetName(), publicKeyOrToken)) 181(culture.Length == 0 ? "neutral" : culture), Utils.PublicKeyToString(publicKeyOrToken));
System.ComponentModel.DataAnnotations (10)
DataAnnotations\EmailAddressAttribute.cs (1)
44&& valueAsString[valueAsString.Length - 1] != '@');
DataAnnotations\MaxLengthAttribute.cs (1)
66length = str.Length;
DataAnnotations\MinLengthAttribute.cs (1)
51length = str.Length;
DataAnnotations\PhoneAttribute.cs (1)
123if (potentialExtension.Length == 0) {
DataAnnotations\RegularExpressionAttribute.cs (1)
74return (m.Success && m.Index == 0 && m.Length == stringValue.Length);
DataAnnotations\RequiredAttribute.cs (1)
43return stringValue.Trim().Length != 0;
DataAnnotations\StringLengthAttribute.cs (1)
56int length = value == null ? 0 : ((string)value).Length;
parent\parent\parent\parent\parent\parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (3)
81if (frameworkName == null || frameworkName.Length == 0) 100if (identifier.Length == 0) 133if (value.Length > 0 && (value[0] == c_versionValuePrefix || value[0] == 'V'))
System.Configuration (69)
parent\misc\ConfigPathUtility.cs (3)
32for (int examine = 0; examine <= configPath.Length; examine++) { 35if (examine < configPath.Length) { 110Debug.Assert(index != configPath.Length - 1);
System\Configuration\AppSettingsSection.cs (1)
107if ((File != null) && (File.Length > 0)) {
System\Configuration\BaseConfigurationRecord.cs (10)
2910if (parentConfigKey.Length == 0 && !inLocation) { 2937if (parentConfigKey.Length > 0 || inLocation) { 3372if ((this is RuntimeConfigurationRecord) && host != null && locationSubPath.Length != 0 && locationSubPath[0] != '.') { 3644if (trimmedSubPath.Length != subPath.Length) { 3656if (trimmedSubPath.Length != subPath.Length) { 3661if (invalidLastSubPathCharacters.IndexOf(subPath[subPath.Length-1]) != -1) { 3801if (trimmedConfigSource.Length != configSource.Length) {
System\Configuration\ClientConfigPaths.cs (5)
95applicationUri = applicationUri.Substring(FILE_URI_LOCAL.Length); 101applicationUri = applicationUri.Substring(FILE_URI.Length); 329if (combinedPath.Length < MAX_PATH) { 535if (lastDot != -1 && lastDot < ns.Length - 1) { 652validated = (validated.Length > MAX_LENGTH_TO_USE) ? validated.Substring(0, MAX_LENGTH_TO_USE) : validated;
System\Configuration\ClientConfigurationHost.cs (2)
414return configPath.Length <= allowedConfigPath.Length;
System\Configuration\ConfigurationElement.cs (1)
1562if (e.Filename == null || e.Filename.Length == 0)
System\Configuration\ConfigurationElementCollection.cs (5)
239EmitClear = (saveMode == ConfigurationSaveMode.Full && (_clearElement.Length != 0)) || 1028if (bEmitClearTag == true && (_clearElement.Length != 0)) { 1041if (ElementName != null && ElementName.Length != 0) { 1205if (RemoveElementName.Length != 0) 1207if (ClearElementName.Length != 0)
System\Configuration\ConfigurationLockCollection.cs (1)
63if (SeedList.Length != 0)
System\Configuration\DPAPIProtectedConfigurationProvider.cs (2)
70if (clearText == null || clearText.Length < 1) 136if (encText == null || encText.Length < 1)
System\Configuration\MgmtConfigurationRecord.cs (3)
1001if (configKey.Length == 0) { 1026if (configKey.Length == 0) { 1150Debug.Assert(filename.Length > 0, "The caller should make sure that filename is not empty");
System\Configuration\ProviderBase.cs (1)
27if (name.Length == 0)
System\Configuration\ProviderCollection.cs (1)
38if (provider.Name == null || provider.Name.Length < 1)
System\Configuration\RSAProtectedConfigurationProvider.cs (2)
140if (_KeyContainerName == null || _KeyContainerName.Length < 1) 170if (CspProviderName != null && CspProviderName.Length > 0)
System\Configuration\SectionUpdates.cs (1)
54if (group.Length != 0) {
System\Configuration\StringAttributeCollection.cs (4)
38if (trimmedItem.Length != 0) { 61if (returnString.Length > 0) { 62returnString = returnString.Substring(0, returnString.Length - 1); 64if (returnString.Length == 0) {
System\Configuration\StringUtil.cs (2)
78return 0 == String.Compare(s1, 0, s2, 0, s2.Length, StringComparison.Ordinal); 89return 0 == String.Compare(s1, 0, s2, 0, s2.Length, StringComparison.OrdinalIgnoreCase);
System\Configuration\StringValidator.cs (4)
49int len = (data == null ? 0 : data.Length); 60if ((len > 0) && (_invalidChars != null) && (_invalidChars.Length > 0)) { 61char[] array = new char[_invalidChars.Length]; 63_invalidChars.CopyTo(0, array, 0, _invalidChars.Length);
System\Configuration\UrlPath.cs (6)
49int lDir = dir.Length; 54int lSubdir = subdir.Length; 105int lPath = path.Length; 110int lSubpath = subpath.Length; 136if (path == null || path.Length < 3) 144if (path == null || path.Length < 3)
System\Configuration\XmlUtil.cs (6)
616linePosition = _reader.LinePosition + _reader.Name.Length; 664linePosition = _reader.LinePosition + _reader.Name.Length; 779linePosition = _reader.LinePosition + _reader.Name.Length; 803if (dtdValue != null && dtdValue.Length > 0) { 827int closeLinePosition = _reader.LinePosition - startOffset - close.Length; 1091lineWidth += reader.Name.Length + 2;
System\Configuration\XmlUtilWriter.cs (9)
134for (int i = 0; i < s.Length; i++) { 148return s.Length; 179for (int i = 0; i < s.Length; i++) { 242return entityRef.Length + 2; 252return numberToWrite.Length + 4; 259return cdata.Length + 12; 268return name.Length + value.Length + 5; 275return comment.Length + 7;
System.Core (53)
Microsoft\Scripting\Ast\DebugViewWriter.cs (1)
198_column += s.Length;
System\Diagnostics\Eventing\EventProvider.cs (5)
317dataDescriptor->Size = (uint)((sRet.Length + 1) * 2); 442dataDescriptor->Size = (uint)((sRet.Length + 1) * 2); 472if (eventMessage.Length > s_traceEventMaximumStringSize) 540if (data.Length > s_traceEventMaximumStringSize) 548userData.Size = (uint)((data.Length +1)* 2);
System\Diagnostics\Eventing\EventProviderTraceListener.cs (3)
65if (m_delimiter.Length == 0) 78if (value.Length == 0) 118if (delimiter.Length == 0)
System\Diagnostics\Eventing\Reader\NativeWrapper.cs (1)
1057pointer = new IntPtr((Int64)pointer + (s.Length * 2) + 2);
System\Diagnostics\Eventing\Reader\ProviderMetadata.cs (1)
130if ( helpLinkStr == null || helpLinkStr.Length == 0 )
System\Diagnostics\EventSchemaTraceListener.cs (2)
445for (int i=0; i<str.Length; i++) { 484_InternalBuildRaw(writer, str.Substring(lastIndex, str.Length-lastIndex));
System\Diagnostics\PerformanceData\CounterSet.cs (2)
134if (counterName.Length == 0) { 175if (instanceName.Length == 0) {
System\Diagnostics\PerformanceData\CounterSetInstance.cs (1)
38if (instanceName.Length == 0) {
System\Diagnostics\PerformanceData\CounterSetInstanceCounterDataSet.cs (1)
217if (counterName.Length == 0) {
System\IO\__Error.cs (8)
91if (path.Length < 2) { 126if ((path[path.Length - 1]) == Path.DirectorySeparatorChar) { 156if (str.Length == 0) { 164if (str.Length == 0) { 172if (str.Length == 0) { 180if (str.Length == 0) { 195if (str.Length == 0) { 203if (str.Length == 0) {
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (5)
80if (mapName.Length == 0) { 127if (mapName != null && mapName.Length == 0) { 200if (mapName != null && mapName.Length == 0) { 271if (mapName != null && mapName.Length == 0) { 337if (mapName.Length == 0) {
System\IO\Pipes\Pipe.cs (6)
478if (pipeName.Length == 0) { 561Debug.Assert(fullPipeName != null && fullPipeName.Length != 0, "fullPipeName is null or empty"); 1029if (pipeName.Length == 0) { 1032if (serverName.Length == 0) { 1078if (pipeName.Length == 0) { 1081if (serverName.Length == 0) {
System\Management\Automation\UMPAttributes.cs (2)
116if (namespaceName == null || namespaceName.Length == 0) 123if (namespacePart.Length == 0
System\Security\Cryptography\BCryptNative.cs (1)
780(cipherMode.Length + 1) * 2,
System\Security\Cryptography\CapiNative.cs (2)
1025byte[] arr = new byte[s.Length + 1]; 1026Encoding.ASCII.GetBytes(s, 0, s.Length, arr, 0);
System\Security\Cryptography\CngAlgorithm.cs (1)
43if (algorithm.Length == 0) {
System\Security\Cryptography\CngAlgorithmGroup.cs (1)
35if (algorithmGroup.Length == 0) {
System\Security\Cryptography\CngKeyBlobFormat.cs (1)
38if (format.Length == 0) {
System\Security\Cryptography\CngProvider.cs (1)
32if (provider.Length == 0) {
System\Security\Cryptography\NCryptNative.cs (2)
1050hashAlgorithmBuffer.cbBuffer = (hashAlgorithm.Length + 1) * sizeof(char); 1698(value.Length + 1) * sizeof(char),
System\Security\Cryptography\Rfc4050KeyFormatter.cs (1)
148return ECCurve.CreateFromValue(oidUrn.Substring(OidUrnPrefix.Length));
System\Security\Cryptography\Xml\ManifestSignedXml.cs (5)
51if (String.IsNullOrEmpty(hex) || hex.Length % 2 != 0) { 55byte[] bytes = new byte[hex.Length / 2]; 57for (int stringIndex = hex.Length - 2, decodedIndex = 0; decodedIndex < bytes.Length;stringIndex -= 2, decodedIndex++) { 267if (String.IsNullOrEmpty(hex) || hex.Length % 2 != 0) { 271byte[] bytes = new byte[hex.Length / 2];
System.Data (556)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\DesignTimeXamlWriter.cs (2)
91if (nonassemblyQualifedNamespace[nonassemblyQualifedNamespace.Length - 1] == ';') 93nonassemblyQualifedNamespace = nonassemblyQualifedNamespace.Substring(0, nonassemblyQualifedNamespace.Length - 1);
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\SourceTextScanner.cs (6)
70SharedFx.Assert(index >= 0 && index < this.source.Length, "index out of range"); 120SharedFx.Assert(index >= 0 && index < this.source.Length, "invalid index"); 136if (startIndex >= this.source.Length) 168if (index < 0 || index >= this.source.Length) 174while (index < this.source.Length) 180if (index + 1 < this.source.Length && this.source[index + 1] == NewLine)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ViewStateIdManager.cs (2)
20if (separatorLocation == -1 || separatorLocation == 0 || separatorLocation == id.Length - 1) 28idParts[1] = id.Substring(separatorLocation + 1, id.Length - (separatorLocation + 1));
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\WorkflowDesignerXamlSchemaContext.cs (3)
202if (result[result.Length - 1] != ';') 229return string.IsNullOrEmpty(this.localAssemblyNsPostfix) ? ns : ns.Substring(0, ns.Length - this.localAssemblyNsPostfix.Length);
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\XamlNamespaceHelper.cs (2)
22int clrNsIndex = ClrNamespacePrefix.Length; 30assemblyIndex += ClrNamespaceAssemblyField.Length;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (2)
419if (a.PropertyName != null && a.PropertyName.Length > 0) 1599member.Name.Length > 3,
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ExpressionHelper.cs (2)
108expressionText.IndexOf("\"", 1, StringComparison.CurrentCulture) == expressionText.Length - 1; 122var valueToConvert = isQuotedString ? expressionText.Substring(1, expressionText.Length - 2) : expressionText;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Expressions\ExpressionActivityEditor.cs (1)
165if (name != null && name.Trim().Length == 0)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemExtensions.cs (4)
403indexString = indexString.Substring(0, indexString.Length - 1); 482if (nameDefaultPrefix.Length == 0) 497return (0 == string.Compare(value, 0, nameDefaultPrefix, 0, nameDefaultPrefix.Length, CultureInfo.CurrentCulture, CompareOptions.None)); 504return (int.TryParse(nameGetter(p).Substring(nameDefaultPrefix.Length), out result))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxItemLoader.cs (2)
66if (entry.Length > 1 && (entry[0] != ';' && entry[0] != '#')) 70string categoryName = entry.Substring(1, entry.Length - 2);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\BreadCrumbTextConverter.cs (1)
61if (breadCrumbText.Length > actualDisplayNameLength)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ImportDesigner.xaml.cs (1)
391if (this.lastInput.Length > 0)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TypeBrowser.xaml.cs (1)
215this.GenericTypeName = strName.Substring(0, strName.Length - 2) + " <";
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ViewUtilities.cs (1)
221if (indexOfDot < name.Length - 1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (3)
875if (this.Text.Length == 0 && 882if (this.Text.Length == 0) 1078context.ExpressionText.IndexOf("\"", 1, StringComparison.CurrentCulture) == context.ExpressionText.Length - 1;
fx\src\bid\inc\cs\bidPrivateBase.cs (2)
427if (constStrHeader != null && constStrHeader.Length > 0) { 860if( name == null || name.Length <= 0 ) {
fx\src\data\Microsoft\SqlServer\Server\MemoryRecordBuffer.cs (1)
166Debug.Assert(offset == 0 && length <= value.Length, "Invalid string length or offset"); // for sqlvariant, length could be less than value.Length
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (3)
547if ((!ADP.IsEmpty(typeSpecificNamePart1) && TdsEnums.MAX_SERVERNAME < typeSpecificNamePart1.Length) 548|| (!ADP.IsEmpty(typeSpecificNamePart2) && TdsEnums.MAX_SERVERNAME < typeSpecificNamePart2.Length) 549|| (!ADP.IsEmpty(typeSpecificNamePart3) && TdsEnums.MAX_SERVERNAME < typeSpecificNamePart3.Length)) {
fx\src\data\Microsoft\SqlServer\Server\SmiMetaData.cs (1)
933Debug.Assert(null == name || MaxNameLength >= name.Length, "Name is too long");
fx\src\data\Microsoft\SqlServer\Server\sqlpipe.cs (2)
94if ( SmiMetaData.MaxUnicodeCharacters < message.Length ) { 95throw SQL.SqlPipeMessageTooLong( message.Length );
fx\src\data\Microsoft\SqlServer\Server\SqlRecordBuffer.cs (3)
243_value._int64 = ((string)value).Length; 331((StorageType.CharArray == _type && value <= ((char[])_object).Length) || (StorageType.String == _type && value <= ((string)_object).Length)), 496System.Text.Encoding.Unicode.GetBytes(value, 0, value.Length, bytes, 2);
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (7)
181return value.Length; 183length = CheckXetParameters( metaData.SqlDbType, metaData.MaxLength * sizeof(char), value.Length, 2678int length = CheckXetParameters(metaData.SqlDbType, metaData.MaxLength, value.Length, 0, NoLengthLimit /* buffer */, offset, NoLengthLimit /* request */); 2704int length = CheckXetParameters( metaData.SqlDbType, metaData.MaxLength, NoLengthLimit /* actual */, 0, stringValue.Length, offset, stringValue.Length - offset ); 2711int length = CheckXetParameters( metaData.SqlDbType, metaData.MaxLength, NoLengthLimit /* actual */, 0, value.Length, offset, checked( value.Length - offset ) );
fx\src\data\System\Data\CodeGen\datacache.cs (3)
49for (int i = 1; i < ret.Length; i++) { 125return s == null || s.Length == 0; 1396if (column.Expression.Length > 0) {
fx\src\data\System\Data\Common\AdapterUtil.cs (14)
350if (0 == value.Length) { 2003if ((hexString.Length & 0x1) != 0) { 2007byte[] b = new byte[hexString.Length / 2]; 2010for (int i = 0; i < hexString.Length; i += 2) { 2156StringBuilder tempstring = new StringBuilder(rootPath.Length+config.Length+value.Length); 2277prefixLength = quotePrefix.Length; 2285suffixLength = quoteSuffix.Length; 2298int quotedStringLength = quotedString.Length; 2388return ((null != inputString) ? inputString.Length : 0); 2401if ((null != columnName) && (0 < columnName.Length)) { 2417if (0 == columnName.Length) { // generate a unique name 2495return ((null == str) || (0 == str.Length));
fx\src\data\System\Data\Common\DBCommandBuilder.cs (26)
92if (columnName.Length > _adjustedParameterNameMaxLength) { 211(null != _isNullPrefix ? _isNullPrefix.Length : 0), 212(null != _originalPrefix ? _originalPrefix.Length : 0) 213) + _dbCommandBuilder.GetParameterName("").Length; 354return (((null != catalogSeparator) && (0 < catalogSeparator.Length)) ? catalogSeparator : NameSeparator); 454return (((null != schemaSeparator) && (0 < schemaSeparator.Length)) ? schemaSeparator : NameSeparator); 600if ((null == tableName) || (0 == tableName.Length)) { 630if (0 == baseServerName.Length) { 633if (0 == baseCatalogName.Length) { 637if (0 == baseSchemaName.Length) { 642if ((null == baseTableName) || (0 == baseTableName.Length)) { 740if ( (null == row) || (0 == row.BaseColumnName.Length) || !IncludeInInsertValues(row) ) 824if ((null == row) || (0 == row.BaseColumnName.Length) || !IncludeInUpdateSet(row)) 908if ((null == row) || (0 == row.BaseColumnName.Length) || !IncludeInWhereClause(row, isUpdate)) { 1488for(parts = 0; (parts < qualifiers.Length) && (currentPos < name.Length); ++parts) { 1492if (useQuotes && (name.IndexOf(quotePrefix, currentPos, quotePrefix.Length, StringComparison.Ordinal) == currentPos)) { 1493currentPos += quotePrefix.Length; // move past the quotePrefix 1496while (currentPos < name.Length) { 1500currentPos = name.Length; 1504currentPos += quoteSuffix.Length; // move past the quoteSuffix 1507if ((currentPos < name.Length) && (name.IndexOf(quoteSuffix, currentPos, quoteSuffix.Length, StringComparison.Ordinal) == currentPos)) { 1509currentPos += quoteSuffix.Length; // move past the second quoteSuffix 1520if (currentPos < name.Length) { 1524currentPos = name.Length; 1529currentPos += Separator.Length;
fx\src\data\System\Data\Common\DbConnectionOptions.cs (16)
145if (0 < _usersConnectionString.Length) { 244if ((0 < keyValue.Length) && 408int fileNamePosition = DataDirectory.Length; // filename starts right after the '|datadirectory|' keyword 409bool rootFolderEndsWith = (0 < rootFolderPath.Length) && rootFolderPath[rootFolderPath.Length-1] == '\\'; 410bool fileNameStartsWith = (fileNamePosition < value.Length) && value[fileNamePosition] == '\\'; 436StringBuilder builder = new StringBuilder(_usersConnectionString.Length); 519StringBuilder builder = new StringBuilder(_usersConnectionString.Length); 610int length = connectionString.Length; 733char tmpChar = keyvalue[keyvalue.Length - 1]; 756if ((';' == currentChar) && (currentPosition < connectionString.Length)) { 780return ((0 < keyname.Length) && (';' != keyname[0]) && !Char.IsWhiteSpace(keyname[0]) && (-1 == keyname.IndexOf('\u0000'))); 885int endPosition = connectionString.Length; 931StringBuilder builder = new StringBuilder(_usersConnectionString.Length); 942next = new NameValuePair(current.Name, "*", current.Name.Length + equalstar.Length);
fx\src\data\System\Data\Common\DBConnectionString.cs (4)
408StringBuilder buffer = new StringBuilder(restrictions.Length); 411int endPosition = restrictions.Length; 441if ((0 == prev.Length) || (prev == restrictions[i])) { 446if (0 == restrictions[restrictions.Length-1].Length) {
fx\src\data\System\Data\Common\DBDataPermission.cs (2)
244if ((null != value) && (0 < value.Length)) { 255if ((null != value) && (0 < value.Length)) {
fx\src\data\System\Data\Common\DbProviderConfigurationHandler.cs (1)
128if (0 == value.Length) {
fx\src\data\System\Data\Common\HandlerBase.cs (1)
54if (!allowEmpty && (0 == value.Length)) {
fx\src\data\System\Data\Common\MultipartIdentifier.cs (4)
68if (-1 != leftQuote.IndexOf(separator) || -1 != rightQuote.IndexOf(separator) || leftQuote.Length != rightQuote.Length) { 76StringBuilder sb = new StringBuilder (name.Length); // String buffer to hold the string being currently built, init the string builder so it will never be resized 79for (int index = 0; index < name.Length; ++index) {
fx\src\data\System\Data\Common\ObjectStorage.cs (2)
309if (typeName == null || typeName.Length == 0) { // No CDT polumorphism 311if (null != xsdTypeName && xsdTypeName.Length > 0) {
fx\src\data\System\Data\Common\SQLTypes\SQLStringStorage.cs (1)
126return ((value.IsNull) ? 0 : value.Value.Length);
fx\src\data\System\Data\Common\StringStorage.cs (1)
140return ((null != value) ? value.Length : 0);
fx\src\data\System\Data\Constraint.cs (1)
55if (name.Length != 0)
fx\src\data\System\Data\ConstraintCollection.cs (3)
124if (constraint.ConstraintName.Length == 0) 290if (constraint.ConstraintName.Length == 0) 557if ((null != constraintName) && (0 < constraintName.Length)) {
fx\src\data\System\Data\DataColumn.cs (7)
157if ((null != expr) && (0 < expr.Length)) { 400if (value.Length == 0) 404if (_columnName.Length != 0) 435Debug.Assert(this.encodedColumnName != null && this.encodedColumnName.Length != 0); 743if (value.Length > 0) { 1636if (value != null && value != DBNull.Value && ((string)value).Length > MaxLength) { 1646if (!DataStorage.IsObjectNull(value) && ((SqlString)value).Value.Length > MaxLength) {
fx\src\data\System\Data\DataColumnCollection.cs (2)
320if (column.ColumnName.Length == 0) { 633if ((null != columnName) && (0 < columnName.Length)) {
fx\src\data\System\Data\DataError.cs (2)
43return(rowError.Length != 0 || count != 0); 53if (error == null || error.Length == 0) {
fx\src\data\System\Data\DataException.cs (2)
635if (column.Length == 0) { 1103if (table.TableName.Length == 0) {
fx\src\data\System\Data\DataRelation.cs (3)
383if (value.Length == 0) 386if (relationName.Length != 0) 542if (CheckMultipleNested && ChildTable.tableNamespace != null && ChildTable.tableNamespace.Length == 0) {
fx\src\data\System\Data\DataRelationCollection.cs (2)
312if ((null != name) && (0 < name.Length)) { 696if (relation.relationName.Length == 0)
fx\src\data\System\Data\DataSet.cs (7)
652if (value == null || value.Length == 0) 1162if (col.Expression.Length != 0) 1210Int32 rowBytes = (Tables[i].TableName.Length + 4) << 2; 1213rowBytes += ((table.Columns[j].ColumnName.Length + 4) << 2); 2046if ((rootNodeSimpleContent != null && rootNodeSimpleContent.Length > 0)) 2050if ((rootNodeSimpleContent != null && rootNodeSimpleContent.Length > 0)) 2072Tables.Contains(root.Name, (root.NamespaceURI.Length == 0) ? null : root.NamespaceURI, false, true)) {
fx\src\data\System\Data\DataTable.cs (19)
617if (0 != expr.Length) { 1188if (value != null && value.Length > 0) { 1670if (value.Length == 0) 1694if (tableName.Length != 0) { 2089if (targetRow.RowError.Length == 0) { 2704int leng1 = s1.Length; 2705int leng2 = s2.Length; 2940for (i = 0; (i < name.Length) && (0x3000 > name[i]); ++i); 2942if (name.Length == i) { 3367if ((null != sortString) && (0 < sortString.Length)) { 3375int length = current.Length; 3388current = current.Substring(1, current.Length - 2); 4716if (dataRow.RowError.Length == 0) { // WebData 112272, append the row error 4830if (this.tableName.Length == 0) { 4955if (dc.Expression.Length != 0) { 4978if (this.tableName.Length == 0) { 5754string CurrentTableName = CurrentTableFullName.Substring(nsSeperator + 1, CurrentTableFullName.Length - nsSeperator -1); 5762qTableName = (this.Namespace.Length > 0)? (this.Namespace + ":" + this.tableName):this.tableName; 5844if (dc.Expression.Length != 0) {
fx\src\data\System\Data\DataTableCollection.cs (3)
285if (table.TableName.Length == 0) 569if ((null != tableName) && (0 < tableName.Length)) { 601if ((null != tableName) && (0 < tableName.Length)) {
fx\src\data\System\Data\DataTableReader.cs (1)
701if (dc.Expression.Length != 0) {
fx\src\data\System\Data\DataView.cs (4)
459if (sort.Length == 0 && applyDefaultSort && table != null && table._primaryIndex.Length > 0) { 556if (value != null && value.TableName.Length == 0) 671if (sort.Length == 0) 1014get { return this.Sort.Length != 0; }
fx\src\data\System\Data\DataViewManager.cs (1)
104if (value == null || value.Length == 0)
fx\src\data\System\Data\Filter\BinaryNode.cs (1)
1286int length = pat.Length;
fx\src\data\System\Data\Filter\ExpressionParser.cs (1)
134length = data.Length;
fx\src\data\System\Data\Filter\FunctionNode.cs (2)
356return((string)argumentValues[0]).Length; 386int src_length = ((string)argumentValues[0]).Length;
fx\src\data\System\Data\Odbc\OdbcCommand.cs (1)
527if ((CommandText == null) || (CommandText.Length == 0)) {
fx\src\data\System\Data\Odbc\OdbcConnection.cs (8)
212if (ProviderInfo.DriverVersion != null && ProviderInfo.DriverVersion.Length>=2) { 247Debug.Assert((escapeCharString.Length <= 1), "Can't handle multichar quotes"); 248ProviderInfo.EscapeChar = (escapeCharString.Length==1)?escapeCharString[0]:QuoteChar(method)[0]; 258Debug.Assert((quoteCharString.Length <= 1), "Can't handle multichar quotes"); 259ProviderInfo.QuoteChar = (1==quoteCharString.Length)?quoteCharString:"\0"; 832if ((null == value) || (0 == value.Trim().Length)) { // MDAC 62679 835if (1024 < value.Length*2+2) { 842ODBC32.RetCode retcode = connectionHandle.SetConnectionAttribute3(ODBC32.SQL_ATTR.CURRENT_CATALOG, value, checked((Int32)value.Length*2));
fx\src\data\System\Data\Odbc\OdbcConnectionHandle.cs (1)
255Bid.Trace("<odbc.SQLSetConnectAttr|ODBC> SQLRETURN=%d, Attribute=%d, BufferLength=%d\n", (int)retcode, (int)attribute, buffer.Length);
fx\src\data\System\Data\Odbc\OdbcConnectionString.cs (1)
38if ((null != connectionString) && (ODBC32.MAX_CONNECTION_STRING_LENGTH < connectionString.Length)) { // MDAC 83536
fx\src\data\System\Data\Odbc\OdbcDataReader.cs (12)
998int cachedObjectLength = isCharsBuffer ? ((string)cachedObj).Length : ((byte[])cachedObj).Length; 1846if ((metaInfos[i].baseTableName == null) ||(metaInfos[i].baseTableName.Length == 0)) { 1851if ((metaInfos[i].baseColumnName == null) ||(metaInfos[i].baseColumnName.Length == 0)) { 2432if ((localcmdtext.Length > 0) && (localcmdtext[0] == ',')) { 2435if ((localcmdtext.Length == 2) && 2441if ((localcmdtext.Length > 0) && (localcmdtext[0] == ',')) { 2513if ((str != null) && (str.Length > 0)) { 2516Debug.Assert (str.Length > 1, "Illegal string, only one char that is a quote"); 2517Debug.Assert (str[str.Length-1] == quoteChar, "Missing quote at end of string that begins with quote"); 2518if (str.Length > 1 && str[str.Length-1] == quoteChar) { 2519str = str.Substring(1, str.Length-2);
fx\src\data\System\Data\Odbc\odbcmetadatafactory.cs (1)
695if (stringValue.Length == 1) {
fx\src\data\System\Data\Odbc\OdbcParameter.cs (9)
317cch = ((String)value).Length - offset; 390cch = ((string)value).Length - offset; 438ccb = (((String)value).Length - offset ) * 2 + 2; 456if ((value is String) && (ccb < ((String)value).Length) && (_bindtype == _originalbindtype)) { 458ccb = ((String)value).Length; 562if (offset > ((string)value).Length) { 598size = ((string)value).Length; 610size = ((string)value).Length; 620size = ((string)value).Length;
fx\src\data\System\Data\Odbc\OdbcUtils.cs (4)
171length = Math.Max(0, ((string)value).Length - valueOffset); 357_len = (0>iNul)?text.Length:iNul; 499if ((_len - tempidx) < tokenString.Length) { 503if (0 == String.Compare(_sqlstatement, tempidx, tokenString, 0, tokenString.Length, StringComparison.OrdinalIgnoreCase)) {
fx\src\data\System\Data\OleDb\ColumnBinding.cs (5)
593LengthValue(value.Length * 2); /* bytecount*/ 666int length = ((ValueBindingOffset < value.Length) ? (value.Length - ValueBindingOffset) : 0); 1063int charCount = ((ValueBindingOffset < value.Length) ? Math.Min(value.Length - ValueBindingOffset, (ColumnBindingMaxLen-2)/2) : 0); // 70232
fx\src\data\System\Data\OleDb\OleDbConnection.cs (2)
149if ((null == value) || ((value is string) && (0 == (value as string).Length))) { 327if ((null == value) || (0 == value.Trim().Length)) { // MDAC 62679
fx\src\data\System\Data\OleDb\oledbconnectionstring.cs (5)
287int hdrlength = ADP.CharSize*UDL.Header.Length; 339if (0 < progid.Length) { // don't fail on empty 'Data Provider' value 346if (0 < progid.Length) { // don't fail on empty 'Data Provider' value 362if ((null != classid) && (0 < classid.Length)) { 408if (ODB.MaxProgIdLength <= progid.Length) { // MDAC 63151
fx\src\data\System\Data\OleDb\OleDbDataReader.cs (4)
823return value.Length; 827int charCount = Math.Min(value.Length - srcIndex, length); 829throw ADP.InvalidSourceBufferIndex(value.Length, srcIndex, "dataIndex"); 1764if ((null != info.baseTableName) && (0 < info.baseTableName.Length)) {
fx\src\data\System\Data\OleDb\OleDbMetaDataFactory.cs (1)
311if (quoteSuffix.Length == 1) {
fx\src\data\System\Data\OleDb\RowBinding.cs (1)
238ptr = SafeNativeMethods.SysAllocStringLen(value, value.Length);
fx\src\data\System\Data\OleDb\SafeHandles.cs (2)
103internal StringMemHandle(string value) : base((null != value) ? checked(2+2*value.Length) : 0) { 106WriteCharArray(0, value.ToCharArray(), 0, value.Length);
fx\src\data\System\Data\ProviderBase\DbConnectionPoolCounters.cs (6)
254if (result.Length > CounterInstanceNameMaxLength) { 260int firstPartLength = (CounterInstanceNameMaxLength - insertString.Length) / 2; 261int lastPartLength = CounterInstanceNameMaxLength - firstPartLength - insertString.Length; 265result.Substring(result.Length - lastPartLength, lastPartLength)); 267Debug.Assert(result.Length == CounterInstanceNameMaxLength, 268string.Format((IFormatProvider)null, "wrong calculation of the instance name: expected {0}, actual: {1}", CounterInstanceNameMaxLength, result.Length));
fx\src\data\System\Data\ProviderBase\DbMetaDataFactory.cs (1)
397if ((restrictions[i] != null) && (restrictions[i].Length > 4096)) {
fx\src\Data\System\Data\ProviderBase\DbParameterCollectionHelper.cs (1)
267if (0 == name.Length) {
fx\src\Data\System\Data\ProviderBase\DbParameterHelper.cs (1)
253return svalue.Length;
fx\src\data\System\Data\ProviderBase\SchemaMapping.cs (2)
190if (0 == columns[i].Expression.Length) { // WebData 110773 204if (0 == columns[i].Expression.Length) { // WebData 110773
fx\src\data\System\Data\Select.cs (1)
44if (filterExpression != null && filterExpression.Length > 0) {
fx\src\data\System\Data\SimpleType.cs (6)
110if (baseSimpleType != null && baseSimpleType.Name != null && baseSimpleType.Name.Length > 0) { 117if (baseType == null || baseType.Length == 0) { 227if (ns.Length == 0) 250if (name != null && name.Length != 0) { 261if (baseSimpleType.Namespace != null && baseSimpleType.Namespace.Length > 0) { 376(this.BaseSimpleType.HasConflictingDefinition(otherSimpleType.BaseSimpleType)).Length != 0)
fx\src\data\System\Data\Sql\SqlDataSourceEnumerator.cs (3)
91private static int _clusterLength = _Cluster.Length; 92private static int _versionLength =_Version.Length; 112if (0 == value.Length) {
fx\src\data\System\Data\Sql\SqlMetaData.cs (9)
687if (Microsoft.SqlServer.Server.SmiMetaData.MaxNameLength < name.Length) 742if (value.Length < MaxLength) 758if (value.Length > MaxLength && Max != MaxLength) 759value = value.Remove((int)MaxLength, (int)(value.Length - MaxLength)); 878if (value.Value.Length < MaxLength) 893if (value.Value.Length > MaxLength && Max != MaxLength) 894value = new SqlString(value.Value.Remove((int)MaxLength, (int)(value.Value.Length - MaxLength))); 1153long maxLen = ((String)value).Length; 1249long maxLen = ss.Value.Length;
fx\src\data\System\Data\Sql\SqlNotificationRequest.cs (2)
36if ((null != value) && (UInt16.MaxValue < value.Length)) { 60if ((null != value) && (UInt16.MaxValue < value.Length)) {
fx\src\data\System\Data\SqlClient\LocalDBAPI.cs (2)
42string instanceName = serverName.Substring(const_localDbPrefix.Length).Trim(); 43if (instanceName.Length == 0)
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (5)
365else if(value.Length == 0) { 458bool isTempTable = TableName.Length > 0 && '#' == TableName[0]; 1260int l = name.Length; 1410int len = ((isSqlType) && (!typeChanged)) ? ((SqlString)value).Value.Length : ((string)value).Length;
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCertificateStoreProvider.cs (2)
353if (masterKeyPath.Length >= Int16.MaxValue) 355throw SQL.LargeCertificatePathLength(masterKeyPath.Length, Int16.MaxValue, isSystemOp);
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCngProvider.cs (3)
424keyIdentifier = keyPath.Substring(indexOfSlash + 1, keyPath.Length - (indexOfSlash + 1)); 426if (cngProvider.Length == 0) 431if (keyIdentifier.Length == 0)
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCspProvider.cs (3)
450keyIdentifier = keyPath.Substring(indexOfSlash + 1, keyPath.Length - (indexOfSlash + 1)); 452if (cspProviderName.Length == 0) 457if (keyIdentifier.Length == 0)
fx\src\data\System\Data\SqlClient\SqlCommand.cs (21)
2620if ((null != part) && (2 <= part.Length)) { 2621if ('[' == part[0] && ']' == part[part.Length-1]) { 2622part = part.Substring(1, part.Length-2); // strip outer '[' & ']' 2638if (Char.IsDigit(sproc[sproc.Length-1])) { // If last char is a digit, parse. 3696SqlParameter sqlParam = new SqlParameter(null, ((queryText.Length << 1) <= TdsEnums.TYPE_SIZE_LIMIT) ? SqlDbType.NVarChar : SqlDbType.NText, queryText.Length); 3790sqlParam = new SqlParameter(null, ((parameterList.Length << 1) <= TdsEnums.TYPE_SIZE_LIMIT) ? SqlDbType.NVarChar : SqlDbType.NText, parameterList.Length); 5492sqlParam = new SqlParameter(null, ((paramList.Length<<1)<=TdsEnums.TYPE_SIZE_LIMIT)?SqlDbType.NVarChar:SqlDbType.NText, paramList.Length); 5498sqlParam = new SqlParameter(null, ((text.Length<<1)<=TdsEnums.TYPE_SIZE_LIMIT)?SqlDbType.NVarChar:SqlDbType.NText, text.Length); 5640sqlParam = new SqlParameter(null, ((commandText.Length<<1)<=TdsEnums.TYPE_SIZE_LIMIT)?SqlDbType.NVarChar:SqlDbType.NText, commandText.Length); 5646sqlParam = new SqlParameter(null, ((paramList.Length<<1)<=TdsEnums.TYPE_SIZE_LIMIT)?SqlDbType.NVarChar:SqlDbType.NText, paramList.Length); 5887if (null != strings[i] && 0 != strings[i].Length) { 5968sqlParam = new SqlParameter(null, ((paramList.Length<<1)<=TdsEnums.TYPE_SIZE_LIMIT)?SqlDbType.NVarChar:SqlDbType.NText, paramList.Length); 5974sqlParam = new SqlParameter(null, ((text.Length<<1)<=TdsEnums.TYPE_SIZE_LIMIT)?SqlDbType.NVarChar:SqlDbType.NText, text.Length);
fx\src\data\System\Data\SqlClient\SqlCommandSet.cs (2)
41Debug.Assert(0 <= commandText.Length, "no text"); 207if ((null != part) && (0 < part.Length)) {
fx\src\data\System\Data\SqlClient\SqlConnection.cs (6)
1992SqlParameter p = new SqlParameter(null, SqlDbType.VarChar, TdsEnums.SQLDEBUG_MODE_NAMES[option].Length); 1998p = new SqlParameter(null, SqlDbType.VarChar, sdiDllName.Length); 2002p = new SqlParameter(null, SqlDbType.VarChar, machineName.Length); 2040if (TdsEnums.MAXLEN_NEWPASSWORD < newPassword.Length) { 2450if (pszMachineName.Length > TdsEnums.SDCI_MAX_MACHINENAME || 2451pszSDIDLLName.Length > TdsEnums.SDCI_MAX_DLLNAME)
fx\src\data\System\Data\SqlClient\SqlConnectionString.cs (2)
623host = "." + host.Substring(name.Length); 756if (limit < value.Length) {
fx\src\data\System\Data\SqlClient\SqlConnectionStringBuilder.cs (3)
1342if ((null == instance) || (0 == instance.Length) || ("MSSQLSERVER" == instance)) { 1376if ((0 < constr.DataSource.Length) && (constr.IntegratedSecurity || (0 < constr.UserID.Length))) {
fx\src\data\System\Data\SqlClient\SqlCredential.cs (1)
38if (userId.Length > TdsEnums.MAXLEN_USERNAME)
fx\src\data\System\Data\SqlClient\SqlEnums.cs (1)
416int len = s.Length;
fx\src\data\System\Data\SqlClient\SqlParameter.cs (10)
472if ((!ADP.IsEmpty(typeSpecificNamePart1) && TdsEnums.MAX_SERVERNAME < typeSpecificNamePart1.Length) 473|| (!ADP.IsEmpty(typeSpecificNamePart2) && TdsEnums.MAX_SERVERNAME < typeSpecificNamePart2.Length) 474|| (!ADP.IsEmpty(typeSpecificNamePart3) && TdsEnums.MAX_SERVERNAME < typeSpecificNamePart3.Length)) { 532if (ADP.IsEmpty(value) || (value.Length < TdsEnums.MAX_PARAMETER_NAME_LENGTH) 533|| (('@' == value[0]) && (value.Length <= TdsEnums.MAX_PARAMETER_NAME_LENGTH))) { 548if ((0 < parameterName.Length) && ('@' != parameterName[0])) { 551Debug.Assert(parameterName.Length <= TdsEnums.MAX_PARAMETER_NAME_LENGTH, "parameter name too long"); 1642return ((SqlString)value).Value.Length; 1651return svalue.Length; 1695return ((SqlString) value).Value.Length;
fx\src\data\System\Data\SqlClient\SqlSymmetricKeyCache.cs (2)
41StringBuilder cacheLookupKeyBuilder = new StringBuilder(serverName, capacity: serverName.Length + SqlSecurityUtility.GetBase64LengthFromByteLength(keyInfo.encryptedKey.Length) + keyInfo.keyStoreName.Length + 2/*separators*/);
fx\src\data\System\Data\SqlClient\TdsParser.cs (82)
1395Debug.Assert(errorMessage.Length>iColon+1 && errorMessage[iColon+1]==' ', "Expecting a space after the ':' character"); 1399int len = errorMessage.Length; 2406Debug.Assert(env.newValue.Length > TdsEnums.CHARSET_CODE_PAGE_OFFSET, "TdsParser.ProcessEnvChange(): charset value received with length <=10"); 4429stateObj.WriteByte((byte)database.Length); 4438stateObj.WriteByte((byte)schema.Length); 4447stateObj.WriteByte((byte)type.Length); 6050length = s.Length; 6074length = s.Length * 2; 6532stateObj.WriteByte(checked((byte)s.Length)); 6542WriteShort(checked((short)s.Length), stateObj); 6551return WriteString(s, s.Length, 0, stateObj, canAccumulate); 6647if (checked(sourceOffset + charLength) > source.Length || sourceOffset < 0) { 6670return WriteEncodingChar(s, s.Length, 0, encoding, stateObj, canAccumulate); 7111Debug.Assert(TdsEnums.MAXLEN_HOSTNAME>=rec.hostName.Length, "_workstationId.Length exceeds the max length for this value"); 7118Debug.Assert(rec.userName == null || (rec.userName != null && TdsEnums.MAXLEN_USERNAME >= rec.userName.Length), "_userID.Length exceeds the max length for this value"); 7119Debug.Assert(rec.credential == null || (rec.credential != null && TdsEnums.MAXLEN_USERNAME >= rec.credential.UserId.Length), "_credential.UserId.Length exceeds the max length for this value"); 7121Debug.Assert(rec.password == null || (rec.password != null && TdsEnums.MAXLEN_PASSWORD>=rec.password.Length), "_password.Length exceeds the max length for this value"); 7126Debug.Assert(TdsEnums.MAXLEN_APPNAME>=rec.applicationName.Length, "_applicationName.Length exceeds the max length for this value"); 7127Debug.Assert(TdsEnums.MAXLEN_SERVERNAME>=rec.serverName.Length, "_dataSource.Length exceeds the max length for this value"); 7128Debug.Assert(TdsEnums.MAXLEN_LANGUAGE>=rec.language.Length, "_currentLanguage .Length exceeds the max length for this value"); 7129Debug.Assert(TdsEnums.MAXLEN_DATABASE>=rec.database.Length, "_initialCatalog.Length exceeds the max length for this value"); 7130Debug.Assert(TdsEnums.MAXLEN_ATTACHDBFILE>=rec.attachDBFilename.Length, "_attachDBFileName.Length exceeds the max length for this value"); 7171Debug.Assert(TdsEnums.MAXLEN_CLIENTINTERFACE >= clientInterfaceName.Length, "cchCltIntName can specify at most 128 unicode characters. See Tds spec"); 7176length += (rec.hostName.Length + rec.applicationName.Length + 7177rec.serverName.Length + clientInterfaceName.Length + 7178rec.language.Length + rec.database.Length + 7179rec.attachDBFilename.Length) * 2; 7192length += (userName.Length * 2) + encryptedPasswordLengthInBytes 7332WriteShort(rec.hostName.Length, _physicalStateObj); 7333offset += rec.hostName.Length * 2; 7339WriteShort(userName.Length, _physicalStateObj); 7340offset += userName.Length * 2; 7356WriteShort(rec.applicationName.Length, _physicalStateObj); 7357offset += rec.applicationName.Length * 2; 7360WriteShort(rec.serverName.Length, _physicalStateObj); 7361offset += rec.serverName.Length * 2; 7373WriteShort(clientInterfaceName.Length, _physicalStateObj); 7374offset += clientInterfaceName.Length * 2; 7377WriteShort(rec.language.Length, _physicalStateObj); 7378offset += rec.language.Length * 2; 7381WriteShort(rec.database.Length, _physicalStateObj); 7382offset += rec.database.Length * 2; 7401WriteShort(rec.attachDBFilename.Length, _physicalStateObj); 7402offset += rec.attachDBFilename.Length * 2; 7796stateObj.WriteByte((byte)(transactionName.Length * 2)); // Write number of bytes (unicode string). 7808Debug.Assert(transactionName.Length == 0, "Should not have a transaction name on Commit"); 7820stateObj.WriteByte((byte)(transactionName.Length * 2)); // Write number of bytes (unicode string). 7832stateObj.WriteByte((byte)(transactionName.Length * 2)); // Write number of bytes (unicode string). 7992WriteString(text, text.Length, 0, stateObj); 8113tempLen = rpcext.rpcName.Length; 8399if (!ADP.IsEmpty(names[0]) && TdsEnums.MAX_SERVERNAME < names[0].Length) { 8402if (!ADP.IsEmpty(names[1]) && TdsEnums.MAX_SERVERNAME < names[names.Length - 2].Length) { 8405if (TdsEnums.MAX_SERVERNAME < names[2].Length) { 8470tempLen = (param.XmlSchemaCollectionDatabase).Length; 8479tempLen = (param.XmlSchemaCollectionOwningSchema).Length; 8487tempLen = (param.XmlSchemaCollectionName).Length; 8748Debug.Assert(parameterName.Length <= 0xff, "parameter name can only be 255 bytes, shouldn't get to TdsParser!"); 8749int tempLen = parameterName.Length & 0xff; 9274Debug.Assert (md.cipherMD.CipherAlgorithmName.Length < 256); 9275stateObj.WriteByte((byte)md.cipherMD.CipherAlgorithmName.Length); 9364WriteShort(md.tableName.Length, stateObj); 9370stateObj.WriteByte((byte)md.column.Length); 9447actualLengthInBytes = ((isSqlType) ? ((SqlString)value).Value.Length : ((string)value).Length) * 2; 9557ccb = stringValue.Length; 9563ccb = ((isSqlType) ? ((SqlString)value).Value.Length : ((string)value).Length) * 2; 9570ccb = ((isSqlType) ? ((SqlString)value).Value.Length : ((string)value).Length) * 2; 9693else if (UInt16.MaxValue < callbackId.Length) { 9700else if (UInt16.MaxValue < service.Length) { 9717int headerLength = 4 + 2 + 2 + (callbackId.Length * 2) + 2 + (service.Length * 2); 9741Debug.Assert(UInt16.MaxValue >= callbackId.Length, "CallbackId length is out of range"); 9743Debug.Assert(UInt16.MaxValue >= service.Length, "Service length is out of range"); 9751WriteShort(callbackId.Length * 2, stateObj); // Length in bytes 9754WriteShort(service.Length * 2, stateObj); // Length in bytes 9904if (!((SqlString)value).IsNull && ((((SqlString)value).Value).Length > 0)) { 9909else if ((currentType == typeof(String)) && (((String)value).Length > 0)) {
fx\src\data\System\Data\SqlClient\TdsParserStaticMethods.cs (5)
66if (index+1 < aliasLookup.Length) { 72if (-1 != index && index + 1 < parsedAliasName.Length) { 96Byte[] bEnc = new Byte[password.Length << 1]; 101for (int i = 0; i < password.Length; i ++) { 226return str.Length;
fx\src\data\System\Data\SqlClient\TdsValueSetter.cs (2)
319if (offset == 0 && value.Length <= length) { 339if (offset == 0 && value.Length <= length) {
fx\src\data\System\Data\SQLTypes\SQLBinary.cs (1)
488if (base64.Length == 0) {
fx\src\data\System\Data\SQLTypes\SQLBytes.cs (1)
541 if (base64.Length == 0)
fx\src\data\System\Data\SQLTypes\SQLFileStream.cs (9)
438Debug.Assert ( path.Length > 0 ); 439Debug.Assert(path.Length <= MaxWin32PathLength); 464if (path.Length == 0) 470if (path.Length > MaxWin32PathLength) 495Debug.Assert(path.Length <= MaxWin32PathLength, "GetFullPathName returns path longer than max expected!"); 881System.Diagnostics.Debug.Assert( path.Length <= ( UInt16.MaxValue / sizeof(char) ) ); 884objectName.length = (UInt16)(path.Length * sizeof(char)); 885objectName.maximumLength = (UInt16)(path.Length * sizeof(char)); 1046eaBuffer.EaNameLength = (byte) EA_NAME_STRING.Length;
fx\src\data\System\Data\SQLTypes\SQLString.cs (4)
443int cwchX = rgchX.Length; 444int cwchY = rgchY.Length; 854int cwchX = rgDataX.Length; 855int cwchY = rgDataY.Length;
fx\src\data\System\Data\SQLTypes\UnsafeNativeMethods.cs (2)
73Debug.Assert(path.Length < Int16.MaxValue); 77StringBuilder buffer = new StringBuilder(path.Length + 1);
fx\src\data\System\Data\XDRSchema.cs (15)
48if (_schemaName == null || _schemaName.Length == 0) 89if (strType == null || strType.Length == 0) 132if (value == null || value.Length == 0) { 134if (type != null && type.Length > 0) 182if (occurs != null && occurs.Length > 0) 189if (occurs != null && occurs.Length > 0) 289if (nt == enumerationNameType && (dtValues == null || dtValues.Length == 0)) 300if (instanceName == null || instanceName.Length == 0) { 306if (instanceName == null || instanceName.Length == 0) 335if (strRef != null && strRef.Length>0) 370if (strType == null || strType.Length == 0) { 438if (targetNamespace != null && targetNamespace.Length > 0) 442if (strDefault != null && strDefault.Length != 0) 461if (occurs != null && occurs.Length > 0) { 475if (occurs != null && occurs.Length > 0) {
fx\src\data\System\Data\XmlDataLoader.cs (3)
1113if (typeName != null && typeName.Length > 0) { 1167if (0 == text.Length) { // In case we do not have value already 1255if (0 == text.Length && xsiNilString != null && XmlConvert.ToBoolean(xsiNilString)) {
fx\src\data\System\Data\xmlsaver.cs (45)
181else if ((dt.Length == 0) || bImplementsInullable || ((dt == Keywords.XSD_ANYTYPE) && (col.XmlDataType != Keywords.XSD_ANYTYPE))|| (col.DataType == typeof(DateTimeOffset))) { 533if (_ds.Namespace.Length == 0) 602if (((_ds != null )&& (_ds.Namespace.Length != 0)) && Common.ADP.IsEmpty(top[i].Namespace)) { 827if (_ds.Namespace.Length == 0) { 838if (dt.Namespace.Length == 0) { 871dsElement.SetAttribute(Keywords.MSD_MAINDATATABLE, Keywords.MSDNS, XmlConvert.EncodeLocalName(((dt.Namespace.Length == 0)?dt.TableName : (dt.Namespace + ":" + dt.TableName)))); 888dsElement.SetAttribute(Keywords.MSD_MAINDATATABLE, Keywords.MSDNS, XmlConvert.EncodeLocalName(((dt.Namespace.Length == 0)?dt.TableName : (dt.Namespace + ":" + dt.TableName)))); 1062if (name != null && name.Length != 0) { 1071if (stNode.BaseSimpleType != null && stNode.BaseSimpleType.Namespace != null && stNode.BaseSimpleType.Namespace.Length>0) 1079if (prefix != null && prefix.Length > 0) { 1103if (stNode.BaseSimpleType != null && stNode.BaseSimpleType.Namespace != null && stNode.BaseSimpleType.Namespace.Length>0) 1112else if (col.XmlDataType != null && col.XmlDataType.Length != 0 && XSDSchema.IsXsdType(col.XmlDataType)) { 1117if (typeName == null || typeName.Length == 0) { 1137if ((col.IsSqlType && ((dt.Length == 0) || col.ImplementsINullable)) || (typeof(SqlXml) == col.DataType) || col.DataType == typeof(DateTimeOffset) || col.DataType == typeof(System.Numerics.BigInteger)) { // no need to check if it is Sql typee if it already implements INullable, 1140else if ((dt.Length == 0) || col.ImplementsINullable || ((dt == Keywords.XSD_ANYTYPE) && (col.XmlDataType != Keywords.XSD_ANYTYPE))) { 1153if (col.Expression.Length != 0) 1169if (col.Prefix.Length != 0) 1212if (col.Namespace.Length == 0) { 1273if ((col.Namespace != (col.Table.TypeName.IsEmpty ? col.Table.Namespace : col.Table.TypeName.Namespace)) && (col.Namespace.Length != 0)) 1484if (table.Namespace.Length == 0) { 1553if (_typeName == null || _typeName.Length == 0) { 1672if ((childTable.Namespace == table.Namespace) || (childTable.Namespace.Length == 0) || schFormat == SchemaFormat.Remoting) { 1707String xpathprefix = (_ds != null)? (_ds.Namespace.Length != 0 ? Keywords.MSTNS_PREFIX : String.Empty) : String.Empty; 1710xpathprefix = table.Namespace.Length != 0 ? (string) prefixes[table.Namespace] +':' : String.Empty; 2107string prefix = (table.Namespace.Length != 0) ? table.Prefix : String.Empty; 2108if ((row.HasErrors) && (row.RowError.Length > 0)) { 2123string columnPrefix = (column.Namespace.Length != 0) ? column.Prefix : String.Empty; 2124if (error == null || error.Length == 0) { 2176string tablePrefix = (table.Namespace.Length != 0) ? table.Prefix : String.Empty; 2216string colPrefix = (col.Namespace.Length != 0) ? col.Prefix : String.Empty; 2405if ((row.HasErrors) && (row.RowError.Length > 0)) 2411if (error == null || error.Length == 0) { 2430string prefix = (_ds!= null)?(( _ds.Namespace.Length == 0 )? "" : _ds.Prefix):(( _dt.Namespace.Length == 0 )? "" : _dt.Prefix); 2432if (_ds == null || _ds.DataSetName == null || _ds.DataSetName.Length == 0) 2450throw ExceptionBuilder.MultipleParentRows(tempTable.Namespace.Length == 0 ? tempTable.TableName:tempTable.Namespace + tempTable.TableName); 2468string prefix = (_ds!= null)?(( _ds.Namespace.Length == 0 )? "" : _ds.Prefix):(( _dt.Namespace.Length == 0 )? "" : _dt.Prefix); 2481if (_ds.DataSetName == null || _ds.DataSetName.Length == 0) 2514throw ExceptionBuilder.MultipleParentRows(dt.Namespace.Length == 0 ? dt.TableName : (dt.Namespace + dt.TableName)); 2540string prefix = (row.Table.Namespace.Length == 0) ? "" : row.Table.Prefix; 2570string colPrefix = (col.Namespace.Length == 0) ? "" : col.Prefix; 2597string colPrefix = (col.Namespace.Length == 0) ? "" : col.Prefix; 2682if (tempValue.Length == 0) { 2685for(int i =0; i < tempValue.Length; i++) {
fx\src\data\System\Data\XMLSchema.cs (40)
83if (value == null || value.Length == 0) { 210if (errorStr.Length != 0) { 390if (parentName == null || parentName.Length==0) 395if (childName == null || childName.Length==0) 400if (value == null || value.Length==0) 405if (value == null || value.Length==0) 478if (((XmlSchemaElement)el).RefName.Name.Length != 0) { 582if (_schemaName == null ||_schemaName.Length == 0) { 587if (ds.namespaceURI == null || ds.namespaceURI.Length == 0) {// set just one time, for backward compatibility 604if (dc.SimpleType!= null && dc.SimpleType.Name != null && dc.SimpleType.Name.Length != 0) { 653if(sel.RefName.Name.Length != 0 ) { 1028if (value == null || value.Length == 0) { 1043if (value == null || value.Length == 0) { 1098if (refer == null || refer.Length == 0) 1127if (relName == null || relName.Length == 0) 1182if (name==null || name.Length==0) 1328Debug.Assert((instanceName != null) && (instanceName.Length != 0), "instanceName cannot be null or empty. There's an error in the XSD compiler"); 1370if (value.Length ==0) 1374if (0 < value.Length) { 1383if (0 < value.Length) { 1678if (_type == null || _type.Length == 0) { 1680if (_type == null || _type.Length == 0) 1701if (typeNode.QualifiedName.Name != null && typeNode.QualifiedName.Name.Length != 0 && typeNode.QualifiedName.Namespace != Keywords.XSDNS) { // this means UDSimpleType 1771if ((column.Expression!=null)&&(column.Expression.Length!=0)) { 1776if (xsdType != null && xsdType.Name != null && xsdType.Name.Length > 0) { 1870if ((column.Expression!=null)&&(column.Expression.Length!=0)) { 1927if (node.QualifiedName.Name != null && node.QualifiedName.Name.Length != 0 && node.QualifiedName.Namespace != Keywords.XSDNS) { // this means UDSimpleType 1984if ((column.Expression!=null)&&(column.Expression.Length!=0)) { 1988if (xsdType != null && xsdType.Name != null && xsdType.Name.Length > 0) { 2067if (((XmlSchemaSimpleType)typeNode).Name != null && ((XmlSchemaSimpleType)typeNode).Name.Length != 0 && ((XmlSchemaSimpleType)typeNode).QualifiedName.Namespace != Keywords.XSDNS) { 2148if (xsdType != null && xsdType.Name != null && xsdType.Name.Length > 0) { 2222if (0 != value.Length) { 2244if (value!=null && value.Length != 0) { 2249if (value!=null && value.Length != 0) { 2257if (dsName != null && dsName.Length != 0) 2276if(((XmlSchemaElement)el).RefName.Name.Length != 0) { 2312if ((((XmlSchemaElement)choiceEl).RefName.Name.Length != 0) && (!FromInference && ((XmlSchemaElement)choiceEl).MaxOccurs != Decimal.One && !(((XmlSchemaElement)choiceEl).SchemaType is XmlSchemaComplexType))) 2375if ((prefix == null) ||(prefix.Length == 0)) 2395if ((QualifiedTableName == null) || (QualifiedTableName.Length == 0)) 2413if ((tableName == null) || (tableName.Length == 0))
fx\src\data\System\NewXml\DataPointer.cs (2)
390if (prefix != null && prefix.Length > 0) { 391if (lname != null && lname.Length > 0) {
fx\src\data\System\NewXml\XmlDataDocument.cs (3)
429if ( docElemName == null || docElemName.Length == 0 ) 2236if ( value.Length == 0 && ( ( (xsi_attrVal = rowElement.GetAttribute(XSI_NIL) ) == "1" ) || xsi_attrVal == "true" ) ) 2268if ( value.Length == 0 && ( ( (xsi_attrVal = e.GetAttribute(XSI_NIL) ) == "1" ) || xsi_attrVal == "true" ) )
fx\src\data\System\NewXml\XPathNodePointer.cs (2)
1229if ( name != null && name.Length == 0 ) 1266if ( attrName != null && attrName.Length == 0 )
System.Data.DataSetExtensions (1)
System\Data\LinqDataView.cs (1)
298return !(base.SortComparison == null && base.Sort.Length == 0);
System.Data.Entity (154)
System\Data\Common\CommandTrees\Internal\ExpressionPrinter.cs (4)
489int appendLength = stringVal.Length; 492appendLength = Math.Min(stringVal.Length, _maxStringLength); 496if (stringVal.Length > appendLength) 683argInfo.Text.Insert(op.Length, '(');
System\Data\Common\DataRecord.cs (2)
207cchars = data.Length; 240cchars = data.Length;
System\Data\Common\DbXmlEnabledProviderManifest.cs (1)
101IList<EdmSchemaError> errors = SchemaManager.LoadProviderManifest(reader, reader.BaseURI.Length > 0 ? reader.BaseURI : null, true /*checkForSystemNamespace*/, out schema);
System\Data\Common\EntitySql\AST\Literal.cs (5)
261string numberPart = numericString.Substring(0, numericString.Length - suffix.Length); 393Debug.Assert(stringLiteralValue.Length >= 2); 422result = stringLiteralValue.Substring(startIndex, stringLiteralValue.Length - (1 + startIndex)); 451int endIndex = binaryLiteralValue.Length - 1;
System\Data\Common\EntitySql\CqlLexerHelpers.cs (9)
247_iPos += YYText.Length; 349if (symbol.Length > 1 && symbol[0] == '[') 351if (symbol[symbol.Length - 1] == ']') 353string name = symbol.Substring(1, symbol.Length - 2); 642for (int i = 0; i < symbol.Length; i++) 710string literalPayload = literal.Substring(startIndex + 1, literal.Length - (startIndex + 2)); 734int endIndex = guidValue.Length - 1; 772bool bValid = binaryValue.Length > 0; 773while (bValid && i < binaryValue.Length)
System\Data\Common\EntitySql\CqlParser.cs (2)
3299if (identifier.IsEscaped || escapedIdentifier.Name.Length > 0) 3313if (identifier.IsEscaped || escapedIdentifier.Name.Length > 0)
System\Data\Common\EntitySql\CqlParserHelpers.cs (3)
59if (String.IsNullOrEmpty(query) || query.Trim().Length == 0) 159errorPosition = Math.Min(errorPosition, errorPosition - term.Length); 166errorPosition = Math.Min(errorPosition, errorPosition - term.Length);
System\Data\Common\EntitySql\TypeResolver.cs (3)
452if (multipart.Length > 1 && multipart.All(p => p.Length > 0)) 455var namespaceName = name.Substring(0, name.Length - functionName.Length - 1);
System\Data\Common\EntityUtil.cs (1)
1941if (value.Length == 0)
System\Data\Common\Internal\MultipartIdentifier.cs (4)
63Debug.Assert(-1 == leftQuote.IndexOf(separator) && -1 == rightQuote.IndexOf(separator) && leftQuote.Length == rightQuote.Length, "Incorrect usage of quotes"); 70StringBuilder sb = new StringBuilder(name.Length); // String buffer to hold the string being currently built, init the string builder so it will never be resized 73for (int index = 0; index < name.Length; ++index)
System\Data\Common\Utils\StringUtil.cs (3)
173for(int i = offset; i < value.Length; ++i) 193length = Math.Min(value.Length, length); 231System.Text.StringBuilder builder = new System.Text.StringBuilder(arrayVarName.Length + 10 + 2);
System\Data\EntityClient\DbConnectionOptions.cs (10)
69if (0 < _usersConnectionString.Length) 126int fileNamePosition = DataDirectory.Length; // filename starts right after the '|datadirectory|' keyword 127bool rootFolderEndsWith = (0 < rootFolderPath.Length) && rootFolderPath[rootFolderPath.Length - 1] == '\\'; 128bool fileNameStartsWith = (fileNamePosition < value.Length) && value[fileNamePosition] == '\\'; 212int length = connectionString.Length; 325char tmpChar = keyvalue[keyvalue.Length - 1]; 348if ((';' == currentChar) && (currentPosition < connectionString.Length)) 377return ((0 < keyname.Length) && (';' != keyname[0]) && !Char.IsWhiteSpace(keyname[0]) && (-1 == keyname.IndexOf('\u0000'))); 488int endPosition = connectionString.Length;
System\Data\EntityClient\DbParameterCollectionHelper.cs (1)
269if (0 == name.Length) {
System\Data\EntityClient\DbParameterHelper.cs (1)
239return svalue.Length;
System\Data\EntityClient\EntityConnection.cs (5)
1074resultCount += providerName.Length + 1; 1086if (paths[i].Length > 0) 1096resultCount += paths[i].Length; 1112resultCount += providerConnectionString.Length; 1129!buildResult || (result.Length == resultCount));
System\Data\EntityKey.cs (2)
828if (container == null || container.Length == 0 || 829entitySet == null || entitySet.Length == 0)
System\Data\EntityModel\SchemaObjectModel\ScalarType.cs (3)
295int numBytes = (text.Length) / 2; 298if (text.Length % 2 == 1) 305for (int index = 0, iByte = 0; index < text.Length; index += inc, inc = 2, ++iByte)
System\Data\EntityModel\SchemaObjectModel\SchemaElement.cs (2)
636return reader.NamespaceURI.Length == 0 && reader.LocalName == localName; 787else if (reader.Value != null && reader.Value.Trim().Length == 0)
System\Data\EntitySqlException.cs (5)
204Debug.Assert(errorPosition <= commandText.Length, "position in input stream cannot be greater than query text size"); 214StringBuilder sb = new StringBuilder(commandText.Length); 215for (int i = 0; i < commandText.Length; i++) 235lineNumber < queryLines.Length && columnNumber > queryLines[lineNumber].Length; 236columnNumber -= (queryLines[lineNumber].Length + 1), ++lineNumber) ;
System\Data\Mapping\MetadataMappingHasherVisitor.HashSourceBuilder.cs (3)
132if (s.Length == 0) 136_totalLength += s.Length; 161start += Encoding.Unicode.GetBytes(s, 0, s.Length, _cachedBuffer, start);
System\Data\Mapping\StorageMappingItemLoader.cs (10)
956entityTypeName = name.Substring(StorageMslConstructs.IsTypeOf.Length); 957entityTypeName = entityTypeName.Substring(0, entityTypeName.Length - StorageMslConstructs.IsTypeOfTerminal.Length).Trim(); 1289if (typeNameString == null || typeNameString.Trim().Length == 0) 3033typeName = typeName.Substring(index + 1, (typeName.Length - (index + 1))); 3044currentTypeName = currentTypeName.Substring(StorageMslConstructs.IsTypeOf.Length, (currentTypeName.Length - (StorageMslConstructs.IsTypeOf.Length + 1))); 3069} while (typeName.Length != 0); 3517if ((aliasedString == null) || (aliasedString.Length == 0))
System\Data\Metadata\EdmItemCollection.cs (1)
338Strings.DuplicatedFunctionoverloads(function.FullName, cTypeFunctionIdentity.Substring(function.FullName.Length)).Trim()/*parameters*/,
System\Data\Metadata\EdmSchemaError.cs (1)
248else if (start >= schemaLocation.Length)
System\Data\Metadata\MetadataArtifactLoader.cs (2)
180if (trimedPath.Length > 0) 450if (path.Length == 2 && path[1] == System.IO.Path.VolumeSeparatorChar)
System\Data\Metadata\MetadataArtifactLoaderCompositeResource.cs (1)
354int prefixLength = MetadataArtifactLoader.resPathPrefix.Length;
System\Data\Metadata\MetadataCache.cs (2)
145indexStart + MetadataCache.s_dataDirectory.Length, 178if (results[i].Length > 0)
System\Data\Objects\Internal\EntityProxyFactory.cs (1)
714string baseName = BaseType.Name.Length <= 20 ? BaseType.Name : BaseType.Name.Substring(0, 20);
System\Data\Objects\Internal\EntitySqlQueryBuilder.cs (49)
172int queryLength = _setOpProlog.Length + left.Length + setOp.Length + right.Length + _setOpEpilog.Length; 208int queryLength = projectOp.Length + 209projection.Length + 210_fromOp.Length + 211queryText.Length + 212_asOp.Length + 213alias.Length; 245int queryLength = _selectValueOp.Length + 246alias.Length + 247_fromOp.Length + 248queryText.Length + 249_asOp.Length + 250alias.Length + 251op.Length + 252predicateOrKeys.Length; 256queryLength += (_skipOp.Length + skipCount.Length); 296StringBuilder builder = new StringBuilder(_distinctProlog.Length + queryText.Length + _distinctEpilog.Length); 341int queryLength = _selectOp.Length + 342projection.Length + 343_fromOp.Length + 344queryText.Length + 345_asOp.Length + 346alias.Length + 347_groupByOp.Length + 348keys.Length; 410int queryLength = _ofTypeProlog.Length + 411queryText.Length + 412_ofTypeInfix.Length + 413newType.NamespaceName.Length + 414(newType.NamespaceName != string.Empty ? _ofTypeInfix2.Length : 0) + 415newType.Name.Length + 416_ofTypeEpilog.Length; 504int queryLength = count.Length; 512queryLength += (queryText.Length + 513_limitOp.Length 521queryLength += (_topOp.Length + 523_topInfix.Length + 524alias.Length + 525_fromOp.Length + 526queryText.Length + 527_asOp.Length + 528alias.Length);
System\Data\Objects\ObjectContext.cs (3)
240if (connectionString == null || connectionString.Trim().Length == 0) 1882if (container == null || container.Length == 0) // if it starts with '.' 1887if (entityset == null || entityset.Length == 0) // if it's not in the form "ES name . containername"
System\Data\Objects\ObjectQuery.cs (1)
165Debug.Assert(commandText != null && commandText.Length != 0, "Invalid Command Text returned");
System\Data\Objects\Span.cs (2)
149if (path.Trim().Length == 0) 265else if (navigations[i].Length == 0)
System\Data\Query\PlanCompiler\TransformationRules.cs (5)
1102(wildCardIndex != pattern.Length - 1) || 1103(pattern.Length > str.Length + 1)) 1111for (i = 0; i < str.Length && i < pattern.Length - 1; i++)
System\Data\SqlClient\SqlGen\SqlGenerator.cs (3)
968bool needsCast = -1 == strDecimal.IndexOf('.') && (strDecimal.TrimStart(new char[] { '-' }).Length < 20); 970byte precision = (byte)Math.Max((Byte)strDecimal.Length, defaultDecimalPrecision); 3048if (separator.Length != 0)
System\Data\SqlClient\SqlProviderManifest.cs (1)
119StringBuilder sb = new StringBuilder(text.Length);
System\Data\SqlClient\SqlProviderServices.cs (1)
850strippedFileName = strippedFileName.Length > 30 ? strippedFileName.Substring(0, 30) : strippedFileName;
System\Data\SqlClient\SqlProviderUtilities.cs (2)
370AppendIdentifier(typeName.Substring(0, typeName.Length - maxSuffix.Length));
System.Data.Entity.Design (61)
System\Data\Entity\Design\Common\EDesignUtil.cs (1)
53if (value.Length == 0)
System\Data\Entity\Design\Common\MetadataUtil.cs (4)
105for (int i = offset; i < value.Length; ++i) 125length = Math.Min(value.Length, length); 222if (pos < 0 || name.Length <= pos + 1) 231attributeName = name.Substring(pos + 1, (name.Length - 1) - pos);
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (5)
550if (viewText.Length > MAXONELINELENGTH) 552CreateSizedStringBuilder(viewMethod.Statements, viewText.Length); 591for (int i = 0; i <= largeViewString.Length / ONELINELENGTH; i++) 593if (i * ONELINELENGTH + ONELINELENGTH < largeViewString.Length) 629if (viewString.Length > MAXONELINELENGTH)
System\Data\Entity\Design\PluralizationService\EnglishPluralizationService.cs (32)
421(s) => s.Remove(s.Length - 2, 2) + "en", this.Culture, out newSuffixWord)) 429(s) => s.Remove(s.Length - 4, 4) + "ice", this.Culture, out newSuffixWord)) 436(s) => s.Remove(s.Length - 4, 4) + "eeth", this.Culture, out newSuffixWord)) 442(s) => s.Remove(s.Length - 4, 4) + "eese", this.Culture, out newSuffixWord)) 448(s) => s.Remove(s.Length - 3, 3) + "eet", this.Culture, out newSuffixWord)) 454(s) => s.Remove(s.Length - 3, 3) + "oa", this.Culture, out newSuffixWord)) 460(s) => s.Remove(s.Length - 2, 2) + "es", this.Culture, out newSuffixWord)) 480(s) => s.Remove(s.Length - 1, 1) + "ces", this.Culture, out newSuffixWord)) 506(s) => s.EndsWith("deaf", true, this.Culture) ? s : s.Remove(s.Length - 1, 1) + "ves", this.Culture, out newSuffixWord)) 513(s) => s.Remove(s.Length - 2, 2) + "ves", this.Culture, out newSuffixWord)) 530return prefixWord + suffixWord.Remove(suffixWord.Length - 1, 1) + "ies"; 636(s) => s.Remove(s.Length - 2, 2) + "an", this.Culture, out newSuffixWord)) 644(s) => s.Remove(s.Length - 3, 3) + "ouse", this.Culture, out newSuffixWord)) 651(s) => s.Remove(s.Length - 4, 4) + "ooth", this.Culture, out newSuffixWord)) 657(s) => s.Remove(s.Length - 4, 4) + "oose", this.Culture, out newSuffixWord)) 663(s) => s.Remove(s.Length - 3, 3) + "oot", this.Culture, out newSuffixWord)) 669(s) => s.Remove(s.Length - 2, 2) + "oon", this.Culture, out newSuffixWord)) 677(s) => s.Remove(s.Length - 2, 2), this.Culture, out newSuffixWord)) 698(s) => s.Remove(s.Length - 3, 3) + "x", this.Culture, out newSuffixWord)) 705(s) => s.Remove(s.Length - 1, 1), this.Culture, out newSuffixWord)) 718(s) => s.Remove(s.Length - 3, 3) + "f", this.Culture, out newSuffixWord)) 725(s) => s.Remove(s.Length - 3, 3) + "fe", this.Culture, out newSuffixWord)) 733(s) => s.Remove(s.Length - 1, 1), this.Culture, out newSuffixWord)) 742return prefixWord + suffixWord.Remove(suffixWord.Length - 3, 3) + "y"; 753(s) => suffixWord.Remove(suffixWord.Length - 1, 1), this.Culture, out newSuffixWord)) 765(s) => s.Remove(s.Length - 1, 1), this.Culture, out newSuffixWord)) 772(s) => s.Remove(s.Length - 2, 2), this.Culture, out newSuffixWord)) 779return prefixWord + suffixWord.Remove(suffixWord.Length - 2, 2); 789return prefixWord + suffixWord.Remove(suffixWord.Length - 1, 1); 810if (result.Length == 0) 813StringBuilder sb = new StringBuilder(result.Length); 888word.Length <= 1 ||
System\Data\EntityModel\Emitters\CommentEmitter.cs (5)
201last = text.Length - 1; 257int minLength = Math.Min(leadingBlanks.Length, leadingBlanks2.Length); 276int numLeadingCharsToRemove = leadingBlanks.Length; 279if (lines[i].Length >= numLeadingCharsToRemove)
System\Data\EntityModel\Emitters\FixUp.cs (3)
223line = line.Remove(idx, str1.Length); 398int indexAfter = index+keyword.Length; 399if ( (index == 0 || char.IsWhiteSpace(line,index-1)) && (indexAfter == line.Length || char.IsWhiteSpace(line,indexAfter)) )
System\Data\EntityModel\Emitters\FixUpCollection.cs (9)
233if ( line == null || line.Length == 0 || line[0] == '\'' ) 335index += _CSClassKeyWord.Length; 647int indexAfter = index+keyword.Length; 648if ( (index == 0 || char.IsWhiteSpace(line, index-1)) && (indexAfter == line.Length || (ch=line[indexAfter]) == '(' || char.IsWhiteSpace(ch)) ) 669index += keyword.Length; 670if ( index >= line.Length || !char.IsWhiteSpace(line, index) ) 673if ( index >= line.Length ) 679end = line.Length; 686name = name.Substring(1, name.Length - 2);
System\Data\EntityModel\Emitters\Utils.cs (2)
204if ( text.Length == 1 ) 319if ( name.Length > 0 && name[0] == '.' )
System.Data.Linq (14)
Mapping\AttributedMetaModel.cs (2)
428if ((codeValue.GetType() == typeof(string) && ((string)codeValue).Trim().Length == 0 && 429d.GetType() == typeof(string) && ((string)d).Trim().Length == 0) ||
Mapping\MappedMetaModel.cs (2)
511if ((keyValue.GetType() == typeof(string) && ((string)keyValue).Trim().Length == 0 && 512d.GetType() == typeof(string) && ((string)d).Trim().Length == 0) ||
SqlClient\Common\InheritanceRules.cs (1)
75if (providerType.Size.HasValue && s.Length!=providerType.Size) {
SqlClient\Query\SqlFormatter.cs (1)
403if (!this.suppressedAliases.Contains(c.Alias) && aliasName != null && aliasName.Length != 0) {
SqlClient\Query\SqlIdentifier.cs (4)
29if (s.Length < 2) { 61string right = s.Substring(splitPosition + 1, s.Length - splitPosition - 1); 77string right = s.Substring(splitPosition + 1, s.Length - splitPosition - 1); 87string right = s.Substring(splitPosition + 1, s.Length - splitPosition - 1);
SqlClient\SqlMethods.cs (1)
689StringBuilder sb = new StringBuilder(text.Length);
SqlClient\SqlTypeSystemProvider.cs (3)
834end = stype.Length; 840if (start < stype.Length && stype[start] == '(') { 1378return From(clrType, str.Length);
System.Data.Services (108)
parent\Client\System\Data\Services\Client\BatchStream.cs (9)
485delimiter = delimiter.Substring(0, delimiter.Length - 2); 813if ((null == boundary) || (70 < boundary.Length)) 1127if (boundary1.Length == ++boundary1Index) 1142if (boundary2.Length == ++boundary2Index) 1183if ((0 < boundaryIndex) && (boundary.Length != boundaryIndex)) 1215if (boundary.Length == boundaryIndex) 1316if (0 < line.Length) 1354if ((index1 <= 0) || ((line.Length - 3) <= index1)) 1361if ((index2 < 0) || (index2 - index1 - 1 <= 0) || ((line.Length - 1) <= index2))
parent\Client\System\Data\Services\Client\XmlUtil.cs (1)
68name = unescaped.Substring(XmlConstants.DataWebRelatedNamespace.Length);
System\Data\Services\Epm\EpmContentDeSerializer.cs (3)
152e.PropertyPath.Length <= propertyPath.Length && e.PropertyPath == propertyPath.Substring(0, e.PropertyPath.Length)));
System\Data\Services\Epm\EpmCustomContentDeSerializer.cs (2)
206this.builder = new StringBuilder(elementValue.Length + newValue.Length)
System\Data\Services\Epm\EpmSourceTree.cs (1)
76if (propertyName.Length == 0)
System\Data\Services\Epm\EpmTargetTree.cs (2)
85if (targetSegment.Length == 0) 158if (targetSegment.Length == 0)
System\Data\Services\HttpContextServiceHost.cs (2)
467if (value.Length > 0 && value[0] == '$') 485if (name.Length > 0 && name[0] == '$')
System\Data\Services\HttpProcessUtility.cs (22)
377for (int i = 0; i < versionText.Length; i++) 427if (name.Length == 0) 542while (textIndex < text.Length && IsHttpToken(text[textIndex])) 547return (textIndex == text.Length); 560Debug.Assert(text.Length >= 0, "text >= 0"); 561Debug.Assert(textIndex <= text.Length, "text <= text.Length"); 563while (textIndex < text.Length && Char.IsWhiteSpace(text, textIndex)) 568return (textIndex == text.Length); 593if (String.Compare(text, textIndex, literal, 0, literal.Length, StringComparison.Ordinal) != 0) 599return textIndex + literal.Length == text.Length; 724if (textIndex < headerText.Length) 733while (textIndex < headerText.Length) 753if (textIndex >= headerText.Length) 806if (textIndex < text.Length && text[textIndex] == '.') 811while (adjustFactor > 1 && textIndex < text.Length) 861while (headerIndex < headerValue.Length) 981Debug.Assert(charset.Length > 0, "charset.Length > 0"); 1040if (candidate.Length > 0) 1060string candidateSubType = candidate.Substring(candidateType.Length + 1); 1086if (qvalueText.Length > 0) 1122if (encodingName.Length > 0)
System\Data\Services\Parsing\ExpressionLexer.cs (7)
70this.textLen = this.text.Length; 286builder = new StringBuilder(result, result.Length + 1 + this.CurrentToken.Text.Length); 339if (tokenText.Length == 3) 363return String.CompareOrdinal(text, 0, XmlConstants.XmlInfinityLiteral, 0, text.Length) == 0; 371if (tokenText.Length == 4) 395return text.Length == 4 &&
System\Data\Services\Parsing\WebConvert.cs (19)
77if (text.Length < 2 || text[0] != '\'' || text[text.Length - 1] != '\'') 84while (startIndex < text.Length - 1) 86int match = text.IndexOf('\'', startIndex, text.Length - startIndex - 1); 91else if (match == text.Length - 2 || text[match + 1] != '\'') 209Debug.Assert(text[text.Length - 1] == '\'', "text should end with '\''."); 211string s = text.Substring(1, text.Length - 2); 221Debug.Assert(i + 1 < s.Length && s[i + 1] == '\'', @"Each single quote should be propertly escaped with double single quotes."); 250if ((text.Length % 2) != 0) 256byte[] result = new byte[text.Length / 2]; 576if (text.Length < 2) 582if (quote != '\'' || text[text.Length - 1] != quote) 587string s = text.Substring(1, text.Length - 2); 598if (s.Length < i + 1 || s[i] != quote) 768if (text.Length <= suffix.Length || !text.EndsWith(suffix, StringComparison.OrdinalIgnoreCase)) 774text = text.Substring(0, text.Length - suffix.Length); 790text = text.Remove(0, prefix.Length);
System\Data\Services\Providers\BasicExpandProvider.cs (1)
1527Expression.Constant((this.WrapperDescription.Length == 0 ? "" : (this.WrapperDescription + ",")) + XmlConstants.HttpQueryStringSkipToken));
System\Data\Services\Providers\ExpandedProjectionNode.cs (1)
98Debug.Assert(property != null || propertyName.Length == 0, "We don't support open navigation properties.");
System\Data\Services\Providers\ObjectContextServiceProvider.cs (2)
1239capacity += segment.Length; 1271expandedNode.PropertyName.Length == 0 || pathSegments[pathSegments.Count - 1] == expandedNode.PropertyName,
System\Data\Services\Providers\ReflectionServiceProvider.cs (1)
987StringBuilder builder = new StringBuilder(type.Name.Length * 2 * (1 + genericArguments.Length));
System\Data\Services\RequestUriProcessor.cs (13)
243reference = reference.Substring(1, reference.Length - 1); 300resultBuilder.Path = resultBuilder.Path.Substring(0, resultBuilder.Path.Length - 2); 338if (segment.Length != 0 && segment != "/") 349if (segment.Length != 0 && segment != "/") 351if (segment[segment.Length - 1] == '/') 353segment = segment.Substring(0, segment.Length - 1); 675string queryPortion = hasQuery ? segmentText.Substring(identifier.Length) : null; 680if (identifier.Length == 0) 975while (filterStart < segment.Length && segment[filterStart] != '(') 981return filterStart < segment.Length; 1102WebUtil.CheckSyntaxValid(filter.Length > 0 && filter[0] == '(' && filter[filter.Length - 1] == ')'); 1103return filter.Substring(1, filter.Length - 2);
System\Data\Services\Serializers\DataStringEscapeBuilder.cs (2)
74for (this.index = 0; this.index < this.input.Length; ++this.index) 112while (++this.index < this.input.Length)
System\Data\Services\Serializers\JsonSerializer.cs (1)
455Debug.Assert(elementName == null || elementName.Length > 0, "elementName == null || elementName.Length > 0");
System\Data\Services\Serializers\JsonWriter.cs (2)
344for (int i = 0; i < s.Length; i++) 356b = new StringBuilder(s.Length + 6);
System\Data\Services\Serializers\PlainXmlDeserializer.cs (2)
327builder = new StringBuilder(newValue.Length + elementValue.Length);
System\Data\Services\Serializers\SyndicationSerializer.cs (1)
493relativeUri = absoluteUri.AbsoluteUri.Substring(this.AbsoluteServiceUri.AbsoluteUri.Length);
System\Data\Services\Serializers\XmlDocumentSerializer.cs (1)
54Debug.Assert(baseUri.AbsoluteUri[baseUri.AbsoluteUri.Length - 1] == '/', "baseUri(" + baseUri.AbsoluteUri + ") ends with '/'");
System\Data\Services\UpdatableWrapper.cs (5)
341Debug.Assert(ifMatchHeaderValue.Length >= XmlConstants.HttpWeakETagPrefix.Length + 1, "If-Match header must be properly formatted - this check is done in DataService.CheckETagValues method"); 344string strippedETag = ifMatchHeaderValue.Substring(XmlConstants.HttpWeakETagPrefix.Length, ifMatchHeaderValue.Length - XmlConstants.HttpWeakETagPrefix.Length - 1);
System\Data\Services\WebUtil.cs (8)
319if (lastBaseSegment.Length > 0 && lastBaseSegment[lastBaseSegment.Length - 1] != '/') 826if (etag.StartsWith(XmlConstants.HttpWeakETagPrefix, StringComparison.Ordinal) && etag[etag.Length - 1] == '"') 830else if (!allowStrongEtag || etag[0] != '"' || etag[etag.Length - 1] != '"') 835for (int i = etagValueStartIndex; i < etag.Length - 1; i++) 996string name = fullName.Substring(XmlConstants.EdmNamespace.Length + 1); 1154if (elementValue.Length > 0 && 1156Char.IsWhiteSpace(elementValue, elementValue.Length - 1)))
System.Data.Services.Client (38)
parent\Server\System\Data\Services\Epm\EpmSourceTree.cs (1)
76if (propertyName.Length == 0)
parent\Server\System\Data\Services\Epm\EpmTargetTree.cs (2)
85if (targetSegment.Length == 0) 158if (targetSegment.Length == 0)
parent\Server\System\Data\Services\HttpProcessUtility.cs (12)
377for (int i = 0; i < versionText.Length; i++) 427if (name.Length == 0) 542while (textIndex < text.Length && IsHttpToken(text[textIndex])) 547return (textIndex == text.Length); 560Debug.Assert(text.Length >= 0, "text >= 0"); 561Debug.Assert(textIndex <= text.Length, "text <= text.Length"); 563while (textIndex < text.Length && Char.IsWhiteSpace(text, textIndex)) 568return (textIndex == text.Length); 724if (textIndex < headerText.Length) 733while (textIndex < headerText.Length) 753if (textIndex >= headerText.Length) 1122if (encodingName.Length > 0)
System\Data\Services\Client\BatchStream.cs (9)
485delimiter = delimiter.Substring(0, delimiter.Length - 2); 813if ((null == boundary) || (70 < boundary.Length)) 1127if (boundary1.Length == ++boundary1Index) 1142if (boundary2.Length == ++boundary2Index) 1183if ((0 < boundaryIndex) && (boundary.Length != boundaryIndex)) 1215if (boundary.Length == boundaryIndex) 1316if (0 < line.Length) 1354if ((index1 <= 0) || ((line.Length - 3) <= index1)) 1361if ((index2 < 0) || (index2 - index1 - 1 <= 0) || ((line.Length - 1) <= index2))
System\Data\Services\Client\ClientConvert.cs (3)
186return (0 < propertyValue.Length ? System.Xml.Linq.XDocument.Parse(propertyValue) : new System.Xml.Linq.XDocument()); 201propertyValue = (0 == propertyValue.Length ? "String.Empty" : "String"); 206propertyValue = (0 == propertyValue.Length ? "String.Empty" : "String");
System\Data\Services\Client\ClientType.cs (4)
226if ((propertyName.Length == (declaringTypeName.Length + 2)) && 237else if ((null == keyPropertyDeclaredType) && (2 == propertyName.Length)) 478if ((0 <= index) && (index < wireName.Length - 1))
System\Data\Services\Client\DataServiceContext.cs (5)
2496if (0 == convertedValue.Length) 2503Char.IsWhiteSpace(convertedValue[convertedValue.Length - 1])) 2802for (int kk = 0; kk < NewLine.Length; ++kk) 3016for (int kk = 0; kk < NewLine.Length; ++kk) 5036this.buildBatchWriter.BaseStream.Position -= NewLine.Length;
System\Data\Services\Client\DataServiceKeyAttribute.cs (1)
49if (keyNames.Length == 0 || keyNames.Any(f => f == null || f.Length == 0))
System\Data\Services\Client\Util.cs (1)
163if (0 == value.Length)
System.Data.Services.Design (33)
System\Data\Common\Utils\StringUtil.cs (2)
34for(int i = offset; i < value.Length; ++i) 53length = Math.Min(value.Length, length);
System\Data\Entity\Design\Common\EDesignUtil.cs (1)
38if (value.Length == 0)
System\Data\EntityModel\DataServiceBuildProvider.cs (4)
177if (webReferencesRootVirtualPath.Length == virtualPath.Length) 190virtualPath = VirtualPathUtility.RemoveTrailingSlash(virtualPath).Substring(webReferencesRootVirtualPath.Length); 243for (int i = 0; i < typeName.Length; i++)
System\Data\EntityModel\Emitters\CommentEmitter.cs (5)
196last = text.Length - 1; 254int minLength = Math.Min(leadingBlanks.Length, leadingBlanks2.Length); 273int numLeadingCharsToRemove = leadingBlanks.Length; 276if (lines[i].Length >= numLeadingCharsToRemove)
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (3)
267var pairs = this.Generator.NamespaceMap.OrderByDescending(p => p.Key.Length).ThenBy(p => p.Key); 301new CodePrimitiveExpression(pair.Key.Length) 328var reversePairs = Generator.NamespaceMap.OrderByDescending(p => p.Value.Length).ThenBy(p => p.Key);
System\Data\EntityModel\Emitters\FixUp.cs (3)
221line = line.Remove(idx, str1.Length); 396int indexAfter = index+keyword.Length; 397if ( (index == 0 || char.IsWhiteSpace(line,index-1)) && (indexAfter == line.Length || char.IsWhiteSpace(line,indexAfter)) )
System\Data\EntityModel\Emitters\FixUpCollection.cs (9)
229if ( line == null || line.Length == 0 || line[0] == '\'' ) 331index += _CSClassKeyWord.Length; 643int indexAfter = index+keyword.Length; 644if ( (index == 0 || char.IsWhiteSpace(line, index-1)) && (indexAfter == line.Length || (ch=line[indexAfter]) == '(' || char.IsWhiteSpace(ch)) ) 665index += keyword.Length; 666if ( index >= line.Length || !char.IsWhiteSpace(line, index) ) 669if ( index >= line.Length ) 675end = line.Length; 682name = name.Substring(1, name.Length - 2);
System\Data\EntityModel\Emitters\Utils.cs (3)
190if (text.Length == 1) 206if (text.Length == 1) 299if (name.Length > 0 && name[0] == '.')
System\Data\Services\Design\Xml\XNodeSchemaApplier.cs (3)
223if (name.Namespace.Length == 0) 246if (attributeNamespace.Length > 0 && attributeNamespace != GetTargetNamespace(anyAttribute)) 472if (s.Length > 0)
System.Data.SqlXml (254)
System\Xml\Xsl\IlGen\OptimizerPatterns.cs (1)
251if (s.Length != 0)
System\Xml\Xsl\IlGen\XmlILConstructAnalyzer.cs (1)
972if (nd.NodeType == QilNodeType.AttributeCtor && ns.Length == 0 ||
System\Xml\Xsl\IlGen\XmlILModule.cs (2)
202if (paramNames[i] != null && paramNames[i].Length != 0) 216if (paramNames[i] != null && paramNames[i].Length != 0)
System\Xml\Xsl\IlGen\XmlILOptimizerVisitor.cs (2)
170if (((QilInvokeEarlyBound) node).Name.NamespaceUri.Length != 0) 1223return Replace(XmlILOptimization.EliminateStrLength, local0, VisitLiteralInt32(f.LiteralInt32( local2.Length )));
System\Xml\Xsl\IlGen\XmlIlVisitor.cs (5)
1404if (delimiter.NodeType == QilNodeType.LiteralString && ((string) (QilLiteral) delimiter).Length == 0) { 3372if (ndName.NamespaceUri.Length == 0) 3397if (ndName.NamespaceUri.Length == 0) { 3453else if (ndName.NamespaceUri.Length != 0 && !clrTypeRetSrc.IsValueType){ 3831if (ndLiteralName.NamespaceUri.Length == 0) {
System\Xml\Xsl\QIL\QilName.cs (3)
63if (this.prefix.Length == 0) { 120if (prefix.Length == 0) { 121if (uri.Length == 0)
System\Xml\Xsl\QIL\QilReference.cs (1)
45if (value.Length > MaxDebugNameLength)
System\Xml\Xsl\QIL\QilXmlReader.cs (3)
406if (s != null && s.Length > 0) { 420if (s != null && s.Length > 0) { 442if (name != null && name.Length > 0) {
System\Xml\Xsl\QIL\QilXmlWriter.cs (3)
112if (s != null && s.Length != 0) 113this.writer.WriteComment(name != null && name.Length != 0 ? name + ": " + s : s); 342len = zero = prefix.Length;
System\Xml\Xsl\Runtime\ContentIterators.cs (2)
189if (context.LocalName.Length != 0 || context.Value.Length != 0)
System\Xml\Xsl\Runtime\DecimalFormatter.cs (6)
45if (formatPicture.Length == 0) { 66for (int i = 0; i < formatPicture.Length; i++) { 149pos = formatPicture.Length - 1; 216StringBuilder builder = new StringBuilder(result.Length); 218for (int i = 0; i < result.Length; i++) { 225Debug.Assert(i+1 < result.Length);
System\Xml\Xsl\Runtime\XmlAttributeCache.cs (1)
85Debug.Assert(localName != null && localName.Length != 0 && prefix != null && ns != null);
System\Xml\Xsl\Runtime\XmlCollation.cs (2)
163if (lang.Length == 0) { 189if (query.Length != 0) {
System\Xml\Xsl\Runtime\XmlExtensionFunction.cs (1)
232if (this.namespaceUri.Length == 0) {
System\Xml\Xsl\Runtime\XmlQueryOutput.cs (18)
153Debug.Assert(prefix != null && localName != null && localName.Length != 0 && ns != null, "Invalid argument"); 211if (prefix.Length == 5 && prefix == "xmlns") { 223if (ns.Length != 0 && this.depth != 0) 496Debug.Assert(prefix.Length == 0 || ns.Length != 0); 506if (ns.Length == 0 && prefix.Length == 0) 658throw new XslTransformException(Res.XmlIl_NmspConflict, new string[] { prefix.Length == 0 ? "" : ":", prefix, ns, nsExisting }); 1108if (navigator.NamespaceURI.Length == 0) { 1109Debug.Assert(navigator.LocalName.Length != 0, "xmlns:foo='' isn't allowed"); 1225Debug.Assert(prefix.Length != 0 && ns.Length != 0); 1268Debug.Assert(prefix != null && ns != null && ns.Length != 0); 1282if (isElemPrefix || genPrefix.Length != 0) 1290if (isElemPrefix || genPrefix.Length != 0) 1367Debug.Assert(ValidateNames.ParseNCName(name.Name, 0) == name.Name.Length); 1370prefix = (name.Namespace.Length != 0) ? RemapPrefix(string.Empty, name.Namespace, nodeType == XPathNodeType.Element) : string.Empty; 1387prefix = (ns.Length != 0) ? RemapPrefix(string.Empty, ns, nodeType == XPathNodeType.Element) : string.Empty;
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (1)
396if (prefix.Length == 0)
System\Xml\Xsl\Runtime\XmlRawWriterWrapper.cs (1)
190if (prefix.Length == 0)
System\Xml\Xsl\Runtime\XslNumber.cs (8)
115Debug.Assert(groupingSeparator.Length <= 1); 120this.groupingSize = groupingSeparator.Length > 0 ? groupingSize : 0; 122if (formatString == "1" || formatString.Length == 0) { 136for (int idx = 0; idx <= formatString.Length; idx++) { 138if (idx == formatString.Length || isAlphaNumeric != CharUtil.IsAlphaNumeric(formatString[idx])) { 270int oldLen = str.Length; 275Debug.Assert(groupSeparator.Length == 1); 293char separator = (groupSeparator.Length > 0) ? groupSeparator[0] : ' ';
System\Xml\Xsl\Runtime\XsltConvert.cs (1)
75return item.Value.Length != 0;
System\Xml\Xsl\Runtime\XsltFunctions.cs (28)
37return s1.Length >= s2.Length && string.CompareOrdinal(s1, 0, s2, 0, s2.Length) == 0; 46if (s2.Length == 0) { return s2; } 53if (s2.Length == 0) { return s1; } 56return (idx < 0) ? string.Empty : s1.Substring(idx + s2.Length); 63} else if (startIndex <= value.Length) { 66Debug.Assert(value.Length < startIndex || Double.IsNaN(startIndex)); 73if (startIndex >= value.Length) { 81if (endIndex > value.Length) { 82endIndex = value.Length; 84Debug.Assert(0 <= startIndex && startIndex <= endIndex && endIndex <= value.Length); 97for (idx = 0; idx < value.Length; idx++) { 106sb = new StringBuilder(value.Length); 132sb = new StringBuilder(value.Length); 148if (mapString.Length == 0) { 152StringBuilder sb = new StringBuilder(arg.Length); 154for (int i = 0; i < arg.Length; i++) { 159} else if (index < transString.Length) { 175return (lang.Length == value.Length || lang[value.Length] == '-'); 350StringBuilder sb = new StringBuilder(format.Length + 16); 353if (format.Length == 0) { 385for (int idx = 0; idx < options.Length; idx++) { 465if (len != name.Length) { 479if (len != name.Length) { 503if (lang.Length == 0) {
System\Xml\Xsl\Runtime\XsltLibrary.cs (2)
144if (name.Namespace.Length == 0 || name.Namespace == XmlReservedNs.NsXslt) { 225if (lang.Length == 0) {
System\Xml\Xsl\SourceLineInfo.cs (1)
87if (uriString.Length != 0 &&
System\Xml\Xsl\XmlQualifiedNameTest.cs (1)
113if (this.Namespace.Length == 0) {
System\Xml\Xsl\XmlQueryType.cs (1)
626else if (name.Namespace.Length == 0) {
System\Xml\Xsl\XPath\XPathBuilder.cs (2)
483if (prefix.Length == 0) { 721if (nsUri.Length != 0) {
System\Xml\Xsl\XPath\XPathCompileException.cs (4)
79if (queryString == null || queryString.Trim(' ').Length == 0) { 93AppendTrimmed(sb, queryString, endChar, queryString.Length - endChar, TrimType.Right); 102if (error != null && error.Length > 0) { 103if (message.Length > 0) {
System\Xml\Xsl\XPath\XPathParser.cs (1)
202return scanner.Prefix.Length == 0 && (
System\Xml\Xsl\XPath\XPathQilFactory.cs (1)
212? Boolean(((string)(QilLiteral)n).Length != 0)
System\Xml\Xsl\XPath\XPathScanner.cs (7)
94Debug.Assert(0 <= index && index <= xpathExpr.Length); 100Debug.Assert(-1 <= curIndex && curIndex < xpathExpr.Length); 102if (curIndex < xpathExpr.Length) { 105Debug.Assert(curIndex == xpathExpr.Length); 365if (prefix.Length != 0 || name.Length > 3) 446SetSourceIndex(xpathExpr.Length);
System\Xml\Xsl\XPathConvert.cs (1)
2735char *pchEnd = pchStart + s.Length;
System\Xml\Xsl\XslException.cs (4)
68if (info != null && info.Length > 0) { 173if (lineInfoMessage != null && lineInfoMessage.Length > 0) { 174if (message.Length > 0 && !XmlCharType.Instance.IsWhiteSpace(message[message.Length - 1])) {
System\Xml\Xsl\Xslt\Compiler.cs (4)
182if (prefix.Length == 0) { 239return namespaceName.Length > 0 && namespaceName[0] == '\0'; 244return nsUri.Length > 0 && nsUri[0] == '\0'; 405Debug.Assert(characters.Length == 8);
System\Xml\Xsl\Xslt\OutputScopeManager.cs (1)
114records[lastRecord ].prefix.Length == 0 &&
System\Xml\Xsl\Xslt\QilGenerator.cs (17)
788if (prefix.Length != 0) { 816if (name == "xmlns" || local == "xmlns" && nsUri.Length == 0) { 838Debug.Assert(pos < source.Length); 842for (i = pos; i < source.Length; i++) { 846if (i + 1 < source.Length && source[i + 1] == ch) { // "{{" or "}}" 856pos = source.Length; 866Debug.Assert(i == source.Length || source[i] == '{'); 879while (pos < source.Length) { 884if (pos < source.Length) { // '{' encountered, parse an expression 1361if (nsUri.Length == 0) { 1716if (value.Length != 1) { 1956XPathCompileException e = new XPathCompileException(expr, 0, expr.Length, Res.XPath_NodeSetExpected, null); 1981pos = expr.Length; 2087if (ignoreDefaultNs && recPrefix.Length == 0) { 2239string attMode = (mode.LocalName.Length == 0) ? string.Empty : " mode=\"" + mode.QualifiedName + '"'; 2312if (ignoreDefaultNs && prefix.Length == 0) { 2317if (prefix.Length == 0) {
System\Xml\Xsl\Xslt\QilGeneratorEnv.cs (5)
95if (prefix.Length == 0) { 216if (ignoreDefaultNs && prefix.Length == 0) { 221if (prefix.Length != 0) { 269if (nsUri.Length == 0) { 584if (qname.Namespace.Length == 0 || qname.Namespace == XmlReservedNs.NsXslt) {
System\Xml\Xsl\Xslt\XPathPatternBuilder.cs (1)
261Debug.Assert(prefix.Length == 0);
System\Xml\Xsl\Xslt\XPathPatternParser.cs (2)
86if (scanner.CanBeFunction && scanner.Prefix.Length == 0 && (scanner.Name == "id" || scanner.Name == "key")) { 116Debug.Assert(scanner.Prefix.Length == 0);
System\Xml\Xsl\Xslt\XslAst.cs (1)
238if (Mode.LocalName.Length != 0) {
System\Xml\Xsl\Xslt\XslAstAnalyzer.cs (6)
834while (pos < source.Length) { 840if (pos < source.Length && source[pos] == '{') { // "{{" 844if (pos < source.Length) { // '{' encountered, parse an expression 871if (prefix.Length == 0) { 961if (prefix.Length == 0) { 1132for (int t = 2; t < xpath.Length; t += 2) {
System\Xml\Xsl\Xslt\XsltInput.cs (14)
256} else if (rec.prefix.Length == 0 && Ref.Equal(rec.localName, atoms.Xmlns)) { // xmlns="NS_FOO" 273int nameLength = ((rec.prefix.Length != 0) ? rec.prefix.Length + 1 : 0) + rec.localName.Length; 296int correction = ((reader.NodeType == XmlNodeType.EndEntity) ? 1 : lastText.Length) + 1; 354if (local.Length > 0 && ( 503return qn.prefix.Length == 0 ? qn.localName : (qn.prefix + ':' + qn.localName); 809if (value.Length != 0) { 818if (list[idx].Length == 0 && compiler.Version != 1 && !BackwardCompatibility) { 846if (Value.Length != 0) { 915return new SourceLineInfo(Uri, new Location(line, pos), new Location(line, pos + QualifiedName.Length)); 937if (prefix.Length == 0) { 981elemNameLength = input.QualifiedName.Length; 1032public string QualifiedName { get { return prefix.Length == 0 ? localName : string.Concat(prefix, ":", localName); } }
System\Xml\Xsl\Xslt\XsltLoader.cs (9)
168Uri resolvedBaseUri = (baseUri.Length != 0) ? xmlResolver.ResolveUri(null, baseUri) : null; 839if (input.Value.Length == 0) { 847if (input.Value.Length == 0) { 1082if (input.Value.Length == 0) { 2522if (ignoreDefaultNs && prefix.Length == 0) { 2580if (elements != null && elements.Length != 0) { 2586} else if (prefix == null || prefix.Length == 0) { 2611} else if (prefix.Length == 0) { 2666if (input.Value.Length == 1) {
System\Xml\Xsl\XsltOld\AttributeAction.cs (1)
41if (qname.Prefix.Length == 3) { // prefix == "xml"
System\Xml\Xsl\XsltOld\BeginEvent.cs (1)
48if (this.nodeType == XPathNodeType.Attribute && this.namespaceUri.Length == 0) {
System\Xml\Xsl\XsltOld\BuilderInfo.cs (4)
85if (prefix != null && 0 < prefix.Length) { 86if (localName.Length > 0) { 127size += ti.Length; 145if (s == null || s.Length == 0) {
System\Xml\Xsl\XsltOld\CompiledAction.cs (1)
28if (input.NamespaceURI.Length != 0) continue;
System\Xml\Xsl\XsltOld\Compiler.cs (11)
264if (value.Length != 0) { 396if (tokens == null || tokens.Length == 0) { 441if (nspace.Length != 0) continue; 510Uri uri = this.xmlResolver.ResolveUri((baseUri.Length != 0) ? this.xmlResolver.ResolveUri(null, baseUri) : null, relativeUri); 714if (nsUri.Length == 0 || nsUri == XmlReservedNs.NsXslt) { 848Debug.Assert(avt.Length != start, "Empty string not supposed here"); 850int avtLength = avt.Length; 880Debug.Assert(avt.Length != start, "Empty string not supposed here"); 883int avtLength = avt.Length; 926Debug.Assert(start <= avt.Length); 931if (start == avt.Length) {
System\Xml\Xsl\XsltOld\ContainerAction.cs (9)
57if (nspace.Length != 0) continue; 241if (nspace.Length != 0) continue; 282if (nspace.Length != 0) continue; 319if (input.Prefix.Length != 0) continue; 349if (CheckAttribute(value.Length == 1, compiler)) { 354if (CheckAttribute(value.Length == 1, compiler)) { 359if (CheckAttribute(value.Length == 1, compiler)) { 399int idx = name.Length - 2; 501if (nspace.Length == 0) {
System\Xml\Xsl\XsltOld\DbgCompiler.cs (1)
555if (builtIn != null && builtIn.Length != 0) {
System\Xml\Xsl\XsltOld\DocumentScope.cs (2)
28Debug.Assert(prefix != null && prefix.Length > 0); 41Debug.Assert(prefix != null && prefix.Length > 0);
System\Xml\Xsl\XsltOld\InputScopeManager.cs (3)
72if (prefix == null || prefix.Length == 0) { 104if (prefix.Length == 0) { 112if (prefix.Length == 0) {
System\Xml\Xsl\XsltOld\NamespaceEvent.cs (1)
27if (this.namespaceUri.Length != 0) { // Do we need to check this for namespace?
System\Xml\Xsl\XsltOld\NavigatorOutput.cs (1)
45if( attrInfo.Prefix.Length == 0 )
System\Xml\Xsl\XsltOld\NumberAction.cs (7)
123if (str.Length >= minLength) { 127sb.Append('0', minLength - str.Length); 208if (this.groupingSep != null && this.groupingSep.Length > 1) { 441if (groupingSep.Length > 1) { 601if (formatString == null || formatString.Length == 0) { 614while (length <= formatString.Length) { 616bool currentchar = length < formatString.Length ? CharUtil.IsAlphaNumeric(formatString[length]) : !lastAlphaNumeric;
System\Xml\Xsl\XsltOld\OutputScope.cs (1)
77scope.Prefix.Length > 0) {
System\Xml\Xsl\XsltOld\OutputScopeManager.cs (2)
67if (prefix == null || prefix.Length == 0) { 107if (prefix == null || prefix.Length == 0) {
System\Xml\Xsl\XsltOld\PrefixQname.cs (4)
44if (position < qname.Length) { 57if (position < qname.Length) { 64if (prefix.Length == 0) { 68return endPos == prefix.Length;
System\Xml\Xsl\XsltOld\ProcessingInstructionAction.cs (1)
117int nameLength = name.Length;
System\Xml\Xsl\XsltOld\ReaderOutput.cs (4)
71if (prefix != null && prefix.Length > 0) { 72if (localName.Length > 0) { 293Debug.Assert(this.Value.Length != 0, "It whould be Whitespace in this case"); 296if(this.Value.Length == 0) {
System\Xml\Xsl\XsltOld\RecordBuilder.cs (9)
533for (; index < comment.Length; index ++) { 538newComment = new StringBuilder(comment, begin, index, 2 * comment.Length); 554if (begin < comment.Length) 555newComment.Append(comment, begin, comment.Length - begin); 576for (; index < pi.Length; index ++) { 584newPI = new StringBuilder(pi, begin, index, 2 * pi.Length); 601if (begin < pi.Length) { 602newPI.Append(pi, begin, pi.Length - begin); 665Debug.Assert(prefix != null && prefix.Length > 0);
System\Xml\Xsl\XsltOld\SequentialOutput.cs (8)
115if (mainNode.Prefix.Length == 0) { 326if (node.NamespaceURI.Length == 0 && String.Compare("html", node.LocalName, StringComparison.OrdinalIgnoreCase) == 0) { 466if (prefix != null && prefix.Length > 0) { 468if (name != null && name.Length > 0) { 486int length = value.Length; 514int length = value.Length; 561int length = value.Length; 611if(htmlElementsProps != null && attribute.Prefix.Length == 0) {
System\Xml\Xsl\XsltOld\SortAction.cs (3)
38if (! XmlComplianceUtil.IsValidLanguageID(value.ToCharArray(), 0, value.Length) 39&& (value.Length == 0 || CultureInfo.GetCultureInfo(value) == null) 62if (prefix.Length == 0 && ! this.forwardCompatibility) {
System\Xml\Xsl\XsltOld\UseAttributesetsAction.cs (1)
32if (this.useString.Length == 0) {
System\Xml\Xsl\XsltOld\XsltCompileContext.cs (3)
185if(prefix.Length == 0) { 217if (baseUri.Length != 0) { 376} else if(ns.Length == 0) {
System\Xml\Xsl\XsltOld\XsltOutput.cs (1)
191if(method.Namespace.Length != 0) {
System.Drawing (69)
commonui\System\Drawing\Advanced\ColorTranslator.cs (4)
232if ((htmlColor == null) || (htmlColor.Length == 0)) 237((htmlColor.Length == 7) || (htmlColor.Length == 4))) { 239if (htmlColor.Length == 7) {
commonui\System\Drawing\Advanced\EncoderParameter.cs (1)
251numberOfValues = value.Length;
commonui\System\Drawing\Advanced\Font.cs (2)
610return familyName != null && familyName.Length > 0 && familyName[0] == '@'; 770if (familyName != null && familyName.Length > 1 && familyName[0] == '@') {
commonui\System\Drawing\Advanced\GraphicsPath.cs (4)
1367s.Length, 1390s.Length, 1412s.Length, 1434s.Length,
commonui\System\Drawing\Advanced\SizeFConverter.cs (1)
68if (text.Length == 0) {
commonui\System\Drawing\ColorConverter.cs (7)
134if (text.Length == 0) { 158if (text.Length >= 2 && (text[0] == '\'' || text[0] == '"') && text[0] == text[text.Length -1]) { 160string colorName = text.Substring(1, text.Length - 2); 164else if ((text.Length == 7 && text[0] == '#') || 165(text.Length == 8 && (text.StartsWith("0x") || text.StartsWith("0X"))) || 166(text.Length == 8 && (text.StartsWith("&h") || text.StartsWith("&H")))) {
commonui\System\Drawing\Design\ToolboxItem.cs (2)
622if (a == null && assemblyName.CodeBase != null && assemblyName.CodeBase.Length > 0) { 1017if (propertyName == null || propertyName.Length == 0) {
commonui\System\Drawing\FontConverter.cs (9)
90if (text.Length == 0) { 112if( nameIndex < text.Length - 1 ){ // other parameters provided. 118styleStr = text.Substring(styleIndex, text.Length - styleIndex); 129sizeStr = text.Substring(nameIndex + 1, text.Length - nameIndex - 1); 151styleStr = styleStr.Substring(eqIndex + 1, styleStr.Length - styleHdr.Length); 459int length = text.Length; 653if (bestMatch == null || fontName.Length <= bestMatch.Length) {
commonui\System\Drawing\Graphics.cs (10)
2496if (s == null || s.Length == 0) return; 2502int status = SafeNativeMethods.Gdip.GdipDrawString(new HandleRef(this, this.NativeGraphics), s, s.Length, new HandleRef(font, font.NativeFont), ref grf, new HandleRef(format, nativeStringFormat), new HandleRef(brush, brush.NativeBrush)); 2515if (text == null || text.Length == 0) { 2526int status = SafeNativeMethods.Gdip.GdipMeasureString(new HandleRef(this, this.NativeGraphics), text, text.Length, new HandleRef(font, font.NativeFont), ref grfLayout, 2542if (text == null || text.Length == 0) 2556int status = SafeNativeMethods.Gdip.GdipMeasureString(new HandleRef(this, this.NativeGraphics), text, text.Length, new HandleRef(font, font.NativeFont), 2580if (text == null || text.Length == 0) { 2592int status = SafeNativeMethods.Gdip.GdipMeasureString(new HandleRef(this, this.NativeGraphics), text, text.Length, new HandleRef(font, font.NativeFont), 2633if (text == null || text.Length == 0) { 2659status = SafeNativeMethods.Gdip.GdipMeasureCharacterRanges(new HandleRef(this, this.NativeGraphics), text, text.Length, new HandleRef(font, font.NativeFont), ref grf,
commonui\System\Drawing\PointConverter.cs (1)
68if (text.Length == 0) {
commonui\System\Drawing\Printing\MarginsConverter.cs (1)
67if (text.Length == 0) {
commonui\System\Drawing\Printing\PrinterSettings.cs (4)
1105int namesCharacters = checked(4 + printerName.Length + driver.Length + outPort.Length); 1414return checked((short) (str.Length + 1));
commonui\System\Drawing\RectangleConverter.cs (1)
68if (text.Length == 0) {
commonui\System\Drawing\SizeConverter.cs (1)
68if (text.Length == 0) {
misc\DbgUtil.cs (3)
344fileName = fileName.Substring( backSlashIndex + 1, fileName.Length - backSlashIndex - 1); 352if( args.Length > 0 ) // remove last comma. 354args = args.Substring(0, args.Length - 2);
misc\DebugHandleTracker.cs (4)
378length = releventStack.Length; 387int stringLength = str.Length; 388int tokenLength = token.Length; 474length = releventStack.Length;
misc\GDI\UnsafeNativeMethods.cs (11)
387int byteCount = IntUnsafeNativeMethods.WideCharToMultiByte( IntNativeMethods.CP_ACP, 0, text, text.Length, null, 0, IntPtr.Zero, IntPtr.Zero ); 389IntUnsafeNativeMethods.WideCharToMultiByte( IntNativeMethods.CP_ACP, 0, text, text.Length, textBytes, textBytes.Length, IntPtr.Zero, IntPtr.Zero ); 397retVal = DrawTextW( hDC, text, text.Length, ref lpRect, nFormat ); 426int byteCount = IntUnsafeNativeMethods.WideCharToMultiByte(IntNativeMethods.CP_ACP, 0, text, text.Length, null, 0, IntPtr.Zero, IntPtr.Zero); 428IntUnsafeNativeMethods.WideCharToMultiByte(IntNativeMethods.CP_ACP, 0, text, text.Length, textBytes, textBytes.Length, IntPtr.Zero, IntPtr.Zero); 436retVal = DrawTextExW( hDC, text, text.Length, ref lpRect, nFormat, lpDTParams ); 456int byteCount = text.Length; 461byteCount = IntUnsafeNativeMethods.WideCharToMultiByte(IntNativeMethods.CP_ACP, 0, text, text.Length, null, 0, IntPtr.Zero, IntPtr.Zero); 463IntUnsafeNativeMethods.WideCharToMultiByte(IntNativeMethods.CP_ACP, 0, text, text.Length, textBytes, textBytes.Length, IntPtr.Zero, IntPtr.Zero); 466byteCount = Math.Min( text.Length, IntNativeMethods.MaxTextLengthInWin9x); 471retVal = GetTextExtentPoint32W(hDC, text, text.Length, size);
parent\parent\parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (3)
81if (frameworkName == null || frameworkName.Length == 0) 100if (identifier.Length == 0) 133if (value.Length > 0 && (value[0] == c_versionValuePrefix || value[0] == 'V'))
System.IdentityModel (60)
parent\parent\parent\parent\parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (3)
81if (frameworkName == null || frameworkName.Length == 0) 100if (identifier.Length == 0) 133if (value.Length > 0 && (value[0] == c_versionValuePrefix || value[0] == 'V'))
System\IdentityModel\CanonicalFormWriter.cs (3)
30if (s.Length > workBuffer.Length) 36for (int i = 0; i < s.Length; i++) 50stream.Write(workBuffer, 0, s.Length);
System\IdentityModel\Claims\Claim.cs (2)
54if (claimType.Length <= 0) 58if (right.Length <= 0)
System\IdentityModel\Claims\X509CertificateClaimSet.cs (2)
426int separatorFirstChar = delimiterIndex + subjectName.Length + 1; 428for (int i = separatorFirstChar + 1; i < x509ExtensionFormattedString.Length; i++)
System\IdentityModel\Diagnostics\DigestTraceRecordHelper.cs (1)
69writer.WriteElementString(CanonicalElementStringLength, contentAsString.Length.ToString(CultureInfo.InvariantCulture));
System\IdentityModel\ExclusiveCanonicalizationTransform.cs (1)
245else if (prefix.Length > 0)
System\IdentityModel\Metadata\EntityId.cs (1)
44if (value.ToString().Length > MaximumLength)
System\IdentityModel\Metadata\MetadataSerializer.cs (1)
3317else if (value.Length > 0)
System\IdentityModel\PreDigestedSignedInfo.cs (1)
301DiagnosticUtility.DebugAssert(XmlSignatureStrings.Prefix.Length == 0, "Update SignedInfoCanonicalFormWriter to match new XmlDSig prefix");
System\IdentityModel\SecurityUtils.cs (3)
536int length = hexString.Length; 542length = hexString.Length - 2; 574for (int j = 0; i < hexString.Length; i += 2, j++)
System\IdentityModel\Selectors\X509CertificateChain.cs (3)
338oidSize += (oidStr.Length + 1); 348if (ansiOid.Length != oidStrs[index].Length) { 357pOid = new IntPtr((long)pOid + oidStrs[index].Length + 1);
System\IdentityModel\SignedXml.cs (1)
1150if (this.uri == null || this.uri.Length < 2 || this.uri[0] != '#')
System\IdentityModel\SspiHelper.cs (4)
171UserNameLength = userName == null ? 0 : userName.Length; 173PasswordLength = password == null ? 0 : password.Length; 175DomainLength = domain == null ? 0 : domain.Length; 188PackageListLength = PackageList.Length;
System\IdentityModel\SspiSafeHandles.cs (3)
274if (targetName == null || targetName.Length == 0) 1414byte[] bytes = DiagnosticUtility.Utility.AllocateByteArray(checked((s.Length + 1) * 2)); 1415Encoding.Unicode.GetBytes(s, 0, s.Length, bytes, 0);
System\IdentityModel\StrTransform.cs (1)
199else if (prefix.Length > 0)
System\IdentityModel\Tokens\Saml2Attribute.cs (2)
166if (prefix.Length == 0) 172if (suffix.Length == 0)
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (3)
3056attributeValueXsiTypeSuffixWithLocalPrefix.IndexOf(":", StringComparison.Ordinal) < attributeValueXsiTypeSuffixWithLocalPrefix.Length - 1) 3242else if (value.Length > 0) 3897else if (0 == value.Length)
System\IdentityModel\Tokens\SamlAttribute.cs (4)
69if ((lastSlashIndex == -1) || (lastSlashIndex == 0) || (lastSlashIndex == claim.ClaimType.Length - 1)) 77this.name = StringUtil.OptimizeString(claim.ClaimType.Substring(lastSlashIndex + 1, claim.ClaimType.Length - (lastSlashIndex + 1))); 155if (prefix.Length == 0) 161if (suffix.Length == 0)
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (5)
678else if (lastSlashIndex == claim.Type.Length - 1) 709attributeName = claim.Type.Substring(lastSlashIndex + 1, claim.Type.Length - (lastSlashIndex + 1)); 1267if ((lastSlashIndex == -1) || (!(lastSlashIndex == attr.Namespace.Length - 1))) 1443if (attributeValue != null && attributeValue.Length > 0) 2652attributeValueXsiTypeSuffixWithLocalPrefix.IndexOf(":", StringComparison.Ordinal) < attributeValueXsiTypeSuffixWithLocalPrefix.Length - 1) // "some-non-empty-local-prefix:some-non-empty-string" case
System\IdentityModel\Tokens\SessionSecurityToken.cs (3)
1006if ((delimiterPos < 0) || (delimiterPos == 0) || (delimiterPos == windowsLogonName.Length - 1)) 1782if ((name.Length < 3) || (delimiterPos < 0) || (delimiterPos == 0) || (delimiterPos == name.Length - 1))
System\IdentityModel\Tokens\WSSecurityJan2004.cs (1)
507if (uri != null && uri.Length > 0 && uri[0] == '#')
System\IdentityModel\XmlAttributeHolder.cs (2)
79if (value.Length == 0) 97int byteCount = s.Length * sizeof(char);
System\IdentityModel\XmlUtil.cs (8)
59for (i = s.Length; i > 0 && IsWhitespace(s[i - 1]); i--); 61if (i != s.Length) 72for (i = 0; i < s.Length && IsWhitespace(s[i]); i++); 85for (i = 0; i < s.Length && IsWhitespace(s[i]); i++); 86if (i >= s.Length) 92for (j = s.Length; j > 0 && IsWhitespace(s[j - 1]); j--); 95if (i != 0 || j != s.Length) 166name = qstring.Substring(colon + 1, qstring.Length - (colon + 1));
System\ServiceModel\Security\EncryptedType.cs (1)
334if (this.id != null && this.id.Length != 0)
System\ServiceModel\Security\ReferenceList.cs (1)
122if (uri.Length < 2 || uri[0] != '#')
System.IdentityModel.Selectors (1)
infocard\common\managed\HGlobalSafeHandle.cs (1)
32int bytes = (managedString.Length + 1) * 2;
System.IO.Compression.FileSystem (3)
parent\parent\parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (3)
81if (frameworkName == null || frameworkName.Length == 0) 100if (identifier.Length == 0) 133if (value.Length > 0 && (value[0] == c_versionValuePrefix || value[0] == 'V'))
System.IO.Log (6)
System\IO\Log\LogPolicy.cs (3)
118if ((value.Length == 0) || (value.Length > Const.MAX_PATH)) 284policy.PrefixLengthInBytes = (ushort)((this.newExtentPrefix.Length) * 2);
System\IO\Log\LogStore.cs (2)
98if (path.Length > 4) 244if (path.Length > 4)
System\IO\Log\UnsafeNativeMethods.cs (1)
356this.PrefixLengthInBytes = (ushort)(this.PrefixString.Length * 2);
System.Management (218)
Instrumentation\Attributes.cs (5)
57if(namespaceName == null || namespaceName.Length == 0) 64if( namespacePart.Length == 0 133if(null == securityDescriptor || securityDescriptor.Length == 0) 354if(null == managedBaseClassName || managedBaseClassName.Length == 0) 430if(attr.name != null && attr.name.Length != 0)
Instrumentation\EventSource.cs (1)
846WmiNetUtilsHelper.WritePropertyValue_f28(28, insts[count], handleInstanceId, (instanceId.Length+1)*2, instanceId);
Instrumentation\ManagementInstaller.cs (4)
136if(mofFile == null || mofFile.Length == 0) 139if(mofFile == null || mofFile.Length == 0) 146if(mofFile.Length<4) 150if(String.Compare(mofFile.Substring(mofFile.Length-4,4),".mof",StringComparison.OrdinalIgnoreCase)!=0)
managementclass.cs (6)
459 if ((null == Path) || (null == Path.Path) || (0 == Path.Path.Length)) 586 if ((null == Path) || (null == Path.Path) || (0 == Path.Path.Length)) 1053 if ((null == Path) || (null == Path.Path) || (0 == Path.Path.Length)) 1151 if ((null == Path) || (null == Path.Path) || (0 == Path.Path.Length)) 1262 if ((null == Path) || (null == Path.Path) || (0 == Path.Path.Length)) 1356 if ((null == Path) || (null == Path.Path) || (0 == Path.Path.Length))
ManagementDatetime.cs (7)
128 if (dmtf.Length == 0) 135 if(dmtf.Length != SIZEOFDMTFDATETIME) 280 UtcString = "-" + strTemp.Substring(1, strTemp.Length-1).PadLeft(3,'0'); 299 if(strMicrosec.Length > 6) 347 if (dmtfts.Length == 0) 351 if(dmtfts.Length != SIZEOFDMTFDATETIME) 454 if(strMicrosec.Length > 6)
managementobject.cs (18)
397if ((null != scope) && (scope.Path.NamespacePath.Length>0)) 422if (nsPath.Length>0) 574if ((nsPath.Length > 0) && (scope != null) && (scope.IsDefaulted)) 784if ((null == path) || (path.Path.Length==0)) 906if ((null == path) || (path.Path.Length==0)) 1042if ((null == path) || (path.Path.Length==0)) 1159if ((null == path) || (path.Path.Length==0)) 1280if ((null == path) || (path.Path.Length==0)) 1388if ((null == path) || (path.Path.Length==0)) 1975if ((null == path) || (path.Path.Length==0)) 2039if ((null == path) || (path.Path.Length==0)) 2163if ((null == path) || (path.Path.Length==0)) 2208if ((null == path) || (path.Path.Length==0)) 2309if ((null == path) || (path.Path.Length==0)) 2377if ((null == path) || (path.Path.Length==0)) 2608if (0 < nsPath.Length) 2624if (0 < nsPath.Length) 2668if (curPath.Length>0)
managementoptions.cs (3)
1337for( int i=0; i <value.Length;i++) 1345for( int i=0; i <value.Length;i++) 1568for( int i=0; i <password.Length;i++)
managementpath.cs (5)
136if (nsPath.Length != 0) 194if ((null != path) && (0 < path.Length)) 392return (Path.Length == 0 ) ; 574if (nsPath.Length>0 ) 735if (status >= 0 && nsPath.Length > 1 &&
managementquery.cs (149)
124 q = q.Remove (0, token.Length).TrimStart (null); 133 q = q.Remove(0, op.Length).TrimStart(null); 136 if (0 == q.Length) 143 i = q.Length; // No WS => consume entire string 146 q = q.Remove (0, tokenValue.Length).TrimStart(null); 155 q = q.Remove (0, token.Length).TrimStart (null); 675 if (p.IsClass && (p.NamespacePath.Length==0)) 918 if ((className == null) || (className.Length==0)) 946 if ((Condition != null) && (Condition.Length != 0)) 976 if ((q.Length >= keyword.Length) && (String.Compare(q, 0, keyword, 0, keyword.Length, StringComparison.OrdinalIgnoreCase) == 0)) //select clause found 994 if (tempProp.Length>0) 1019 if ((q.Length >= keyword.Length) && (String.Compare(q, 0, keyword, 0, keyword.Length, StringComparison.OrdinalIgnoreCase) == 0)) //from clause found 1026 if ((q.Length >= keyword.Length) && (String.Compare(q, 0, keyword, 0, keyword.Length, StringComparison.OrdinalIgnoreCase) == 0)) //where clause exists 1028 condition = q.Substring(keyword.Length).Trim(); 1037 if ((q.Length < keyword.Length) || 1038 (0 != String.Compare (q, 0, keyword, 0, keyword.Length, StringComparison.OrdinalIgnoreCase))) 1041 q = q.Remove (0, keyword.Length).TrimStart (null); 1052 if ((q.Length < keyword.Length) || 1053 (0 != String.Compare (q, 0, keyword, 0, keyword.Length, StringComparison.OrdinalIgnoreCase))) 1056 q = q.Remove (0, keyword.Length).TrimStart (null); 1061 if ((q.Length < keyword.Length) || 1062 (0 != String.Compare (q, 0, keyword, 0, keyword.Length, StringComparison.OrdinalIgnoreCase))) 1065 q = q.Remove (0, keyword.Length).TrimStart (null); 1068 if (0 < q.Length) 1073 if ((q.Length < keyword.Length) || 1074 (0 != String.Compare (q, 0, keyword, 0, keyword.Length, StringComparison.OrdinalIgnoreCase))) 1077 q = q.Remove (0, keyword.Length); 1080 if ((0 == q.Length) || !Char.IsWhiteSpace (q[0])) 1273if ((p.IsClass || p.IsInstance) && (p.NamespacePath.Length==0)) 1565 if ((sourceObject == null) || (sourceObject.Length==0)) 1572 if (!(RelatedClass.Length==0) || 1573 !(RelationshipClass.Length==0) || 1574 !(RelatedQualifier.Length==0) || 1575 !(RelationshipQualifier.Length==0) || 1576 !(RelatedRole.Length==0) || 1577 !(ThisRole.Length==0) || 1584 if (!(RelatedClass.Length==0)) 1588 if (!(RelationshipClass.Length==0)) 1592 if (!(RelatedRole.Length==0)) 1596 if (!(ThisRole.Length==0)) 1600 if (!(RelatedQualifier.Length==0)) 1604 if (!(RelationshipQualifier.Length==0)) 1647 if (0 != String.Compare(q, 0, tokenAssociators, 0, tokenAssociators.Length, StringComparison.OrdinalIgnoreCase)) 1651 q = q.Remove(0, tokenAssociators.Length); 1654 if ((0 == q.Length) || !Char.IsWhiteSpace (q[0])) 1660 if (0 != String.Compare(q, 0, tokenOf, 0, tokenOf.Length, StringComparison.OrdinalIgnoreCase)) 1664 q = q.Remove(0, tokenOf.Length).TrimStart (null); 1681 if (0 < q.Length) 1684 if (0 != String.Compare (q, 0, tokenWhere, 0, tokenWhere.Length, StringComparison.OrdinalIgnoreCase)) 1687 q = q.Remove (0, tokenWhere.Length); 1690 if ((0 == q.Length) || !Char.IsWhiteSpace (q[0])) 1708 if ((q.Length >= tokenResultClass.Length) && (0 == String.Compare (q, 0, tokenResultClass, 0, tokenResultClass.Length, StringComparison.OrdinalIgnoreCase))) 1710 else if ((q.Length >= tokenAssocClass.Length) && (0 == String.Compare (q, 0, tokenAssocClass, 0, tokenAssocClass.Length, StringComparison.OrdinalIgnoreCase))) 1712 else if ((q.Length >= tokenResultRole.Length) && (0 == String.Compare (q, 0, tokenResultRole, 0, tokenResultRole.Length, StringComparison.OrdinalIgnoreCase))) 1714 else if ((q.Length >= tokenRole.Length) && (0 == String.Compare (q, 0, tokenRole, 0, tokenRole.Length, StringComparison.OrdinalIgnoreCase))) 1716 else if ((q.Length >= tokenRequiredQualifier.Length) && (0 == String.Compare (q, 0, tokenRequiredQualifier, 0, tokenRequiredQualifier.Length, StringComparison.OrdinalIgnoreCase))) 1718 else if ((q.Length >= tokenRequiredAssocQualifier.Length) && (0 == String.Compare (q, 0, tokenRequiredAssocQualifier, 0, tokenRequiredAssocQualifier.Length, StringComparison.OrdinalIgnoreCase))) 1720 else if ((q.Length >= tokenSchemaOnly.Length) && (0 == String.Compare (q, 0, tokenSchemaOnly, 0, tokenSchemaOnly.Length, StringComparison.OrdinalIgnoreCase))) 1725 else if ((q.Length >= tokenClassDefsOnly.Length) && (0 == String.Compare (q, 0, tokenClassDefsOnly, 0, tokenClassDefsOnly.Length, StringComparison.OrdinalIgnoreCase))) 1730 else if (0 == q.Length) 1899 if ((p.IsClass || p.IsInstance) && (p.NamespacePath.Length==0)) 2098 if ((sourceObject == null) || (sourceObject.Length==0)) 2105 if (!(RelationshipClass.Length==0) || 2106 !(RelationshipQualifier.Length==0) || 2107 !(ThisRole.Length==0) || 2114 if (!(RelationshipClass.Length==0)) 2118 if (!(ThisRole.Length==0)) 2122 if (!(RelationshipQualifier.Length==0)) 2162 if (0 != String.Compare(q, 0, tokenReferences, 0, tokenReferences.Length, StringComparison.OrdinalIgnoreCase)) 2166 q = q.Remove(0, tokenReferences.Length); 2169 if ((0 == q.Length) || !Char.IsWhiteSpace (q[0])) 2175 if (0 != String.Compare(q, 0, tokenOf, 0, tokenOf.Length, StringComparison.OrdinalIgnoreCase)) 2179 q = q.Remove(0, tokenOf.Length).TrimStart (null); 2196 if (0 < q.Length) 2199 if (0 != String.Compare (q, 0, tokenWhere, 0, tokenWhere.Length, StringComparison.OrdinalIgnoreCase)) 2202 q = q.Remove (0, tokenWhere.Length); 2205 if ((0 == q.Length) || !Char.IsWhiteSpace (q[0])) 2220 if ((q.Length >= tokenResultClass.Length) && (0 == String.Compare (q, 0, tokenResultClass, 0, tokenResultClass.Length, StringComparison.OrdinalIgnoreCase))) 2222 else if ((q.Length >= tokenRole.Length) && (0 == String.Compare (q, 0, tokenRole, 0, tokenRole.Length, StringComparison.OrdinalIgnoreCase))) 2224 else if ((q.Length >= tokenRequiredQualifier.Length) && (0 == String.Compare (q, 0, tokenRequiredQualifier, 0, tokenRequiredQualifier.Length, StringComparison.OrdinalIgnoreCase))) 2226 else if ((q.Length >= tokenClassDefsOnly.Length) && (0 == String.Compare (q, 0, tokenClassDefsOnly, 0, tokenClassDefsOnly.Length, StringComparison.OrdinalIgnoreCase))) 2231 else if ((q.Length >= tokenSchemaOnly.Length) && (0 == String.Compare (q, 0, tokenSchemaOnly, 0, tokenSchemaOnly.Length, StringComparison.OrdinalIgnoreCase))) 2236 else if (0 == q.Length) 2485 if (p.IsClass && (p.NamespacePath.Length==0)) 2957 if ((eventClassName == null) || (eventClassName.Length==0)) 2974 if (!(Condition.Length==0)) 2993 if (!(HavingCondition.Length==0)) 3030 if ((q.Length < keyword.Length) || (0 != String.Compare (q, 0, keyword, 0, keyword.Length, StringComparison.OrdinalIgnoreCase))) 3032 q = q.Remove(0, keyword.Length).TrimStart(null); 3040 if ((q.Length < keyword.Length) || (0 != String.Compare (q, 0, keyword, 0, keyword.Length, StringComparison.OrdinalIgnoreCase))) 3046 if ((q.Length >= keyword.Length) && (0 == String.Compare (q, 0, keyword, 0, keyword.Length, StringComparison.OrdinalIgnoreCase))) 3055 if ((q.Length >= keyword.Length) && ((i = q.ToLower(CultureInfo.InvariantCulture).IndexOf(keyword, StringComparison.Ordinal)) != -1)) //found 3067 if ((q.Length >= keyword.Length) && (0 == String.Compare (q, 0, keyword, 0, keyword.Length, StringComparison.OrdinalIgnoreCase))) 3069 q = q.Remove(0, keyword.Length); 3083 if (tempProp.Length>0) 3106 if ((q.Length >= keyword.Length) && (0 == String.Compare (q, 0, keyword, 0, keyword.Length, StringComparison.OrdinalIgnoreCase))) 3108 q = q.Remove(0, keyword.Length); 3110 if (q.Length == 0) //bad query 3122 if ((w.Length >= keyword.Length) && (0 == String.Compare (w, 0, keyword, 0, keyword.Length, StringComparison.OrdinalIgnoreCase))) //where clause exists 3124 condition = w.Substring(keyword.Length);
managementscope.cs (1)
1128if ((null == nsPath) || (0 == nsPath.Length))
WmiGenerator.cs (19)
204if (filePath.Length == 0) 228if (OriginalNamespace == null || ( OriginalNamespace != null && OriginalNamespace.Length == 0)) 233if (OriginalClassName == null || ( OriginalClassName != null && OriginalClassName.Length == 0)) 557if (OriginalPath.Length != 0) 565if (OriginalServer.Length != 0) 594int Len = OriginalNamespace.Length; 860if(strTemp.Length > 0) 863strTemp = strFirstChar + strTemp.Substring(1,strTemp.Length -1); 879if (NETNamespace.Length == 0) 895if (NETNamespace.Length == 0) 1001if(Comment != null && Comment.Length != 0 ) 1045if(Comment != null && Comment.Length != 0) 1300if (description.Length != 0) 1735if(strArray[i].Length == 0) 1797if(strArray[i].Length == 0) 3769if(Comment != null && Comment.Length != 0) 4838if (str.Length == 0) 4851for(int i=0;i < str.Length;i++) 5125int Len = bitMap.Length;
System.Messaging (30)
System\Messaging\ActiveXMessageFormatter.cs (1)
251int size = ((string)obj).Length * 2;
System\Messaging\Design\SizeConverter.cs (1)
48if (text.Length == 0 || string.Compare(text, Res.GetString(Res.InfiniteValue), true, CultureInfo.CurrentCulture) == 0)
System\Messaging\Design\TimeoutConverter.cs (1)
51if (text.Length == 0 || (string.Compare(text, Res.GetString(Res.InfiniteValue), true, CultureInfo.CurrentCulture) == 0))
System\Messaging\Message.cs (9)
551properties.SetUI4(NativeMethods.MESSAGE_PROPID_PROV_NAME_LEN, value.Length); 795if (value.Length == 0) 1252if (value.Length == 0) 1262properties.SetUI4(NativeMethods.MESSAGE_PROPID_LABEL_LEN, value.Length); 2184properties.SetUI4(NativeMethods.MESSAGE_PROPID_ADMIN_QUEUE_LEN, queueFormatName.Length); 2191properties.SetUI4(NativeMethods.MESSAGE_PROPID_RESP_QUEUE_LEN, queueFormatName.Length); 2198properties.SetUI4(NativeMethods.MESSAGE_PROPID_XACT_STATUS_QUEUE_LEN, queueFormatName.Length); 2421int size = value.Length * 2 + 1; 2424Encoding.Unicode.GetBytes(value.ToCharArray(), 0, value.Length, byteBuffer, 0);
System\Messaging\MessageQueue.cs (15)
618if (this.path == null || path.Length == 0) 651this.formatName = this.path.Substring(PREFIX_FORMAT_NAME.Length); 818if (queuePath.Length == 0) 834if ((this.path == null || this.path.Length == 0) && this.formatName == null) 1042if (value.Length == 0) // used to disassocciate queue from a muliticast address 1130if (queuePath.Length == 0) 1143if ((this.path == null || this.path.Length == 0) && this.formatName == null) 1167if (this.path == null || this.path.Length == 0) 1658if (path.Length == 0) 1730if (path.Length == 0) 3297MessageQueue[] queues = GetPublicQueuesByLabel(path.Substring(PREFIX_LABEL.Length), false); 3301throw new InvalidOperationException(Res.GetString(Res.InvalidLabel, path.Substring(PREFIX_LABEL.Length))); 3306throw new InvalidOperationException(Res.GetString(Res.AmbiguousLabel, path.Substring(PREFIX_LABEL.Length))); 3548if (path == null || path.Length == 0) 3575long length = path.Length - (index + 1);
System\Messaging\MessageQueueEnumerator.cs (3)
213while (machineName != null && (machineName.Length >= currentItem.Length || 214String.Compare(machineName, 0, currentItem, 0, machineName.Length, true, CultureInfo.InvariantCulture) != 0));
System.Net (28)
net\PeerToPeer\Cloud.cs (1)
146if (cloudName == null || cloudName.Length == 0)
net\PeerToPeer\PeerName.cs (21)
133if ((classifier == null || classifier.Length == 0)&& 138if (classifier != null && classifier.Length > PEER_MAX_CLASSIFIER_LENGTH) 145if (classifier != null && classifier.Length > 0) 214if (peerHostName.Length == 0) 270if (!peerName.IsSecured && (classifier == null || classifier.Length == 0)) 274if (classifier != null && classifier.Length > PEER_MAX_CLASSIFIER_LENGTH) 282if (classifier != null && classifier.Length > 0) 449peerName.Length == 0 || 450peerName.Length > PEER_MAX_PEERNAME_LENGTH) return false; 454if (peerName.Length < 3) return false; 466else if (IndexOfPeriod == peerName.Length - 1) 469tempAuthority = peerName.Substring(0, peerName.Length - 1); 480if (tempAuthority.Length != SECURE_AUTHORITY_LENGTH && 481tempAuthority.Length != INSECURE_AUTHORITY_LENGTH) return false; 484if (tempAuthority.Length == INSECURE_AUTHORITY_LENGTH && tempAuthority != PEERNAME_UNSECURED_AUTHORITY) 488if(tempAuthority.Length == SECURE_AUTHORITY_LENGTH) 497if (IndexOfPeriod != peerName.Length - 1 && IndexOfPeriod > 0) 501if (tempClassifier != null && tempClassifier.Length > PEER_MAX_CLASSIFIER_LENGTH) return false; 533else if (indexOfPeriod == peerName.Length - 1) 536authority = peerName.Substring(0, peerName.Length - 1); 543if (indexOfPeriod != peerName.Length - 1 && indexOfPeriod > 0)
net\PeerToPeer\PeerNameRecord.cs (2)
135if(value.Length <= 0) 138if (value.Length > MAX_COMMENT_SIZE)
net\PeerToPeer\PeerNameRegistration.cs (2)
349if (m_PeerNameRecord.Comment != null && m_PeerNameRecord.Comment.Length > 0) 538if (m_PeerNameRecord.Comment != null && m_PeerNameRecord.Comment.Length > 0)
net\PeerToPeer\PeerNameResolver.cs (2)
311if (comment != null && comment.Length > 0) 677if (comment != null && comment.Length > 0)
System.Numerics (5)
System\Numerics\BigNumber.cs (5)
449if (i < format.Length && format[i] >= '0' && format[i] <= '9') { 451while (i < format.Length && format[i] >= '0' && format[i] <= '9') { 457if (i >= format.Length || format[i] == '\0') { 580cchMax = checked(cchMax + info.NegativeSign.Length); 650for (int i = info.NegativeSign.Length - 1; i > -1; i--)
System.Runtime.Caching (5)
System\Caching\FileChangeNotificationSystem.cs (3)
35if(s2.Length != s1.Length) { 38return 0 == string.Compare(s1, 0, s2, 0, s2.Length, StringComparison.OrdinalIgnoreCase);
System\Caching\HostFileChangeMonitor.cs (1)
43capacity += path.Length + (2 * MAX_CHAR_COUNT_OF_LONG_CONVERTED_TO_HEXADECIMAL_STRING);
System\Caching\MemoryCacheEntryChangeMonitor.cs (1)
42capacity += key.Length + MAX_CHAR_COUNT_OF_LONG_CONVERTED_TO_HEXADECIMAL_STRING;
System.Runtime.Remoting (67)
channels\core\corechannel.cs (7)
317if ((key.Length >= 2) && 755if ((appName == null) || (appName.Length == 0)) 759if (uri.Length < (appName.Length + 2)) 763if (String.Compare(appName, 0, uri, 0, appName.Length, StringComparison.OrdinalIgnoreCase) == 0) 767if (uri[appName.Length] == '/') 769uri = uri.Substring(appName.Length + 1);
channels\core\stringhelper.cs (3)
27if (str.Length < 2) 37int prefixLen = asciiPrefix.Length; 38if (str.Length < prefixLen)
channels\http\httpchannelhelper.cs (7)
39int urlLength = url.Length; 42return _http.Length; 46return _https.Length; 100end = uri.Length; 165if ((index + 1) < part.Length) 210colonIndex = channelUri.Length; 318StringBuilder sb = new StringBuilder(uri.Length);
channels\http\httpclientchannel.cs (2)
333if ((_proxyName != null) && (_proxyName.Length > 0) && 469_channelURI = _channelURI.Substring(0, _channelURI.Length - 1);
channels\http\httpremotinghandler.cs (4)
273if (appName != null && appName.Length > 0 && requestUri.Length > appName.Length) 276requestUri = requestUri.Substring(appName.Length + 1);
channels\http\httpsocketmanager.cs (1)
59if (header.Length == 0)
channels\http\httpstreams.cs (1)
415} while (!(trailerHeader.Length == 0));
channels\ipc\ipcchannelhelper.cs (1)
48separator = _ipc.Length;
channels\tcp\tcpchannelhelper.cs (1)
38separator = _tcp.Length;
channels\tcp\tcpsocketmanager.cs (1)
331strLength = str.Length;
metadata\sudscommon.cs (1)
275if (xsdType == null || xsdType.Length == 0)
metadata\wsdlparser.cs (31)
49if (proxyNamespace == null || proxyNamespace.Length == 0) 56int length = outputDir.Length; 769if (location != null && location.Length > 0) 994if (location != null && location.Length > 0) 1323if (use == null || use.Length == 0) 1620if ((suds.extendsTypeName != null) && (suds.extendsTypeName.Length > 0)) 1886if ((methodInfo.methodName.StartsWith("get_", StringComparison.Ordinal) && methodInfo.methodName.Length > 4)) 1888else if ((methodInfo.methodName.StartsWith("set_", StringComparison.Ordinal) && methodInfo.methodName.Length > 4)) 1958if (portTypeOp != null && portTypeOp.parameterOrder != null && portTypeOp.parameterOrder.Length > 0) 1965if (body.namespaceUri != null || body.namespaceUri.Length > 0) 1973if (body.namespaceUri != null || body.namespaceUri.Length > 0) 2217if ((qname == null) || (qname.Length == 0)) 2372for (int i=0; i<value.Length; i++) 2479for (int i=0; i<ident.Length; i++) 2539if (returnstr.Length > 0 && returnstr[0] == '@') 2545if (identifier == null || identifier.Length == 0 || identifier == " ") return identifier; 2554for (int i=0; i<arraybrackets.Length; i++) 2762if (completeFileName.Length > 0) 3271diskFileName = diskFileName.Substring(0, diskFileName.Length - 4); 3443if (methodAttributes != null && methodAttributes.Length > 0) 4072if ((element == null) || element.Length == 0) 5293if (typeName != null && typeName.Length > 0) 5447else if (IsEnum && _enumType != null && _enumType.Length > 0) 6064int newIndentationLength = newIndentation.Length; 6207if (ns.EncodedNS != null && ns.EncodedNS.Length > 0) 6226if (ns.EncodedNS != null && ns.EncodedNS.Length > 0) 6415Char[] outChar = new Char[value.Length]; 6416for (int i=0; i<value.Length; i++) 6552if ((parser.ProxyNamespace != null) && parser.ProxyNamespace.Length > 0) 6926(Namespace.Length != 0)) 6969(Namespace.Length != 0))
metadata\wsdlwriter.cs (7)
149if (!(ns == null || ns.Length == 0)) 557if (_targetNS == null || _targetNS.Length == 0) 778if (url == null || url.Length == 0) 1573if (paramName == null || paramName.Length == 0) 2006if (implIFaces[j].Length > 0) 2038if ((soapAction != null) || (soapAction.Length > 0)) 2495for (int i=0; i<methodName.Length; i++)
System.Runtime.Serialization (226)
System\Runtime\Serialization\Attributes.cs (2)
156if (xsiTypeString != null && xsiTypeString.Length > 0) 163if (factoryTypeString != null && factoryTypeString.Length > 0)
System\Runtime\Serialization\ClassDataContract.cs (2)
348if (ns.Length > 0 && ns != dataContract.Namespace.Value) 906if (memberAttribute.Name == null || memberAttribute.Name.Length == 0)
System\Runtime\Serialization\CodeExporter.cs (11)
115if (ns.Length == 0) 451contractCodeDomInfo.TypeReference = new CodeTypeReference((clrNamespace == null || clrNamespace.Length == 0) ? typeName : clrNamespace + "." + typeName); 1129string expectedName = (nestedTypeIndex <= 0 || nestedTypeIndex == dataContractName.Length - 1) ? dataContractName : dataContractName.Substring(nestedTypeIndex + 1); 1396if (identifier.Length <= MaxIdentifierLength && System.CodeDom.Compiler.CodeGenerator.IsValidLanguageIndependentIdentifier(identifier)) 1401for (int i = 0; i < identifier.Length && builder.Length < MaxIdentifierLength; i++) 1420int availableLength = MaxIdentifierLength - identifier.Length; 1421int requiredLength = appendString.Length; 1448uniqueNamespace = ((clrNamespace.Length == 0) ? Globals.DefaultClrNamespace : clrNamespace) + i.ToString(NumberFormatInfo.InvariantInfo); 1488if (dataContractNamespace == null || dataContractNamespace.Length == 0) 1502AddToNamespace(builder, uriString.Substring(Globals.DataContractXsdBaseNamespace.Length), fragments); 1534for (int i = 0; i < fragment.Length && builder.Length < MaxIdentifierLength; i++)
System\Runtime\Serialization\CollectionDataContract.cs (3)
540if (collectionContractAttribute.ItemName == null || collectionContractAttribute.ItemName.Length == 0) 547if (collectionContractAttribute.KeyName == null || collectionContractAttribute.KeyName.Length == 0) 555if (collectionContractAttribute.ValueName == null || collectionContractAttribute.ValueName.Length == 0)
System\Runtime\Serialization\DataContract.cs (12)
1372if (localName.Length == 0) 1376for (int i = 1; i < localName.Length; i++) 1456if (name == null || name.Length == 0) 1569if (name == null || name.Length == 0) 1652int nsLen = (type.Namespace == null) ? 0 : type.Namespace.Length; 1769if (dataContractNs.Length > 0) 1773if (trimmedNs.Length == 0 || trimmedNs.IndexOf("##", StringComparison.Ordinal) != -1) 1912return uriString.StartsWith(Globals.DataContractXsdBaseNamespace, StringComparison.Ordinal) ? uriString.Substring(Globals.DataContractXsdBaseNamespace.Length) : uriString; 1977for (int i = 0; i < format.Length; i++) 1984for (; i < format.Length; i++) 1987if (i == format.Length) 2098if (methodName.Length == 0)
System\Runtime\Serialization\EnumDataContract.cs (8)
293if (memberAttribute.Value == null || memberAttribute.Value.Length == 0) 389for (; i < stringValue.Length; i++) 396for (; i < stringValue.Length; i++) 403for (++i; i < stringValue.Length; i++) 407if (i == stringValue.Length) 417if (stringValue.Length == 0) 419longValue = ReadEnumValue(stringValue, 0, stringValue.Length); 432if (memberName.Length == count && String.CompareOrdinal(value, index, memberName, 0, count) == 0)
System\Runtime\Serialization\ExtensionDataReader.cs (1)
802prefix = (ns == null || ns.Length == 0) ? String.Empty : "p" + nsToPrefixTable.Count;
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (1)
326for (int i = 0; i < jsonName.Length; i++)
System\Runtime\Serialization\Json\JsonGlobals.cs (1)
16public static readonly int DataContractXsdBaseNamespaceLength = Globals.DataContractXsdBaseNamespace.Length;
System\Runtime\Serialization\Json\JsonReaderDelegator.cs (3)
196string ticksvalue = dateTimeValue.Substring(6, dateTimeValue.Length - 8); 309if (value == null || value.Length == 0) 347if (value == null || value.Length == 0)
System\Runtime\Serialization\Json\JsonWriterDelegator.cs (1)
283if (localName != null && localName.Length == 0)
System\Runtime\Serialization\Json\XmlJsonReader.cs (5)
793actual = Math.Min(count, value.Length); 1642for (int i = 0; i < val.Length; i++) 1652Fx.Assert(i < val.Length, "Found that an '\' was the last character in a string. ReadServerTypeAttriute validates that the escape sequence is valid when it calls ReadQuotedText and ReadEscapedCharacter"); 1653if (i >= val.Length) 1681if ((i + 3) >= val.Length)
System\Runtime\Serialization\Json\XmlJsonWriter.cs (5)
804if (localName.Length == 0) 900if (localName.Length == 0) 995if (localName.Length == 0) 1243for (int i = 0; i < ws.Length; ++i) 1504for (j = 0; j < str.Length; j++)
System\Runtime\Serialization\Json\XmlObjectSerializerReadContextComplexJson.cs (1)
164if (serverTypeNamespace.Length >= 2)
System\Runtime\Serialization\PrimitiveDataContract.cs (1)
860else if (ns != null && ns.Value != null && ns.Value.Length > 0)
System\Runtime\Serialization\SchemaExporter.cs (5)
281int nsLen = (clrType.Namespace == null) ? 0 : clrType.Namespace.Length; 604if (stableName.Name == null || stableName.Name.Length == 0) 626if (methodName == null || methodName.Length == 0) 662if (typeName == null || typeName.Length == 0) 708if (schema.Id == null || schema.Id.Length == 0)
System\Runtime\Serialization\SchemaHelper.cs (5)
35if (ns1 == null || ns1.Length == 0) 36return (ns2 == null || ns2.Length == 0); 134if ((schema.TargetNamespace == null && ns.Length == 0) || ns.Equals(schema.TargetNamespace)) 147if (ns.Length > 0) 181if (ns != null && ns.Length > 0)
System\Runtime\Serialization\SchemaImporter.cs (1)
113if (typeName != null && typeName.Name.Length > 0)
System\Runtime\Serialization\XmlDataContract.cs (2)
228topLevelElementName = (elementName == null || elementName.Length == 0) ? Name : dictionary.Add(DataContract.EncodeLocalName(elementName)); 230topLevelElementNamespace = (elementNs == null || elementNs.Length == 0) ? DictionaryGlobals.EmptyString : dictionary.Add(elementNs);
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (1)
755return type == Globals.TypeOfXmlQualifiedName && (ns != null && ns.Value != null && ns.Value.Length > 0);
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (4)
572if (xmlReader.NamespaceURI.Length != 0) 880if (xmlReader.NamespaceURI.Length != 0) 971couldBeISerializableData = (ns.Length == 0); 1066XmlAttribute attribute = (prefix == null || prefix.Length == 0) ?
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (1)
352if (ns != null && ns.Value != null && ns.Value.Length > 0)
System\Runtime\Serialization\XmlObjectSerializerWriteContextComplex.cs (1)
227if (ns != null && ns.Value != null && ns.Value.Length > 0)
System\Runtime\Serialization\XmlReaderDelegator.cs (4)
497if (str.Length == 0) 660if (str == null || str.Length == 0) 670if (str == null || str.Length == 0) 813if (str == null || str.Length == 0)
System\Runtime\Serialization\XmlWriterDelegator.cs (1)
85if (ns.Length == 0)
System\Runtime\Serialization\XPathQueryGenerator.cs (1)
141if (prefix == null || prefix.Length == 0)
System\Xml\UniqueID.cs (3)
83if (value.Length == 0) 87UnsafeParse(pch, value.Length); 128return s.Length;
System\Xml\ValueHandle.cs (2)
163return constStrings[offset].Length == 0; 548if (this.length != str.Length)
System\Xml\XmlBaseReader.cs (4)
1252actual = Math.Min(count, value.Length); 1650if (value.Length > quotas.MaxStringContentLength) 3096int length = s.Length; 3296Add(value.Length);
System\Xml\XmlBaseWriter.cs (43)
211if (localName == null || (localName.Length == 0 && prefix != "xmlns")) 228if (prefix.Length == 0 && localName == "xmlns") 255if (prefix.Length == 0) 268else if (ns.Length == 0) 271if (prefix.Length != 0) 274else if (prefix.Length == 0) 283if (ns.Length == xmlnsNamespace.Length && ns == xmlnsNamespace) 285if (ns.Length == xmlNamespace.Length && ns == xmlNamespace) 387else if (text.IndexOf("--", StringComparison.Ordinal) != -1 || (text.Length > 0 && text[text.Length - 1] == '-')) 424if (text.Length > 0) 447if (localName.Length == 0) 607for (int i = 0; i < s.Length; i++) 680if (localName.Length == 0) 685if (prefix.Length != 0) 699if (localName.Value.Length == 0) 820for (int i = 0; i < whitespace.Length; ++i) 841if (value.Length > 0 || this.inList) 865if (value.Value.Length > 0) 922if (value.Length > 0) 1802if (attributeValue.Length == 0) 2047if (uri.Length == 0) 2088if (prefix.Length >= 3) 2113if (prefix.Length != 0 && uri.Length == 0) 2115if (uri.Length == xmlnsNamespace.Length && uri == xmlnsNamespace) 2118if (uri.Length == xmlNamespace.Length && uri[18] == 'X' && uri == xmlNamespace) 2193if (ns.Length == 0) 2199if (namespaces[i].Prefix.Length == 0) 2218if (lastNameSpace != null && lastNameSpace.Uri == ns && lastNameSpace.Prefix.Length != 0) 2229if (prefix.Length != 0) 2255if (prefix.Length != 0) 2275if (ns.Length == 0) 2283if (prefix.Length == 0) 2288if (nameSpace.Prefix.Length == 0) 2293if (prefix.Length == 1) 2320Fx.Assert(nsCount >= 1 && namespaces[0].Prefix.Length == 0 && namespaces[0].Uri.Length == 0, ""); 2439if (value.Length == 1)
System\Xml\XmlBinaryReader.cs (1)
126if (value.Length > Quotas.MaxStringContentLength)
System\Xml\XmlBinaryWriter.cs (16)
146if (prefix.Length == 0) 155if (prefix.Length == 1 && ch >= 'a' && ch <= 'z') 186if (prefix.Length == 0) 195if (prefix.Length == 1 && ch >= 'a' && ch <= 'z') 241if (prefix.Length == 0) 249if (prefix.Length == 1 && ch >= 'a' && ch <= 'z') 277if (prefix.Length == 0) 285if (prefix.Length == 1 && ch >= 'a' && ch <= 'z') 314if (prefix.Length == 0) 336if (prefix.Length == 0) 387int length = s.Length; 627if (value.Length > 0) 631UnsafeWriteText(pch, value.Length); 946if (prefix.Length == 0) 954if (prefix.Length == 1 && (ch >= 'a' && ch <= 'z') && TryGetKey(localName, out key)) 1008if (captureText == null || captureText.Length == 0)
System\Xml\XmlBufferReader.cs (2)
875for (int i = 0; i < s.Length; i++) 972int charLength = s2.Length;
System\Xml\XmlC14NWriter.cs (8)
269if (this.inclusivePrefixes[i].Length == xmlnsAttribute.prefixLength) 379if (prefix.Length > int.MaxValue - ns.Length) 381int totalLength = prefix.Length + ns.Length; 387xmlnsAttribute.prefixLength = Encoding.UTF8.GetBytes(prefix, 0, prefix.Length, xmlnsBuffer, xmlnsOffset); 390xmlnsAttribute.nsLength = Encoding.UTF8.GetBytes(ns, 0, ns.Length, xmlnsBuffer, xmlnsOffset); 645if (value.Length > 0)
System\Xml\XmlConverter.cs (11)
487if (index == qname.Length - 1) 1031for (int i = 0; i < s.Length; i++) 1036return s.Length; 1126for (int i = 0; i < s.Length; i++) 1141int count = s.Length; 1142for (int i = 0; i < s.Length; i++) 1149if (count == s.Length) 1153for (int i = 0; i < s.Length; i++) 1167for (i = 0; i < s.Length && IsWhitespace(s[i]); i++); 1170for (j = s.Length; j > 0 && IsWhitespace(s[j - 1]); j--); 1172if (i == 0 && j == s.Length)
System\Xml\XmlDictionaryReader.cs (6)
433if (result.Length == 0) 441if (sb.Length > maxStringContentLength - value.Length) 473if (result.Length > maxStringContentLength) 503if (result.Length == 0) 511if (sb.Length > maxStringContentLength - value.Length) 520if (result.Length > maxStringContentLength)
System\Xml\XmlDictionaryString.cs (1)
108if (value.Length == 0)
System\Xml\XmlDictionaryWriter.cs (3)
149prefix = namespaceUri.Length == 0 ? string.Empty : string.Concat("d", namespaceUri.Length.ToString(System.Globalization.NumberFormatInfo.InvariantInfo)); 1380if (namespaceUri.Length == 0)
System\Xml\XmlExceptionHelper.cs (2)
58if (prefix.Length == 0) 214if (localName.Length == 0)
System\Xml\XmlMtomReader.cs (25)
70if (contentType != null && contentType.Length == 0) 181|| charset == null || charset.Length == 0) 235|| rootType == null || rootType.Length == 0) 355if (uri == null || uri.Length == 0) 360contentID = String.Format(CultureInfo.InvariantCulture, "<{0}>", Uri.UnescapeDataString(uri.Substring(MimeGlobals.ContentIDScheme.Length))); 1325count = Math.Min(stringValue.Length - stringOffset, count); 1398if (val.Length > stringContentQuota) 1400stringContentQuota -= val.Length; 2260remaining += value.Length * sizeof(char); 2263remaining += name.Length * sizeof(char); 2282remaining += header.Value.Length * sizeof(char); 2376if (offset >= Value.Length || Value[offset++] != '/') 2382if (offset >= Value.Length || Value[offset++] != ';') 2389if (paramAttribute == null || offset >= Value.Length || Value[offset++] != '=') 2419if (paramAttribute == null || startInfoOffset >= startInfo.Length || startInfo[startInfoOffset++] != '=') 2488this.contentTransferEncodingValue = (Value.Length == 0) ? Value : ((Value[0] == '"') ? MailBnfHelper.ReadQuotedString(Value, ref offset, null) : MailBnfHelper.ReadToken(Value, ref offset, null)); 2554if ((!MailBnfHelper.SkipCFWS(Value, ref offset) || offset >= Value.Length || Value[offset++] != '.') || !MailBnfHelper.SkipCFWS(Value, ref offset)) 2775XmlMtomReader.DecrementBufferQuota(maxBuffer, ref remaining, value.Length * sizeof(char)); 2784XmlMtomReader.DecrementBufferQuota(maxBuffer, ref remaining, value.Length * sizeof(char)); 3052for (; offset < data.Length; offset++) 3073for (; offset < data.Length; offset++) 3108if (offset < data.Length && data[offset] == '"') 3117for (; offset < data.Length; offset++) 3135for (; offset < data.Length && data[offset] < s_digits.Length && s_digits[data[offset]]; offset++); 3142int length = (data == null) ? 0 : data.Length;
System\Xml\XmlMtomWriter.cs (7)
158if (startUri != null && startUri.Length > 0) 161if (startInfo != null && startInfo.Length > 0) 1004size += XmlMtomWriter.ValidateSizeOfMessage(maxSizeInBytes, size, name.Length); 1005size += XmlMtomWriter.ValidateSizeOfMessage(maxSizeInBytes, size, value.Length); 1011byte[] boundaryBytes = new byte[boundary.Length + MimeGlobals.BoundaryPrefix.Length]; 1014Encoding.ASCII.GetBytes(boundary, 0, boundary.Length, boundaryBytes, MimeGlobals.BoundaryPrefix.Length); 1211Write(value, 0, value.Length);
System\Xml\XmlSigningNodeWriter.cs (1)
380if (prefix.Length != 0)
System\Xml\XmlStreamNodeWriter.cs (1)
553int count = value.Length;
System\Xml\XmlUTF8TextWriter.cs (7)
238if (prefix.Length != 0) 277if (prefix.Length != 0) 315if (prefix.Length != 0) 346if (prefix.Length != 0) 382if (prefix.Length == 1) 424int count = s.Length; 1257if (prefix.Length != 0)
System.Security (27)
system\security\cryptography\bigint.cs (1)
453int length = decNum.Length;
system\security\cryptography\pkcs\pkcs9attribute.cs (1)
42if (szOid.Length == 0)
system\security\cryptography\pkcs\pkcsutils.cs (5)
436byte[] octets = new byte[2 * (octetString.Length + 1)]; 437Encoding.Unicode.GetBytes(octetString, 0, octetString.Length, octets, 0); 635totalLength += AlignedLength((uint) (attribute.Oid.Value.Length + 1)); // strlen(pszObjId) + 1 654byte[] objId = new byte[attribute.Oid.Value.Length + 1]; 667Encoding.ASCII.GetBytes(attribute.Oid.Value, 0, attribute.Oid.Value.Length, objId, 0);
system\security\cryptography\x509\x509utils.cs (5)
103uint cbHex = (uint) hexString.Length / 2; 128byte[] arr = new byte[s.Length + 1]; 129Encoding.ASCII.GetBytes(s, 0, s.Length, arr, 0); 262oidSize += (oid.Value.Length + 1); 270pOid = new IntPtr((long) pOid + oids[index].Value.Length + 1);
system\security\cryptography\xml\encryptedxml.cs (1)
222if (cipherData.CipherReference.Uri.Length == 0) {
system\security\cryptography\xml\exccanonicalxml.cs (1)
158if (prefix.Length > 0)
system\security\cryptography\xml\keyinfo.cs (2)
468if (issuerName == null || issuerName.Length == 0) 470if (serialNumber == null || serialNumber.Length == 0)
system\security\cryptography\xml\reference.cs (1)
351} else if (m_uri.Length == 0) {
system\security\cryptography\xml\signedxml.cs (3)
792if (reference.Uri == null || reference.Uri.Length == 0 || (reference.Uri.Length > 0 && reference.Uri[0] != '#')) { 796if (reference.Uri.Length > 0 && reference.Uri[0] == '#') {
system\security\cryptography\xml\transform.cs (3)
339(reference.Uri == null || reference.Uri.Length == 0 || reference.Uri[0] != '#'))) { 738if (prefix != null && prefix.Length > 0) 1178if (uri == null || uri.Length == 0 || uri[0] != '#')
system\security\cryptography\xml\utils.cs (4)
55string name = ((prefix.Length > 0) ? "xmlns:" + prefix : "xmlns"); 127return DiscardWhiteSpaces(inputBuffer, 0, inputBuffer.Length); 146int newStringLength = newString.Length; 685} else if (prefix.Length > 0) {
System.ServiceModel (383)
parent\parent\parent\parent\parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (3)
81if (frameworkName == null || frameworkName.Length == 0) 100if (identifier.Length == 0) 133if (value.Length > 0 && (value[0] == c_versionValuePrefix || value[0] == 'V'))
System\ServiceModel\Channels\AddressHeader.cs (3)
81if (hdr1.Length != hdr2.Length) 261if ((null == name) || (name.Length == 0))
System\ServiceModel\Channels\Addressing.cs (9)
95if (act.Length > 0 && (act[0] <= 32 || act[act.Length - 1] <= 32)) 106if (actor.Length == 0 && mustUnderstand == mustUnderstandValue && !relay) 208if (actor.Length == 0 && mustUnderstand == mustUnderstandValue && !relay) 300if (actor.Length == 0 && mustUnderstand == mustUnderstandValue && !relay) 467if (actor.Length == 0 && mustUnderstand == mustUnderstandValue && !relay) 614if (actor.Length == 0 && mustUnderstand == mustUnderstandValue && !relay) 719if (actor.Length == 0 && mustUnderstand == mustUnderstandValue && !relay) 852if (actor.Length == 0 && mustUnderstand == mustUnderstandValue && !relay && (object)relationship == (object)ReplyRelationshipType)
System\ServiceModel\Channels\AuthenticationSchemesHelper.cs (1)
15if ((authType == null) || (authType.Length == 0))
System\ServiceModel\Channels\BaseUriWithWildcard.cs (10)
112for (int i = 0; i < binding.Length; i++) 150if (startIndex < binding.Length) 152tokens[i] = binding.Substring(startIndex, binding.Length - startIndex); 260if (s1.Length > s2.Length) 265if (s1.Length < s2.Length && 266s1[s1.Length - 1] != segmentDelimiter && 267s2[s1.Length] != segmentDelimiter) 272return string.Compare(s2, 0, s1, 0, s1.Length, StringComparison.OrdinalIgnoreCase) == 0;
System\ServiceModel\Channels\BinaryMessageEncoder.cs (1)
520offset += Encoding.UTF8.GetBytes(newString, 0, newString.Length, buffer, offset);
System\ServiceModel\Channels\Binding.cs (2)
40if (ns.Length > 0) 97if (value.Length > 0)
System\ServiceModel\Channels\ContentOnlyMessage.cs (1)
92if (data != null && data.Length > 0)
System\ServiceModel\Channels\ContextDictionary.cs (1)
203for (int counter = 0; counter < key.Length; ++counter)
System\ServiceModel\Channels\ContextProtocol.cs (4)
117if (equalsSignIndex < (trimmedToken.Length - 1)) 121if (value.Length > 1 && (value[0] == '"') && (value[value.Length - 1] == '"')) 123value = value.Substring(1, value.Length - 2);
System\ServiceModel\Channels\CorrelationKey.cs (5)
106if (provider.Length == 0) 129checksum.Append(sortedKeyData.Keys[i].Length.ToString(NumberFormatInfo.InvariantInfo)); 131checksum.Append(sortedKeyData.Values[i].Length.ToString(NumberFormatInfo.InvariantInfo)); 144checksum.Append(scopeName.Length.ToString(NumberFormatInfo.InvariantInfo)); 146checksum.Append(provider.Length.ToString(NumberFormatInfo.InvariantInfo));
System\ServiceModel\Channels\FramingEncoders.cs (1)
61Encoding.UTF8.GetBytes(value, 0, value.Length, encodedBytes, offset);
System\ServiceModel\Channels\HttpChannelHelpers.cs (10)
327if (action.Length >= 2 && action[0] == '"' && action[action.Length - 1] == '"') 329action = action.Substring(1, action.Length - 2); 340if (action.Length > 0 && string.Compare(message.Headers.Action, action, StringComparison.Ordinal) != 0) 604if (statusDescription != null && statusDescription.Length > 0) 2563if (value.Length > 0 && string.Compare(value, action, StringComparison.Ordinal) != 0) 3560if (response.ContentLength == httpSysRequestQueueNotFound.Length) 3564else if (response.ContentLength == httpSysRequestQueueNotFoundVista.Length) 3572byte[] responseBytes = new byte[notFoundTestString.Length]; 3577if (bytesRead == notFoundTestString.Length
System\ServiceModel\Channels\HttpHeadersWebHeaderCollection.cs (3)
290if (name == null || name.Length == 0) 313for (int i = 0; i < name.Length; ++i) 383for (int i = 0; i < token.Length; ++i)
System\ServiceModel\Channels\HttpRequestContext.cs (2)
471if (statusDescription.Length > 0) 964if (this.listenerHttpContext.listenerContext.Request.Url.Query.Length > 1)
System\ServiceModel\Channels\HttpRequestMessageProperty.cs (1)
303return query.Length > 0 ? query.Substring(1) : string.Empty;
System\ServiceModel\Channels\HttpTransportManager.cs (3)
155if (requestMethod.Length > 0) 170if (methodListener != null && methodListener.Uri.AbsoluteUri.Length >= listener.Uri.AbsoluteUri.Length)
System\ServiceModel\Channels\Message.cs (5)
777if (!((prefixString.Length == 1))) 1879if (value.Length == 0) 1897int byteCount = s.Length * sizeof(char); 2120if (key.Length > MaxKeyLength) 2130if (key.Length > MaxKeyLength)
System\ServiceModel\Channels\MessageEncoder.cs (14)
131if (contentType.Length > supportedContentType.Length && 133contentType[supportedContentType.Length] == ';') 139if (contentType.Length == supportedContentType.Length) 143else if (contentType.Length > supportedContentType.Length) 145char ch = contentType[supportedContentType.Length]; 155int i = supportedContentType.Length; 156if (ch == '\r' && contentType.Length > supportedContentType.Length + 1 && contentType[i + 1] == '\n') 166while (i < contentType.Length) 174if (ch == ';' || i == contentType.Length) 185if (supportedMediaType.Length > 0 && !supportedMediaType.Equals(parsedContentType.MediaType, StringComparison.OrdinalIgnoreCase))
System\ServiceModel\Channels\MessageFault.cs (4)
316if (Node.Length > 0) 318if (Actor.Length > 0) 389if (translation.XmlLang.Length > 0) 393if (Actor.Length > 0)
System\ServiceModel\Channels\MessageHeader.cs (4)
136if (actor.Length > 0) 244if (value.Length == 1) 356if (name.Length == 0) 365if (ns.Length > 0)
System\ServiceModel\Channels\MessageHeaders.cs (1)
890if (name.Length > 0)
System\ServiceModel\Channels\MsmqBindingFilter.cs (5)
19if (this.prefix.Length > 0 && this.prefix[0] == '/') 23if (this.prefix.Length > 0 && this.prefix[this.prefix.Length - 1] != '/') 36if (string.Compare(CanonicalPrefix, 0, name, 0, CanonicalPrefix.Length, StringComparison.OrdinalIgnoreCase) == 0) 38return CanonicalPrefix.Length;
System\ServiceModel\Channels\MsmqBindingMonitor.cs (1)
296return name.Substring("private$\\".Length);
System\ServiceModel\Channels\MsmqOutputMessage.cs (1)
179if (value.Length > 0)
System\ServiceModel\Channels\MsmqSubqueueLockingQueue.cs (4)
65return MsmqSubqueueLockingQueue.LockSubqueuePrefix + lockGuid.Substring(lockGuid.Length - 8, 8); 432string formatNameWithProtocol = formatName.Substring(directFormatNamePrefix.Length, 433formatName.Length - directFormatNamePrefix.Length);
System\ServiceModel\Channels\MsmqUri.cs (5)
105if (privatePart.Length == relativePath.Length) 111else if ('/' == relativePath[privatePart.Length]) 115relativePath = relativePath.Substring(privatePart.Length); 334return Uri.UnescapeDataString(uri.AbsoluteUri.Substring(this.Scheme.Length + 1));
System\ServiceModel\Channels\MtomMessageEncoder.cs (1)
211if (charSet == null || charSet.Length == 0)
System\ServiceModel\Channels\NativeMsmqMessage.cs (4)
424: this(message, id, value.Length + 1) 488EnsureValueLength(value.Length + 1); 494value.CopyTo(0, this.buffer, 0, value.Length); 495this.buffer[value.Length] = '\0';
System\ServiceModel\Channels\PipeConnection.cs (5)
1706while (path.Length > 0) 1725if (path.Length > matchPath.Length) 2870path = path.Substring(0, path.Length - 1); 2871if (path.Length == 0)
System\ServiceModel\Channels\RedirectionDuration.cs (1)
112else if (duration.Length == 0)
System\ServiceModel\Channels\RedirectionException.cs (1)
50else if (message.Length == 0)
System\ServiceModel\Channels\RedirectionScope.cs (1)
118else if (scope.Length == 0)
System\ServiceModel\Channels\RedirectionType.cs (1)
120else if (type.Length == 0)
System\ServiceModel\Channels\TextMessageEncoder.cs (5)
140if ((contentType.Length > semiColonIndex + 11) // need room for parameter + charset + '=' 199if (charSet.Length > 2 && charSet[0] == '"' && charSet[charSet.Length - 1] == '"') 201charSet = charSet.Substring(1, charSet.Length - 2); 233if (charSet == null || charSet.Length == 0)
System\ServiceModel\Channels\TransportChannelListener.cs (3)
131if (relativeAddress.Length > 0 && !relativeAddress.EndsWith("/", StringComparison.Ordinal)) 341if (baseUri.AbsolutePath.Length < fullUri.AbsolutePath.Length)
System\ServiceModel\Channels\UriGenerator.cs (1)
30if (scheme.Length == 0)
System\ServiceModel\Channels\UriPrefixTable.cs (6)
329if (null != userInfo && userInfo.Length > 0) 346if (0 == absPath.Length) 372while (this.segmentStartAt < this.segment.Length && this.segment[this.segmentStartAt] == '/') 377if (this.segmentStartAt < this.segment.Length) 382this.segmentLength = this.segment.Length - this.segmentStartAt; 398this.segmentLength = segment.Length;
System\ServiceModel\Channels\WindowsStreamSecurityUpgradeProvider.cs (1)
399if ((principalName != null) && (principalName.Length > 0))
System\ServiceModel\ComIntegration\MonikerUtility.cs (7)
54for (; index < moniker.Length; index++) 60if ((index < (moniker.Length - 1)) && (moniker[index + 1] == quoteToCompare)) 74if (index < moniker.Length) 77if (index < moniker.Length) 107for (; (index < moniker.Length) && (moniker[index] != ','); index++) 109if (index < moniker.Length) 112if (index < moniker.Length)
System\ServiceModel\ComIntegration\SafeNativeMethods.cs (1)
770int status = SafeNativeMethods.RegSetValueEx(this, valName, 0, SafeNativeMethods.REG_SZ, value, (value.Length * 2) + 2);
System\ServiceModel\ComIntegration\ServiceMoniker.cs (1)
177System.Runtime.InteropServices.Marshal.WriteInt32(pchEaten, pszDisplayName.Length);
System\ServiceModel\Configuration\IssuedTokenParametersElement.cs (1)
304writer.WriteComment(commentString.Substring(1, commentString.Length - 1));
System\ServiceModel\Configuration\ServiceActivationElement.cs (1)
31if (string.IsNullOrEmpty(relativeAddress) || string.IsNullOrEmpty(relativeAddress.Trim()) || relativeAddress.Length < 3)
System\ServiceModel\Configuration\XPathMessageFilterElementComparer.cs (1)
55xPathString = xPathString.Replace(nsPrefix, ns, currentTokenStart, nsPrefix.Length);
System\ServiceModel\Description\ClientClassGenerator.cs (2)
936if (interfaceName.Length >= 2 && 937String.Compare(interfaceName, 0, Strings.InterfaceTypePrefix, 0, Strings.InterfaceTypePrefix.Length, StringComparison.Ordinal) == 0 &&
System\ServiceModel\Description\ConfigLoader.cs (3)
167if (serviceEndpoint.Address == null && channelElement.Address != null && channelElement.Address.OriginalString.Length > 0) 393if (colonIndex != -1 && rawAddress.Length >= colonIndex + 4) 758if (endpoint.Address == null && channelEndpointElementCopy.Address != null && channelEndpointElementCopy.Address.OriginalString.Length > 0)
System\ServiceModel\Description\ContractDescription.cs (1)
79if (value.Length == 0)
System\ServiceModel\Description\DispatcherBuilder.cs (1)
573listenUriRelativeAddress = thisAddressString.Substring(baseAddressString.Length);
System\ServiceModel\Description\MessageContractExporter.cs (1)
331if (ns != null && ns.Length > 0)
System\ServiceModel\Description\MetadataExchangeClient.cs (1)
1324if (charset != null && charset.Length > 0)
System\ServiceModel\Description\OperationDescription.cs (1)
42if (name.Length == 0)
System\ServiceModel\Description\SchemaHelper.cs (5)
52if (ns != null && ns.Length > 0) 80if ((existingSchema.TargetNamespace == null && ns.Length == 0) || ns.Equals(existingSchema.TargetNamespace)) 86if (ns.Length > 0) 122if (ns1 == null || ns1.Length == 0) 123return (ns2 == null || ns2.Length == 0);
System\ServiceModel\Description\ServiceMetadataExtension.cs (9)
992int start = (q.Length > 0 && q[0] == '?') ? 1 : 0; 993if (String.Compare(q, start, WsdlQueryString, 0, WsdlQueryString.Length, StringComparison.OrdinalIgnoreCase) == 0) 995else if (String.Compare(q, start, XsdQueryString, 0, XsdQueryString.Length, StringComparison.OrdinalIgnoreCase) == 0) 997else if (String.Compare(q, start, SingleWsdlQueryString, 0, SingleWsdlQueryString.Length, StringComparison.OrdinalIgnoreCase) == 0) 999else if (String.Compare(q, start, HealthQueryString, 0, HealthQueryString.Length, StringComparison.OrdinalIgnoreCase) == 0) 1001else if (parent.HelpPageEnabled && (String.Compare(q, start, DiscoQueryString, 0, DiscoQueryString.Length, StringComparison.OrdinalIgnoreCase) == 0)) 1011if (queryString.Length > maxQueryStringChars) 1017string[] queries = queryString.Length > 0 ? queryString.Split('&') : NoQueries; 1413while (ci.Name.Length > 0)
System\ServiceModel\Description\ServiceReflector.cs (4)
190for (int i = 1; i < localName.Length; i++) 978return method.Name.Substring(BeginMethodNamePrefix.Length); 982return method.Name.Substring(0, method.Name.Length - AsyncMethodNameSuffix.Length);
System\ServiceModel\Description\UniqueCodeIdentifierScope.cs (2)
93if (identifier.Length <= MaxIdentifierLength && System.CodeDom.Compiler.CodeGenerator.IsValidLanguageIndependentIdentifier(identifier)) 97for (int i = 0; i < identifier.Length && builder.Length < MaxIdentifierLength; i++)
System\ServiceModel\Description\WsdlHelper.cs (2)
166policyId.Value = policyIdStringWithNewBindingName + policyIdString.Substring(policyIdStringWithOldBindingName.Length); 204policyReference.Value = policyReferenceValueWithNewBindingName + policyReference.Value.Substring(policyReferenceValueWithOldBindingName.Length);
System\ServiceModel\Diagnostics\EndpointPerformanceCountersBase.cs (9)
88int length = service.Length + contract.Length + uri.Length + 2; 95length, service.Length, contract.Length, uri.Length); 101service = GetHashedString(service, count - hashLength, service.Length - count + hashLength, true); 108contract = GetHashedString(contract, count - hashLength, contract.Length - count + hashLength, true); 115uri = GetHashedString(uri, 0, uri.Length - count + hashLength, false);
System\ServiceModel\Diagnostics\OperationPerformanceCountersBase.cs (12)
84int length = service.Length + contract.Length + operation.Length + uri.Length + 3; 91length, service.Length, contract.Length, operation.Length, uri.Length); 97service = GetHashedString(service, count - hashLength, service.Length - count + hashLength, true); 104contract = GetHashedString(contract, count - hashLength, contract.Length - count + hashLength, true); 111operation = GetHashedString(operation, count - hashLength, operation.Length - count + hashLength, true); 118uri = GetHashedString(uri, 0, uri.Length - count + hashLength, false);
System\ServiceModel\Diagnostics\ServicePerformanceCountersBase.cs (6)
171int length = serviceName.Length + uri.Length + 2; 178length, serviceName.Length, uri.Length); 184serviceName = GetHashedString(serviceName, count - hashLength, serviceName.Length - count + hashLength, true); 191uri = GetHashedString(uri, 0, uri.Length - count + hashLength, false);
System\ServiceModel\Dispatcher\AsyncMethodInvoker.cs (3)
102StartOperationInvokePerformanceCounters(this.beginMethod.Name.Substring(ServiceReflector.BeginMethodNamePrefix.Length)); 165StopOperationInvokePerformanceCounters(callFailed, callFaulted, endMethod.Name.Substring(ServiceReflector.EndMethodNamePrefix.Length)); 243StopOperationInvokePerformanceCounters(callFailed, callFaulted, this.endMethod.Name.Substring(ServiceReflector.EndMethodNamePrefix.Length));
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (1)
509string prefix = (this.Namespace == null || this.Namespace.Length == 0) ? string.Empty : "h";
System\ServiceModel\Dispatcher\EndpointAddressProcessor.cs (3)
92val = local + "^" + local.Length.ToString(CultureInfo.InvariantCulture) + ":" + ns + "^" + ns.Length.ToString(CultureInfo.InvariantCulture); 163builder.Append(s.Length.ToString(CultureInfo.InvariantCulture));
System\ServiceModel\Dispatcher\MatchSingleFxEngineOpcode.cs (1)
132retVal = (null != strVal && strVal.Length > 0); // see XPath 1.0
System\ServiceModel\Dispatcher\OperationFormatter.cs (1)
844writer.WriteStartElement((this.Namespace == null || this.Namespace.Length == 0) ? string.Empty : "h", this.Name, this.Namespace);
System\ServiceModel\Dispatcher\QueryFunctions.cs (13)
800if (lang.Length == docLang.Length && string.CompareOrdinal(lang, docLang) == 0) 804else if (docLang.Length > 0 && lang.Length < docLang.Length && docLang.StartsWith(lang, StringComparison.Ordinal) && docLang[lang.Length] == '-') 1083context.SetValue(context, arg.basePtr, context.PeekString(arg.basePtr).Length); 1141context.SetValue(context, arg2.basePtr, idx == -1 ? string.Empty : str1.Substring(idx + str2.Length)); 1162context.SetValue(context, arg2.basePtr, (startAt >= str.Length) ? string.Empty : str.Substring(startAt)); 1189if (length < 1 || ((startAt + length) >= str.Length)) 1222for (int i = 0; i < source.Length; ++i) 1230else if (idx < values.Length) 1257for (int i = 0; i < str.Length; ++i)
System\ServiceModel\Dispatcher\QueryMatcher.cs (4)
352if (prefix.Length > 0 && namespaces.LookupNamespace(prefix) == null) 406if (0 == xpath.Length) 733if (0 == xpath.Length) 741else if (1 == xpath.Length && '/' == xpath[0])
System\ServiceModel\Dispatcher\QueryModel.cs (14)
188return (this.name.Length == 0 && this.ns.Length == 0); 196return (this.name.Length > 0); 212return (this.ns.Length > 0); 281return ((qname.name.Length == this.name.Length && qname.name == this.name) && (qname.ns.Length == this.ns.Length && qname.ns == this.ns)); 542return (val.Length > 0); 572if (val.Length > 0 && val[0] != '+') 788return (x.Length != y.Length || 0 != string.CompareOrdinal(x, y)); 877return (x.Length == y.Length && x == y);
System\ServiceModel\Dispatcher\QueryPrefixOp.cs (12)
181int charCount = (length <= this.segmentTail.Length) ? length : this.segmentTail.Length; 190if (length < this.segmentTail.Length) 221if (tailLength >= child.segmentTail.Length && (0 == child.segmentTail.Length || 0 == string.CompareOrdinal(matchString, tailOffset, child.segmentTail, 0, child.segmentTail.Length))) 333this.segmentLength = firstChar == char.MinValue ? 0 : 1 + segmentTail.Length; 361Fx.Assert(this.segmentTail.Length > 0, ""); 365this.SetSegmentString(this.segmentTail, charIndex, this.segmentTail.Length - charIndex); 409this.length = prefix.Length; 581if (newPrefix.Length <= 0) 638if (0 == prefix.Length)
System\ServiceModel\Dispatcher\QuerySelectOp.cs (5)
134return (0 == node.NamespaceURI.Length && this.qname.EqualsName(node.LocalName)); 138if (this.qname.name.Length == str.Length && this.qname.name == str) 141return (this.qname.ns.Length == str.Length && this.qname.ns == str);
System\ServiceModel\Dispatcher\SecurityImpersonationBehavior.cs (1)
381if ((delimiterPos < 0) || (delimiterPos == 0) || (delimiterPos == downlevelName.Length - 1))
System\ServiceModel\Dispatcher\SeekableMessageNavigator.cs (6)
884if ((nodeName.Length > 0 || nodeVal.Length > 0) && String.CompareOrdinal(nodeName, name) == 0) 1511if (nodeName.Length == 0 && nodeVal.Length == 0) 1572if (p != null && p.Length > 0) 1906string name = reader.Prefix.Length == 0 ? string.Empty : reader.LocalName;
System\ServiceModel\Dispatcher\XPathLexer.cs (8)
205for (int p = 0; p < ranges.Length; p += 2) 479this.xpathLength = this.xpath.Length; 749if (qname.Prefix.Length == 0 && qname.Name.Length == 0) 832else if (qname.Prefix.Length == 0) 986if (qname.Prefix.Length != 0) 1004if (qname.Prefix.Length != 0) 1028else if (qname.Prefix.Length > 0)
System\ServiceModel\Dispatcher\XPathMessageContext.cs (1)
1138if (actor.Length == 0)
System\ServiceModel\Dispatcher\XPathMessageFilter.cs (8)
516if (reader.LocalName == NodeQuotaAttr && reader.NamespaceURI.Length == 0) 552if (xpath.Length != 0) 561if (prefix.Length > 0) 572if (null != ns && ns.Length > 0) 578if (null != ns && ns.Length > 0) 635if (nsPrefix.Length > 0 && (nsNS == null || (nsNS != null && nsNS != this.namespaces.LookupNamespace(nsPrefix)))) 674startChar += nsPrefix.Length; 711if (localName.Length == 0)
System\ServiceModel\Dispatcher\XPathParser.cs (1)
106if (null != this.namespaces && null != prefix && prefix.Length > 0)
System\ServiceModel\EndpointAddress.cs (10)
387int u1Len = (u1Path.Length > 0 && u1Path[u1Path.Length - 1] == '/') ? u1Path.Length - 1 : u1Path.Length; 388int u2Len = (u2Path.Length > 0 && u2Path[u2Path.Length - 1] == '/') ? u2Path.Length - 1 : u2Path.Length; 417if (uriString.Length > 0 && uriString[uriString.Length - 1] != '/')
System\ServiceModel\EnvelopeVersion.cs (2)
74if (ultimateReceiverActor.Length == 0) 159return actor.Length == 0 || actor == this.ultimateDestinationActor || actor == this.nextDestinationActorValue;
System\ServiceModel\FaultCode.cs (2)
40if (name.Length == 0) 64return ns.Length == 0 || version != null;
System\ServiceModel\MessageContractMemberAttribute.cs (1)
32if (value.Length > 0)
System\ServiceModel\MsmqIntegration\ActiveXSerializer.cs (1)
245int size = ((string)obj).Length * 2;
System\ServiceModel\Security\LaxModeSecurityHeaderElementInferenceEngine.cs (1)
67if (uri != null && uri.Length > 1 && uri[0] == '#')
System\ServiceModel\Security\SecurityTimestamp.cs (1)
105char[] buffer = new char[DefaultFormat.Length];
System\ServiceModel\Security\SecurityUtils.cs (1)
407if (serverCredential.Domain != null && serverCredential.Domain.Length > 0)
System\ServiceModel\Security\SecurityVerifiedMessage.cs (1)
519if (prefix.Length == 0 && localName == "xmlns")
System\ServiceModel\Security\Tokens\ClaimTypeRequirement.cs (1)
24if (claimType.Length <= 0)
System\ServiceModel\Security\WsKeyInfoSerializer.cs (1)
136if ( uri.Length > 0 && uri[0] != '#' )
System\ServiceModel\Security\WSSecureConversation.cs (2)
204if (label != null && label.Length > this.maxKeyDerivationLabelLength) 206throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SR.GetString(SR.DerivedKeyTokenLabelTooLong, label.Length, this.maxKeyDerivationLabelLength)));
System\ServiceModel\Security\WSSecurityJan2004.cs (1)
432if (type != null && type.Length > 0 && type != SecurityJan2004Strings.UPTokenPasswordTextValue)
System\ServiceModel\Security\WSSecurityPolicy.cs (4)
2973if (message != null && message.Length > MaxLength) 2976message.Substring(0, (MaxLength - Ellipsis.Length) / 2), 2978message.Substring(message.Length - (MaxLength - Ellipsis.Length) / 2));
System\ServiceModel\Security\WSTrust.cs (5)
136if (secretType != null && secretType.Length > 0) 604if (valueTypeUri.Length == 0) 730if (valueTypeUri.Length == 0) 853if (attr.LocalName == SecurityJan2004Strings.EncodingType && attr.NamespaceURI.Length == 0) 861else if (attr.LocalName == SecurityJan2004Strings.ValueType && attr.NamespaceURI.Length == 0)
System\ServiceModel\Security\XmlHelper.cs (4)
119if (ns == null && prefix.Length > 0) 244if (value == null || value.Length == 0) 308if (idPrefix.Length == 0) 318for (int i = 1; i < idPrefix.Length; i++)
System\ServiceModel\ServiceHost.cs (2)
704for (; i < path.Length; ++i) 715if (path.Length == 0)
System\ServiceModel\StringUtil.cs (1)
44int len = str.Length;
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (2)
658if (dateTimeString.Length < 20) 668while (dateTimeString.Length > i && char.IsDigit(dateTimeString[i]))
System\ServiceModel\Syndication\SyndicationFeedFormatter.cs (1)
573if (prefix.Length == 0)
System\ServiceModel\Transactions\WsatRegistrationHeader.cs (3)
159if (contextId.Length == 0 || 160contextId.Length > CoordinationContext.MaxIdentifierLength || 178if (tokenId.Length == 0)
System\ServiceModel\UpnEndpointIdentity.cs (1)
132if ((delimiterPos < 0) || (delimiterPos == 0) || (delimiterPos == downlevelName.Length - 1))
System\ServiceModel\XmlUtil.cs (8)
53for (i = s.Length; i > 0 && IsWhitespace(s[i - 1]); i--); 55if (i != s.Length) 66for (i = 0; i < s.Length && IsWhitespace(s[i]); i++); 79for (i = 0; i < s.Length && IsWhitespace(s[i]); i++); 81if (i >= s.Length) 87for (j = s.Length; j > 0 && IsWhitespace(s[j - 1]); j--); 91if (i != 0 || j != s.Length) 109if (index == qname.Length - 1)
System\UriTemplate.cs (14)
101while (startIndex < pathTemplate.Length) 114startIndex = pathTemplate.Length; 118if ((startIndex == pathTemplate.Length) && 147while (startIndex < queryTemplate.Length) 157if (startIndex >= queryTemplate.Length) 165queryPartEnd = queryTemplate.Length; 166startIndex = queryTemplate.Length; 468if (candidatePath.Length < basePath.Length) 788relPathSeg = relPathSeg.Substring(0, relPathSeg.Length - 1); // trim slash 815relPathSeg = relPathSeg.Substring(0, relPathSeg.Length - 1); // trim slash 1674segment.Substring(1 + WildcardPath.Length, segment.Length - 2 - WildcardPath.Length),
System\UriTemplateCompoundPathSegment.cs (12)
37segment = segment.Remove(segment.Length - 1); 77else if (nextVarEnd + 1 < segment.Length) 199segmentPosition = this.firstLiteral.Length; 218segmentPosition = nextLiteralPosition + this.varLitPairs[pairIndex].Literal.Length; 220if (segmentPosition < segment.Length) 231else if ((segmentPosition + this.varLitPairs[varLitPairs.Count - 1].Literal.Length < segment.Length) && 237segment.Substring(segmentPosition, segment.Length - segmentPosition - this.varLitPairs[varLitPairs.Count - 1].Literal.Length)); 443char[] reversedString = new char[stringToReverse.Length]; 444for (int i = 0; i < stringToReverse.Length; i++) 446reversedString[i] = stringToReverse[stringToReverse.Length - i - 1];
System\UriTemplateHelpers.cs (4)
187else if ((varEndIndex < part.Length - 2) || 188((varEndIndex == part.Length - 2) && !part.EndsWith("/", StringComparison.Ordinal))) 223(segment.Length > UriTemplate.WildcardPath.Length + 2));
System\UriTemplateLiteralPathSegment.cs (1)
27this.segment = segment.Remove(segment.Length - 1);
System\UriTemplatePathSegment.cs (2)
64segment.Substring(1, segment.Length - 3)); 70segment.Substring(1, segment.Length - 2));
System\UriTemplateQueryValue.cs (1)
58return new UriTemplateVariableQueryValue(template.AddQueryVariable(value.Substring(1, value.Length - 2)));
System\UriTemplateTable.cs (6)
368relPathSeg = relPathSeg.Substring(0, relPathSeg.Length - 1); // trim slash 457if (uriPath.Length < basePath.Length) 470if (uriPath.Length > basePath.Length && !basePath.EndsWith("/", StringComparison.Ordinal) && uriPath[basePath.Length] != '/')
System.ServiceModel.Activation (30)
System\ServiceModel\Activation\HostedHttpContext.cs (2)
309if (this.hostedHttpContext.result.RequestUri.Query.Length > 1) 614if (contentType != null && contentType.Length != 0)
System\ServiceModel\Activation\HostedHttpRequestAsyncResult.cs (1)
148char firstMethodChar = method.Length == 5 ? method[0] : '\0';
System\ServiceModel\Activation\Interop\SafeHGlobalHandleCritical.cs (2)
46byte[] bytes = DiagnosticUtility.Utility.AllocateByteArray(checked((s.Length + 1) * 2)); 47Encoding.Unicode.GetBytes(s, 0, s.Length, bytes, 0);
System\ServiceModel\Activation\MetabaseSettings.cs (13)
134else if (position == 0 || position == parts[1].Length - 1) 335&& childPath.Length > matchLength) 337matchLength = childPath.Length; 517int index = applicationID.IndexOf(IISConstants.AboPathDelimiter, ServiceHostingEnvironment.ISAPIApplicationIdPrefix.Length); 518siteAboPath = applicationID.Substring(IISConstants.LMSegment.Length, index - IISConstants.LMSegment.Length); 520if (HostingEnvironmentWrapper.ApplicationVirtualPath.Length > 1) 526if (HostingEnvironmentWrapper.ApplicationVirtualPath.Length != 1 || HostingEnvironmentWrapper.ApplicationVirtualPath[0] != IISConstants.AboPathDelimiter) 582while (foundCount < 4 && endAboPath.Length >= siteAboPath.Length) 647int index = endAboPath.IndexOf(IISConstants.AboPathDelimiter, appAboPath.Length + 1); 668while (endAboPath.Length >= startAboPath.Length)
System\ServiceModel\Activation\ServiceParser.cs (7)
231if (sourceString == null || sourceString.Length == 0) 478bool fHasEqual = (equalsign[i].ToString().Length > 0); 544if (directiveName.Length == 0) 780if (val.Length == 0) 810if (s.Length == 0) 837if (s.Length == 0) 874return (s.Trim().Length == 0);
System\ServiceModel\Activities\Activation\WorkflowServiceHostFactory.cs (1)
232for (int i = 0; i < activityName.Length; i++)
System\ServiceModel\Channels\MsmqHostedTransportManager.cs (1)
181virtualPath = virtualPath.Substring(0, virtualPath.Length - 1);
System\ServiceModel\ServiceHostingEnvironment.cs (3)
521HostingEnvironmentWrapper.UnsafeApplicationID, 0, ISAPIApplicationIdPrefix.Length, StringComparison.OrdinalIgnoreCase) != 0); 1275if (fullVirtualPath.Length == 0) 1282if (currentVirtualPath.Length == 0)
System.ServiceModel.Activities (9)
System\ServiceModel\Activities\Diagnostics\WorkflowServiceHostPerformanceCounters.cs (6)
165int length = serviceName.Length + uri.Length + 2; 172length, serviceName.Length, uri.Length); 178serviceName = GetHashedString(serviceName, count - hashLength, serviceName.Length - count + hashLength, true); 185uri = GetHashedString(uri, 0, uri.Length - count + hashLength, false);
System\ServiceModel\Activities\Tracking\Configuration\TrackingConfigurationElement.cs (1)
23((value1 == null) ? 0 : value1.Length), value1, value2);
System\ServiceModel\Activities\WorkflowService.cs (1)
166if (this.Body.DisplayName.Length == 0)
System\ServiceModel\XamlIntegration\ServiceXNameTypeConverter.cs (1)
74return (name.IndexOf(':') >= 1) || (name.Length > 0 && name[0] == '{');
System.ServiceModel.Discovery (4)
System\ServiceModel\Discovery\ScopeCompiler.cs (2)
341rdnBuilder.Append(token.Substring(0, token.Length - 1)); 397attrTypeAndValueBuilder.Append(token.Substring(0, token.Length - 1));
System\ServiceModel\Discovery\SerializationUtility.cs (2)
124if (qname.Namespace.Length == 0) 320if ((reader.NamespaceURI.Length == 0) &&
System.ServiceModel.Internals (188)
System\Runtime\Diagnostics\DiagnosticEventProvider.cs (5)
254dataDescriptor->Size = (uint)((sRet.Length + 1) * 2); 374dataDescriptor->Size = (uint)((sRet.Length + 1) * 2); 409if (eventMessage.Length > traceEventMaximumStringSize) 654if (data.Length > traceEventMaximumStringSize) 667userData.Size = (uint)((data.Length + 1) * 2);
System\Runtime\Diagnostics\DiagnosticTraceBase.cs (1)
269int len = text.Length;
System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (7)
785if (exceptionData.Length < remainingLength) 788remainingLength -= exceptionData.Length; 795if (!string.IsNullOrEmpty(innerException) && innerException.Length < remainingLength) 883int minXmlLength = (localName.Length * 2) + EtwDiagnosticTrace.XmlBracketsLength; 900xmlElementLength = localName.Length + EtwDiagnosticTrace.XmlBracketsLengthForNullValue; 905xmlElementLength = (localName.Length * 2) + EtwDiagnosticTrace.XmlBracketsLength + value.Length;
System\Runtime\Diagnostics\EtwProvider.cs (166)
82eventDataPtr[1].Size = (uint)(value2.Length + 1) * sizeof(char); 85eventDataPtr[2].Size = (uint)(value3.Length + 1) * sizeof(char); 110eventDataPtr[0].Size = (uint)(value1.Length + 1) * sizeof(char); 113eventDataPtr[1].Size = (uint)(value2.Length + 1) * sizeof(char); 138eventDataPtr[0].Size = (uint)(value1.Length + 1) * sizeof(char); 141eventDataPtr[1].Size = (uint)(value2.Length + 1) * sizeof(char); 167eventDataPtr[0].Size = (uint)(value1.Length + 1) * sizeof(char); 170eventDataPtr[1].Size = (uint)(value2.Length + 1) * sizeof(char); 173eventDataPtr[2].Size = (uint)(value3.Length + 1) * sizeof(char); 200eventDataPtr[0].Size = (uint)(value1.Length + 1) * sizeof(char); 203eventDataPtr[1].Size = (uint)(value2.Length + 1) * sizeof(char); 206eventDataPtr[2].Size = (uint)(value3.Length + 1) * sizeof(char); 209eventDataPtr[3].Size = (uint)(value4.Length + 1) * sizeof(char); 238eventDataPtr[0].Size = (uint)(value1.Length + 1) * sizeof(char); 241eventDataPtr[1].Size = (uint)(value2.Length + 1) * sizeof(char); 244eventDataPtr[2].Size = (uint)(value3.Length + 1) * sizeof(char); 247eventDataPtr[3].Size = (uint)(value4.Length + 1) * sizeof(char); 250eventDataPtr[4].Size = (uint)(value5.Length + 1) * sizeof(char); 280eventDataPtr[0].Size = (uint)(value1.Length + 1) * sizeof(char); 283eventDataPtr[1].Size = (uint)(value2.Length + 1) * sizeof(char); 286eventDataPtr[2].Size = (uint)(value3.Length + 1) * sizeof(char); 289eventDataPtr[3].Size = (uint)(value4.Length + 1) * sizeof(char); 292eventDataPtr[4].Size = (uint)(value5.Length + 1) * sizeof(char); 295eventDataPtr[5].Size = (uint)(value6.Length + 1) * sizeof(char); 327eventDataPtr[0].Size = (uint)(value1.Length + 1) * sizeof(char); 330eventDataPtr[1].Size = (uint)(value2.Length + 1) * sizeof(char); 333eventDataPtr[2].Size = (uint)(value3.Length + 1) * sizeof(char); 336eventDataPtr[3].Size = (uint)(value4.Length + 1) * sizeof(char); 339eventDataPtr[4].Size = (uint)(value5.Length + 1) * sizeof(char); 342eventDataPtr[5].Size = (uint)(value6.Length + 1) * sizeof(char); 345eventDataPtr[6].Size = (uint)(value7.Length + 1) * sizeof(char); 378eventDataPtr[0].Size = (uint)(value1.Length + 1) * sizeof(char); 381eventDataPtr[1].Size = (uint)(value2.Length + 1) * sizeof(char); 384eventDataPtr[2].Size = (uint)(value3.Length + 1) * sizeof(char); 387eventDataPtr[3].Size = (uint)(value4.Length + 1) * sizeof(char); 390eventDataPtr[4].Size = (uint)(value5.Length + 1) * sizeof(char); 393eventDataPtr[5].Size = (uint)(value6.Length + 1) * sizeof(char); 396eventDataPtr[6].Size = (uint)(value7.Length + 1) * sizeof(char); 399eventDataPtr[7].Size = (uint)(value8.Length + 1) * sizeof(char); 433eventDataPtr[0].Size = (uint)(value1.Length + 1) * sizeof(char); 436eventDataPtr[1].Size = (uint)(value2.Length + 1) * sizeof(char); 439eventDataPtr[2].Size = (uint)(value3.Length + 1) * sizeof(char); 442eventDataPtr[3].Size = (uint)(value4.Length + 1) * sizeof(char); 445eventDataPtr[4].Size = (uint)(value5.Length + 1) * sizeof(char); 448eventDataPtr[5].Size = (uint)(value6.Length + 1) * sizeof(char); 451eventDataPtr[6].Size = (uint)(value7.Length + 1) * sizeof(char); 454eventDataPtr[7].Size = (uint)(value8.Length + 1) * sizeof(char); 457eventDataPtr[8].Size = (uint)(value9.Length + 1) * sizeof(char); 492eventDataPtr[0].Size = (uint)(value1.Length + 1) * sizeof(char); 495eventDataPtr[1].Size = (uint)(value2.Length + 1) * sizeof(char); 498eventDataPtr[2].Size = (uint)(value3.Length + 1) * sizeof(char); 501eventDataPtr[3].Size = (uint)(value4.Length + 1) * sizeof(char); 504eventDataPtr[4].Size = (uint)(value5.Length + 1) * sizeof(char); 507eventDataPtr[5].Size = (uint)(value6.Length + 1) * sizeof(char); 510eventDataPtr[6].Size = (uint)(value7.Length + 1) * sizeof(char); 513eventDataPtr[7].Size = (uint)(value8.Length + 1) * sizeof(char); 516eventDataPtr[8].Size = (uint)(value9.Length + 1) * sizeof(char); 519eventDataPtr[9].Size = (uint)(value10.Length + 1) * sizeof(char); 555eventDataPtr[0].Size = (uint)(value1.Length + 1) * sizeof(char); 558eventDataPtr[1].Size = (uint)(value2.Length + 1) * sizeof(char); 561eventDataPtr[2].Size = (uint)(value3.Length + 1) * sizeof(char); 564eventDataPtr[3].Size = (uint)(value4.Length + 1) * sizeof(char); 567eventDataPtr[4].Size = (uint)(value5.Length + 1) * sizeof(char); 570eventDataPtr[5].Size = (uint)(value6.Length + 1) * sizeof(char); 573eventDataPtr[6].Size = (uint)(value7.Length + 1) * sizeof(char); 576eventDataPtr[7].Size = (uint)(value8.Length + 1) * sizeof(char); 579eventDataPtr[8].Size = (uint)(value9.Length + 1) * sizeof(char); 582eventDataPtr[9].Size = (uint)(value10.Length + 1) * sizeof(char); 585eventDataPtr[10].Size = (uint)(value11.Length + 1) * sizeof(char); 622eventDataPtr[0].Size = (uint)(value1.Length + 1) * sizeof(char); 625eventDataPtr[1].Size = (uint)(value2.Length + 1) * sizeof(char); 628eventDataPtr[2].Size = (uint)(value3.Length + 1) * sizeof(char); 631eventDataPtr[3].Size = (uint)(value4.Length + 1) * sizeof(char); 634eventDataPtr[4].Size = (uint)(value5.Length + 1) * sizeof(char); 637eventDataPtr[5].Size = (uint)(value6.Length + 1) * sizeof(char); 640eventDataPtr[6].Size = (uint)(value7.Length + 1) * sizeof(char); 643eventDataPtr[7].Size = (uint)(value8.Length + 1) * sizeof(char); 646eventDataPtr[8].Size = (uint)(value9.Length + 1) * sizeof(char); 649eventDataPtr[9].Size = (uint)(value10.Length + 1) * sizeof(char); 652eventDataPtr[10].Size = (uint)(value11.Length + 1) * sizeof(char); 655eventDataPtr[11].Size = (uint)(value12.Length + 1) * sizeof(char); 693eventDataPtr[0].Size = (uint)(value1.Length + 1) * sizeof(char); 696eventDataPtr[1].Size = (uint)(value2.Length + 1) * sizeof(char); 699eventDataPtr[2].Size = (uint)(value3.Length + 1) * sizeof(char); 702eventDataPtr[3].Size = (uint)(value4.Length + 1) * sizeof(char); 705eventDataPtr[4].Size = (uint)(value5.Length + 1) * sizeof(char); 708eventDataPtr[5].Size = (uint)(value6.Length + 1) * sizeof(char); 711eventDataPtr[6].Size = (uint)(value7.Length + 1) * sizeof(char); 714eventDataPtr[7].Size = (uint)(value8.Length + 1) * sizeof(char); 717eventDataPtr[8].Size = (uint)(value9.Length + 1) * sizeof(char); 720eventDataPtr[9].Size = (uint)(value10.Length + 1) * sizeof(char); 723eventDataPtr[10].Size = (uint)(value11.Length + 1) * sizeof(char); 726eventDataPtr[11].Size = (uint)(value12.Length + 1) * sizeof(char); 729eventDataPtr[12].Size = (uint)(value13.Length + 1) * sizeof(char); 915eventDataPtr[3].Size = (uint)(value4.Length + 1) * sizeof(char); 918eventDataPtr[4].Size = (uint)(value5.Length + 1) * sizeof(char); 921eventDataPtr[5].Size = (uint)(value6.Length + 1) * sizeof(char); 924eventDataPtr[6].Size = (uint)(value7.Length + 1) * sizeof(char); 927eventDataPtr[7].Size = (uint)(value8.Length + 1) * sizeof(char); 930eventDataPtr[8].Size = (uint)(value9.Length + 1) * sizeof(char); 933eventDataPtr[9].Size = (uint)(value10.Length + 1) * sizeof(char); 936eventDataPtr[10].Size = (uint)(value11.Length + 1) * sizeof(char); 939eventDataPtr[11].Size = (uint)(value12.Length + 1) * sizeof(char); 942eventDataPtr[12].Size = (uint)(value13.Length + 1) * sizeof(char); 945eventDataPtr[13].Size = (uint)(value14.Length + 1) * sizeof(char); 948eventDataPtr[14].Size = (uint)(value15.Length + 1) * sizeof(char); 999eventDataPtr[3].Size = (uint)(value4.Length + 1) * sizeof(char); 1002eventDataPtr[4].Size = (uint)(value5.Length + 1) * sizeof(char); 1005eventDataPtr[5].Size = (uint)(value6.Length + 1) * sizeof(char); 1008eventDataPtr[6].Size = (uint)(value7.Length + 1) * sizeof(char); 1011eventDataPtr[7].Size = (uint)(value8.Length + 1) * sizeof(char); 1014eventDataPtr[8].Size = (uint)(value9.Length + 1) * sizeof(char); 1017eventDataPtr[9].Size = (uint)(value10.Length + 1) * sizeof(char); 1020eventDataPtr[10].Size = (uint)(value11.Length + 1) * sizeof(char); 1023eventDataPtr[11].Size = (uint)(value12.Length + 1) * sizeof(char); 1029eventDataPtr[13].Size = (uint)(value14.Length + 1) * sizeof(char); 1032eventDataPtr[14].Size = (uint)(value15.Length + 1) * sizeof(char); 1035eventDataPtr[15].Size = (uint)(value16.Length + 1) * sizeof(char); 1038eventDataPtr[16].Size = (uint)(value17.Length + 1) * sizeof(char); 1079eventDataPtr[3].Size = (uint)(value4.Length + 1) * sizeof(char); 1082eventDataPtr[4].Size = (uint)(value5.Length + 1) * sizeof(char); 1085eventDataPtr[5].Size = (uint)(value6.Length + 1) * sizeof(char); 1088eventDataPtr[6].Size = (uint)(value7.Length + 1) * sizeof(char); 1091eventDataPtr[7].Size = (uint)(value8.Length + 1) * sizeof(char); 1094eventDataPtr[8].Size = (uint)(value9.Length + 1) * sizeof(char); 1136eventDataPtr[3].Size = (uint)(value4.Length + 1) * sizeof(char); 1139eventDataPtr[4].Size = (uint)(value5.Length + 1) * sizeof(char); 1142eventDataPtr[5].Size = (uint)(value6.Length + 1) * sizeof(char); 1145eventDataPtr[6].Size = (uint)(value7.Length + 1) * sizeof(char); 1148eventDataPtr[7].Size = (uint)(value8.Length + 1) * sizeof(char); 1151eventDataPtr[8].Size = (uint)(value9.Length + 1) * sizeof(char); 1154eventDataPtr[9].Size = (uint)(value10.Length + 1) * sizeof(char); 1157eventDataPtr[10].Size = (uint)(value11.Length + 1) * sizeof(char); 1201eventDataPtr[3].Size = (uint)(value4.Length + 1) * sizeof(char); 1204eventDataPtr[4].Size = (uint)(value5.Length + 1) * sizeof(char); 1207eventDataPtr[5].Size = (uint)(value6.Length + 1) * sizeof(char); 1210eventDataPtr[6].Size = (uint)(value7.Length + 1) * sizeof(char); 1213eventDataPtr[7].Size = (uint)(value8.Length + 1) * sizeof(char); 1216eventDataPtr[8].Size = (uint)(value9.Length + 1) * sizeof(char); 1219eventDataPtr[9].Size = (uint)(value10.Length + 1) * sizeof(char); 1222eventDataPtr[10].Size = (uint)(value11.Length + 1) * sizeof(char); 1225eventDataPtr[11].Size = (uint)(value12.Length + 1) * sizeof(char); 1228eventDataPtr[12].Size = (uint)(value13.Length + 1) * sizeof(char); 1273eventDataPtr[3].Size = (uint)(value4.Length + 1) * sizeof(char); 1276eventDataPtr[4].Size = (uint)(value5.Length + 1) * sizeof(char); 1279eventDataPtr[5].Size = (uint)(value6.Length + 1) * sizeof(char); 1282eventDataPtr[6].Size = (uint)(value7.Length + 1) * sizeof(char); 1285eventDataPtr[7].Size = (uint)(value8.Length + 1) * sizeof(char); 1288eventDataPtr[8].Size = (uint)(value9.Length + 1) * sizeof(char); 1291eventDataPtr[9].Size = (uint)(value10.Length + 1) * sizeof(char); 1294eventDataPtr[10].Size = (uint)(value11.Length + 1) * sizeof(char); 1297eventDataPtr[11].Size = (uint)(value12.Length + 1) * sizeof(char); 1300eventDataPtr[12].Size = (uint)(value13.Length + 1) * sizeof(char); 1303eventDataPtr[13].Size = (uint)(value14.Length + 1) * sizeof(char); 1347eventDataPtr[3].Size = (uint)(value4.Length + 1) * sizeof(char); 1353eventDataPtr[5].Size = (uint)(value6.Length + 1) * sizeof(char); 1356eventDataPtr[6].Size = (uint)(value7.Length + 1) * sizeof(char); 1359eventDataPtr[7].Size = (uint)(value8.Length + 1) * sizeof(char); 1362eventDataPtr[8].Size = (uint)(value9.Length + 1) * sizeof(char); 1365eventDataPtr[9].Size = (uint)(value10.Length + 1) * sizeof(char); 1368eventDataPtr[10].Size = (uint)(value11.Length + 1) * sizeof(char); 1371eventDataPtr[11].Size = (uint)(value12.Length + 1) * sizeof(char); 1374eventDataPtr[12].Size = (uint)(value13.Length + 1) * sizeof(char); 1401eventDataPtr[0].Size = (uint)(value1.Length + 1) * sizeof(char); 1407eventDataPtr[2].Size = (uint)(value3.Length + 1) * sizeof(char); 1410eventDataPtr[3].Size = (uint)(value4.Length + 1) * sizeof(char);
System\Runtime\Diagnostics\EventLogger.cs (5)
101eventLogEntryLength += stringValue.Length + 1; 106eventLogEntryLength += (normalizedProcessName.Length + 1); 110eventLogEntryLength += (invariantProcessId.Length + 1); 127if (logValues[i].Length > truncationLength) 366int len = eventLogParameter.Length;
System\Runtime\UrlUtility.cs (4)
33if (query.Length > 0 && query[0] == '?') 88int l = s.Length; 282int count = s.Length; 497int l = (s != null) ? s.Length : 0;
System.ServiceModel.Web (31)
SR.cs (1)
48if (this.resourceSet.Length > 0)
System\ServiceModel\Description\WCFServiceClientProxyGenerator.cs (2)
38for (int i = 0; i < fragment.Length && builder.Length < MaxIdentifierLength; i++) 184AddToNamespace(builder, uriString.Substring(DataContractXsdBaseNamespace.Length));
System\ServiceModel\Dispatcher\FormatSelectingMessageInspector.cs (2)
127if ((subType[0] == '*' && subType.Length == 1) && 128((type[0] == '*' && type.Length == 1) ||
System\ServiceModel\Web\CachingParameterInspector.cs (6)
142for (int currentIndex = 0; currentIndex < (sqlDependencyString.Length + 1); currentIndex++) 148else if ((currentIndex != sqlDependencyString.Length) && 156if ((currentIndex == sqlDependencyString.Length) || 176if (currentIndex == sqlDependencyString.Length) 215for (int currentIndex = 0; currentIndex < str.Length; currentIndex++) 229if ((currentIndex + 1) == str.Length)
System\ServiceModel\Web\HttpDateParse.cs (3)
274while (index < DateString.Length && i < MAX_FIELD_DATE_ENTRIES) 289} while (index < DateString.Length && 337} while (index < DateString.Length &&
System\ServiceModel\Web\IncomingWebRequestContext.cs (4)
393if (xTypeSubType[1][0] == '*' && xTypeSubType[1].Length == 1) 397if (yTypeSubType[1][0] == '*' && yTypeSubType[1].Length == 1) 403else if (xTypeSubType[0][0] == '*' && xTypeSubType[0].Length == 1) 407else if (yTypeSubType[0][0] == '*' && yTypeSubType[0].Length == 1)
System\ServiceModel\Web\OutgoingWebResponseContext.cs (3)
252int lastEtagIndex = entityTag.Length - 1; 298StringBuilder editedEtag = new StringBuilder(entityTag, entityTag.Length + escapeCharacterInsertIndicesCount + 2); 305editedEtag.Insert(entityTag.Length + escapeCharacterInsertIndicesCount, '\"');
System\ServiceModel\Web\Utility.cs (10)
60if (former.Length > 0 && latter.Length > 0) 62if (former[former.Length - 1] == '/' && latter[0] == '/') 64builder.Append(former, 0, former.Length - 1); 69if (former[former.Length - 1] != '/' && latter[0] != '/') 108if (string.IsNullOrEmpty(str) || offset >= str.Length) 119if (startIndex >= str.Length) 128while (endIndex < str.Length) 175if (typeAndSubType[0][0] == '*' && typeAndSubType[0].Length == 1 && 176!(typeAndSubType[1][0] == '*' && typeAndSubType[1].Length == 1))
System.Transactions (5)
System\Transactions\Oletx\OletxTransactionManager.cs (1)
555if (( null != this.nodeNameField ) && ( 0 == this.nodeNameField.Length ))
System\Transactions\Trace\DiagnosticTrace.cs (2)
515if (!string.IsNullOrEmpty(message) && message.Length >= MaxEventLogLength) 763int len = text.Length;
System\Transactions\Trace\PlainXmlWriter.cs (1)
116Debug.Assert( localName != null && localName.Length > 0 );
System\Transactions\TransactionManager.cs (1)
294if ( !((tm.NodeName == null && (nodeName == null || nodeName.Length == 0)) ||
System.Web (1367)
AspNetEventSource.cs (1)
185pEventData->Size = checked((str.Length + 1) * sizeof(char)); // size is specified in bytes, including null wide char
Cache\OutputCache.cs (2)
463int idStartIndex = OUTPUTCACHE_KEYPREFIX_DEPENDENCIES.Length; 464int idLength = depKey.Length - idStartIndex;
Cache\SqlCacheDependency.cs (11)
293if (tableName.Length == 0) { 310for (i=0; i < s.Length; i++) { 321if (i+1 == s.Length) { 347for (int i = 0; i < outputCacheString.Length+1; i++) { 353if (i != outputCacheString.Length && outputCacheString[i] == '\\') { 359if (i == outputCacheString.Length || outputCacheString[i] == ';' ) { 388if (i == outputCacheString.Length) { 714if (connectionString == null || connectionString.Length < 1) { 1480else if (table.Length == 0) { 1501sqlCmd.Parameters.Add(new SqlParameter("@tableName", SqlDbType.NVarChar, table.Length)); 1625if (sqlCmd != null && sqlCmd.CommandText.Length != 0) {
CachedPathData.cs (16)
159s_appConfigPathLength = (HostingEnvironment.IsHosted) ? HostingEnvironment.AppConfigPath.Length : WebConfigurationHost.RootWebConfigPath.Length; 162return (configPath.Length > s_appConfigPathLength); 515if (configRecord.ConfigPath.Length == _configPath.Length) { 553if (_physicalPath.Length == physicalPath.Length) { 555if (0 == String.Compare(_physicalPath, 0, physicalPath, 0, physicalPath.Length, StringComparison.OrdinalIgnoreCase)) { 559else if (_physicalPath.Length - physicalPath.Length == 1) { 561if (_physicalPath[_physicalPath.Length-1] == System.IO.Path.DirectorySeparatorChar 562&& (0 == String.Compare(_physicalPath, 0, physicalPath, 0, physicalPath.Length, StringComparison.OrdinalIgnoreCase))) { 566else if (physicalPath.Length - _physicalPath.Length == 1) { 568if (physicalPath[physicalPath.Length-1] == System.IO.Path.DirectorySeparatorChar 569&& (0 == String.Compare(_physicalPath, 0, physicalPath, 0, _physicalPath.Length, StringComparison.OrdinalIgnoreCase))) {
Compilation\AssemblyBuilder.cs (1)
765if (s_vbImportsString.Length > 0) {
Compilation\BaseCodeDomTreeGenerator.cs (5)
492code = code.PadLeft(code.Length + script.Column - 1); 496script.Column, script.Column, script.Script.Length, false); 742codeLength = codeBlockBuilder.Content.Length; 752generatedColumn = BaseTemplateCodeDomTreeGenerator.tempObjectVariable.Length + 804offset = index - BaseTemplateCodeDomTreeGenerator.tempObjectVariable.Length + 1;
Compilation\BaseResourcesBuildProvider.cs (1)
54if (_ns.Length == 0)
Compilation\BaseTemplateCodeDomTreeGenerator.cs (7)
440Debug.Assert(autoTemplateName != null && autoTemplateName.Length > 0, "Template Name is empty."); 1404int generatedColumn = tempObjectVariable.Length + BaseCodeDomTreeGenerator.GetGeneratedColumnOffset(_codeDomProvider); 1405CodeLinePragma codeLinePragma = CreateCodeLinePragma(virtualPath: builder.PageVirtualPath, lineNumber: entry.Line, column: entry.Column, generatedColumn: generatedColumn, codeLength: entry.Expression.Length); 1514codeBlockBuilder.Column + codeExpression.Length + 3); 1527code = code.PadLeft(code.Length + codeBlockBuilder.Column - 1); 1749if (current.Filter.Length != 0) { 1788s.Length >= minLongLiteralStringLength &&
Compilation\BuildManager.cs (4)
1459int appPathLen = HttpRuntime.AppDomainAppVirtualPathString.Length; 1464if (virtualPathString.Length < appPathLen) 2078HttpRuntime.WebRefDirectoryVirtualPath.VirtualPathString, 0, HttpRuntime.WebRefDirectoryVirtualPath.VirtualPathString.Length, 2263Debug.Assert(slashIndex != virtualPathString.Length - 1);
Compilation\BuildResult.cs (1)
268if ((s != null) && (s.Length != 0)) {
Compilation\BuildResultCache.cs (2)
472string baseName = assemblyName.Substring(BuildManager.WebAssemblyNamePrefix.Length); 513string baseName = assemblyName.Substring(BuildManager.WebAssemblyNamePrefix.Length);
Compilation\ClientBuildManager.cs (5)
222&& appVirtualDir.Length > IISExpressPrefix.Length) { 226int endSlash = appVirtualDir.IndexOf('/', IISExpressPrefix.Length); 228_hostingParameters.IISExpressVersion = appVirtualDir.Substring(IISExpressPrefix.Length, endSlash - IISExpressPrefix.Length);
Compilation\CompilationUtil.cs (2)
82if (extension.Length == 0) { 641Debug.Assert(version.Length > 1, "Version has invalid length");
Compilation\ConnectionStringsExpressionBuilder.cs (4)
33name = expression.Substring(0, expression.Length - connectionStringSuffix.Length); 38name = expression.Substring(0, expression.Length - providerNameSuffix.Length);
Compilation\ExpressionBuilder.cs (1)
45if (expressionPrefix.Length == 0) {
Compilation\IImplicitResourceProvider.cs (1)
214if (entry.Filter.Length > 0)
Compilation\MultiTargetingUtil.cs (1)
370if (compilerVersion.Length < 4 || compilerVersion[0] != 'v') {
Compilation\PageCodeDomTreeGenerator.cs (2)
164if ((cacheSettings.CacheProfile != null && cacheSettings.CacheProfile.Length != 0) || 393if ((cacheSettings.CacheProfile != null && cacheSettings.CacheProfile.Length != 0) ||
Compilation\ResourceExpressionBuilder.cs (3)
92if (fields.ClassKey.Length == 0) { 218int len = expression.Length; 244if (fields.ClassKey.Length == 0) {
Compilation\WebReferencesBuildProvider.cs (3)
63if (rootWebRefDirVirtualPath.VirtualPathString.Length == currentWebRefDirVirtualPath.Length) { 72rootWebRefDirVirtualPath.VirtualPathString.Length);
Configuration\AuthorizationRule.cs (2)
380if (User.Length > 1) { 400if (Role.Length > 0) {
Configuration\BrowserCapabilitiesCodeGenerator.cs (2)
327if (parentName.Length > 0) { 1021if ((GenerateOverrides) && (prefix.Length == 0)) {
Configuration\BrowserCapabilitiesFactoryBase.cs (1)
135if (key.Length == 0) {
Configuration\BrowserDefinition.cs (2)
52for (int i=0; i<s.Length; i++) { 161if ((parentID != null) && (parentID.Length != 0)) {
Configuration\CapabilitiesPattern.cs (1)
65if (textpos == text.Length)
Configuration\CapabilitiesState.cs (1)
102if (varname.Length == 0 || varname == "HTTP_USER_AGENT")
Configuration\COAUTHIDENTITY.cs (6)
29userlen = (user==null) ? 0 : user.Length; 31domainlen = (domain==null) ? 0 : domain.Length; 33passwordlen = (password==null) ? 0 : password.Length; 56userlen = (user == null) ? 0 : user.Length; 58domainlen = (domain == null) ? 0 : domain.Length; 60passwordlen = (password == null) ? 0 : password.Length;
Configuration\ExpressServerConfig.cs (11)
130int lenNoTrailingSlash = vpath.Length; 134int lenAppRoot = appRoot.Length; 149if (subVdir != null && subVdir.Length > appRootRelativePath.Length) { 150if (appRootRelativePath.Length == 0) { 155else if (StringUtil.EqualsIgnoreCase(appRootRelativePath, 0, subVdir, 0, appRootRelativePath.Length)) { 156int nextSlashIndex = subVdir.IndexOf('/', 1 + appRootRelativePath.Length); 158dirList[dirListCount++] = subVdir.Substring(appRootRelativePath.Length + 1, nextSlashIndex - appRootRelativePath.Length); 161dirList[dirListCount++] = subVdir.Substring(appRootRelativePath.Length + 1); 371if (physicalPath != null && physicalPath.Length == 2 && physicalPath[1] == ':')
Configuration\FormsAuthenticationConfiguration.cs (2)
399(elem.LoginUrl.Length > 1 && elem.LoginUrl[1] == ':')) { 406(elem.DefaultUrl.Length > 1 && elem.DefaultUrl[1] == ':')) {
Configuration\HandlerBase.cs (3)
73if (a != null && val.Length == 0) { 208if (attribute.Value.Length == 0 && !allowEmpty) { 294if (connObj != null && connObj.ConnectionString != null && connObj.ConnectionString.Length > 0)
Configuration\HealthMonitoringSectionHelper.cs (1)
294customEvaluator.Trim().Length == 0) {
Configuration\HttpCapabilitiesBase.cs (1)
173if (mtw != null && mtw.Length != 0) {
Configuration\HttpCapabilitiesEvaluator.cs (4)
175if (request.ClientTarget.Length > 0) { 184if (userAgent != null && userAgent.Length > 512) { 269if (userAgentCacheKey != null && userAgentCacheKey.Length > UserAgentCacheKeyLength) { 329if (key.Length == 0) {
Configuration\HttpCapabilitiesSectionHandler.cs (1)
410if (textpos == text.Length)
Configuration\HttpRuntimeSection.cs (2)
847if (decodedString.Length == 1) 867if (decodedString.Length == 1)
Configuration\IdentitySection.cs (4)
168if (_username != null && _username.Length < 1) { 177else if (_password != null && _username == null && _password.Length > 0 && Impersonate) { 184if (error.Length > 0) { 206if (error.Length > 0) {
Configuration\IISMapPath.cs (1)
51for (int i = 0; i < siteName.Length; i++) {
Configuration\MachineKeySection.cs (16)
339strKey = strKey.Substring(0, strKey.Length - ",IsolateByAppId".Length); 344strKey = strKey.Substring(0, strKey.Length - ",IsolateApps".Length); 361if (strKey.Length < 40 || (strKey.Length & 0x1) == 1) 362throw new ConfigurationErrorsException(SR.GetString(SR.Unable_to_get_cookie_authentication_validation_key, strKey.Length.ToString(CultureInfo.InvariantCulture)), ElementInformation.Properties["validationKey"].Source, ElementInformation.Properties["validationKey"].LineNumber); 391strKey = strKey.Substring(0, strKey.Length - ",IsolateByAppId".Length); 396strKey = strKey.Substring(0, strKey.Length - ",IsolateApps".Length); 417if ((strKey.Length & 1) != 0) 973if (((uint)str.Length & 0x1) == 0x1) // must be 2 nibbles per byte 1000byte[] result = new byte[str.Length / 2]; 1100_CustomValidationName = _CustomValidationName.Substring(ALGO_PREFIX.Length); 1185s_oSymAlgoDecryption = SymmetricAlgorithm.Create(Decryption.Substring(ALGO_PREFIX.Length));
Configuration\MetabaseServerConfig.cs (7)
176string appPath = appAboPath.Substring(rootAboPath.Length); 206result = result.Substring(0, result.Length - 1); 251if (path.VirtualPathString.Length > 1) { 255if (parentPath.Length > 1 && StringUtil.StringEndsWith(parentPath, '/')) { // Trim the extra trailing / if there is one 256vParent = VirtualPath.Create(parentPath.Substring(0, parentPath.Length - 1)); 341int l = path.Length; 458StringBuilder buf = new StringBuilder(aboPath.Length + 1);
Configuration\PassportAuthentication.cs (1)
139(elem.RedirectUrl.Length > 1 && elem.RedirectUrl[1] == ':')) {
Configuration\ProcessHostMapPath.cs (5)
248if (path.VirtualPathString.Length > 1) { 252if (parentPath.Length > 1 && StringUtil.StringEndsWith(parentPath, '/')) { // Trim the extra trailing / if there is one 253vParent = VirtualPath.Create(parentPath.Substring(0, parentPath.Length - 1)); 278if (physicalPath != null && physicalPath.Length == 2 && physicalPath[1] == ':') 335result = result.Substring(0, result.Length - 1);
Configuration\ProcessHostServerConfig.cs (10)
120int lenNoTrailingSlash = vpath.Length; 124int lenAppRoot = appRoot.Length; 139if (subVdir != null && subVdir.Length > appRootRelativePath.Length) { 140if (appRootRelativePath.Length == 0) { 145else if (StringUtil.EqualsIgnoreCase(appRootRelativePath, 0, subVdir, 0, appRootRelativePath.Length)) { 146int nextSlashIndex = subVdir.IndexOf('/', 1 + appRootRelativePath.Length); 148dirList[dirListCount++] = subVdir.Substring(appRootRelativePath.Length + 1, nextSlashIndex - appRootRelativePath.Length); 151dirList[dirListCount++] = subVdir.Substring(appRootRelativePath.Length + 1);
Configuration\RegexWorker.cs (2)
69sb.Append(from, startIndex, from.Length - startIndex); 73if (output.Length == 0) {
Configuration\RemoteWebConfigurationHost.cs (3)
123if (parts[i].Length == 0) { 189return configPath.Length <= _ConfigPath.Length;
Configuration\TrustLevel.cs (2)
89if (PolicyFile.Length > 1) { 119if (PolicyFile.Length > 1) {
Configuration\UserMapPath.cs (2)
125int l = mapping.VirtualDirectory.Length; 126if (path.Length == l) {
Configuration\VirtualDirectoryMapping.cs (1)
82physicalDirectory = physicalDirectory.Substring(0, physicalDirectory.Length - 1);
Configuration\WebConfigurationHost.cs (20)
300return configPath.Length == MachineConfigPath.Length; 304return configPath.Length == RootWebConfigPath.Length; 309return configPath.Length > RootWebConfigPath.Length; 317char last = site[site.Length - 1]; 333int indexStart = RootWebConfigPath.Length + 1; 356int indexStart = RootWebConfigPath.Length + 1; 360length = configPath.Length - indexStart; 394if (virtualPath.Length > 1) { 569return configPath.Length <= MachineConfigPath.Length; 572return configPath.Length <= RootWebConfigPath.Length; 578(configPath.Length <= _appConfigPath.Length) || 754&& (sectionGroupName.Length == SysWebName.Length || sectionGroupName[SysWebName.Length] == '/')) {
CrossSiteScriptingValidation.cs (2)
104int len = s.Length; 141if (n == s.Length-1) return false;
DataAccess\ADConnectionHelper.cs (1)
21Debug.Assert ((objectDN != null) && (objectDN.Length != 0));
DataAccess\SqlConnectionHelper.cs (4)
72System.Web.Util.Debug.Assert((specifiedConnectionString != null) && (specifiedConnectionString.Length != 0)); 73if (specifiedConnectionString == null || specifiedConnectionString.Length < 1) 145int startPos = strUpper.IndexOf(s_strUpperDataDirWithToken, StringComparison.Ordinal) + s_strUpperDataDirWithToken.Length; 222if (strippedFileName.Length > 30)
ErrorFormatter.cs (7)
292wmlContentType, 0, wmlContentType.Length, 318if (miscTitle != null && miscTitle.Length > 0) { 1036if (e.Message != null && e.Message.Length > 0) 1506if (linestr.Length < 3) 1507sb.Append(' ', 3 - linestr.Length); 1773if (number.Length < 5) { 1774sb.Append(' ', 5 - number.Length);
FileChangesMonitor.cs (20)
956int dirNameLength = indexStart + HttpRuntime.LocalResourcesDirectoryName.Length; 959if (fileName.Length == dirNameLength || fileName[dirNameLength] == Path.DirectorySeparatorChar) { 1035Debug.Assert((int) action >= 1 && fileName != null && fileName.Length > 0, 1505&& fullPathName.Length > _appPathInternal.Length+1 1507&& fullPathName[_appPathInternal.Length] == Path.DirectorySeparatorChar) { 1568if (dirName.Length == specialDirName.Length) { 1572else if (dirName.Length > specialDirName.Length && dirName[specialDirName.Length] == Path.DirectorySeparatorChar) { 1711if (alias.Length == 0 || !UrlPath.IsAbsolutePhysicalPath(alias)) { 1723file = fullPathName.Substring(_appPathInternal.Length+1); 1809if (alias.Length == 0 || !UrlPath.IsAbsolutePhysicalPath(alias)) { 1818file = fullPathName.Substring(_appPathInternal.Length+1); 2005dirToListenTo = dirRootSubDir.Substring(_appPathInternal.Length+1); 2117if (alias.Length == 0 || !UrlPath.IsAbsolutePhysicalPath(alias)) { 2175if (alias.Length == 0 || !UrlPath.IsAbsolutePhysicalPath(alias)) { 2217if (alias.Length == 0 || !UrlPath.IsAbsolutePhysicalPath(alias)) { 2243if (alias.Length == 0 || !UrlPath.IsAbsolutePhysicalPath(alias)) {
Handlers\AssemblyResourceLoader.cs (4)
556if (cultureString.Length > 0) { 565byte[] tokenBytes = new byte[token.Length / 2]; 670if (embeddedResourceName.Length > 0) { 682newContent.Append(content.Substring(startIndex, content.Length - startIndex));
Handlers\TraceHandler.cs (3)
231int vrootLen = vroot.Length; 389if (control.Length == 0) 547AddCell(trow, (temp.Length != 0) ? temp : "&nbsp;");
Hosting\AppDomainFactory.cs (1)
203if (virtPath.Length <= 1) { // root?
Hosting\ApplicationManager.cs (5)
1032if (element.Key != null && element.Key.Length > _clrQuirkAppSettingsAppContextPrefix.Length && element.Key.StartsWith(_clrQuirkAppSettingsAppContextPrefix, StringComparison.OrdinalIgnoreCase)) { 1039clrQuirks[element.Key.Substring(_clrQuirkAppSettingsAppContextPrefix.Length)] = value; 1329for (int i = 0; i < publicKey.Length; i++) { 1342int publicKeySize = publicKeyString.Length / 2;
Hosting\HostingEnvironment.cs (6)
1112result = result.Substring(0, result.Length - 1); 1685else if (path.Length > appPath.Length && path[appPath.Length] == '/' && 1783if (gs.Culture != null && gs.Culture.Length > 0) { 1791if (gs.UICulture != null && gs.UICulture.Length > 0) {
Hosting\IIS7WorkerRequest.cs (6)
167int lengthDiff = _path.Length - _filePath.Length; 169_pathInfo = _path.Substring(_filePath.Length); 170int pathTranslatedLength = _pathTranslated.Length - lengthDiff; 216_appPathTranslated.Length > 2 && 1251int l = (s != null) ? s.Length : 0;
Hosting\ISAPIApplicationHost.cs (2)
167if (virtualPath.Length == 1 && virtualPath[0] == '/') { 178int offset = LMW3SVC_PREFIX.Length;
Hosting\ISAPIWorkerRequest.cs (9)
141int l = s.Length; 726int l = (s != null) ? s.Length : 0; 1010if (_appPathTranslated != null && _appPathTranslated.Length > 2 && !StringUtil.StringEndsWith(_appPathTranslated, '\\')) 1039_path = (_pathInfo.Length > 0) ? (_filePath + _pathInfo) : _filePath; 1900switch (name.Length) { 2116int lengthDiff = _path.Length - _filePath.Length; 2118_pathInfo = _path.Substring(_filePath.Length); 2119int pathTranslatedLength = _pathTranslated.Length - lengthDiff;
Hosting\ProcessHostSupportFunctionsExtensions.cs (4)
25StringBuilder fullVirtualPath = new StringBuilder(appVirtualPath.Length + relativePath.Length + 2 /* for slashes */); 39if (relativePath.Length > 0) { 41fullVirtualPath.Append(relativePath, 1, relativePath.Length - 1);
Hosting\SimpleWorkerRequest.cs (2)
209String appPath = _appPhysPath.Substring(0, _appPhysPath.Length-1); // without trailing "\" 215mappedPath = appPath + path.Substring(_appVirtPath.Length).Replace('/', '\\');
HttpApplication.cs (2)
1296if (index != 0 && index < vpath.Length) { 2667if((culture.Length > 5) && (culture.IndexOf(':') == 4)) {
HttpApplicationFactory.cs (1)
274if (j <= 0 || j > name.Length-1)
HttpCacheParams.cs (3)
52if (parameters[0].Length == 0) { 139if (header.Length == 0) { 153if (header.Length == 0) {
HttpCachePolicy.cs (1)
372return _varyByParamValues != null && _varyByParamValues[0].Length == 0;}}
HttpClientCertificate.cs (4)
284while (iStart < strAllL.Length) { 288if (strReturn.Length > 0) 291iStart += strSubject.Length + 1; 301iEnd = strAll.Length;
HttpContext.cs (5)
496int idxStartEurl = path.Length - eurl.Length; 497bool hasTrailingSlash = (path[path.Length - 1] == '/'); 502&& StringUtil.Equals(path, idxStartEurl, eurl, 0, eurl.Length)) { 1542qs = (iqs < path.Length-1) ? path.Substring(iqs+1) : String.Empty;
HttpCookie.cs (3)
90if (config.Domain != null && config.Domain.Length > 0) 386while (dividerIndex >= 0 && dividerIndex < input.Length - 1) { 393string attributeValue = assignmentIndex >= 0 && assignmentIndex < cookieAv.Length - 1 ? cookieAv.Substring(assignmentIndex + 1).Trim() : null;
HttpRequest.cs (19)
309int l = (s != null) ? s.Length : 0; 650int l = (s != null) ? s.Length : 0; 714int l = (s != null) ? s.Length : 0; 735if (cookieString.Length == 0) 745if (name != null && name.Length > 0 && name[0] == '$') { 835int l = headerValue.Length; 836int k = attrName.Length; 1187switch (method.Length) { 1539int filePathLen = _context.GetFilePathData().Path.VirtualPathStringNoTrailingSlash.Length; 1543int pathLength = path.Length; 1629int pathLength = path.VirtualPathString.Length; 1631int filePathLength = filePath.VirtualPathString.Length; 2088if (_queryStringText.Length > 0 && !AppSettings.UseLegacyRequestUrlGeneration) 2167return (QueryStringText.Length > 0); 2620if (requestUrl.Length > runtimeSection.MaxUrlLength) { 2623if (QueryStringText.Length > runtimeSection.MaxQueryStringLength) { 2708if (endIndex >= value.Length) { 2709endIndex = value.Length; 3021realPath = realPath.Substring(0, realPath.Length - 1);
HttpResponse.cs (18)
483if (charset.Length > 0) { // not suppressed 1293if (e.Message != null && e.Message.Length > 0) 1560if (value != null && value.Length > 512) // ASURT 124743 2986if (i < path.Length - 1) { 3204appPathModifier.Length == 0 || 3206appPathModifier[appPathModifier.Length - 1] == '/')) { 3248int compareLength = appPath.Length; 3249bool isVirtualPathShort = (virtualPath.Length == appPath.Length - 1); 3255if (virtualPath.Length < compareLength) { 3267Debug.Assert(virtualPath.Length >= appPath.Length); 3268if (virtualPath.Length == appPath.Length) { 3269virtualPath = virtualPath.Substring(0, appPath.Length) + _appPathModifier + "/"; 3273virtualPath.Substring(0, appPath.Length) + 3276virtualPath.Substring(appPath.Length); 3294return virtualPath.Substring(0, pos-1) + virtualPath.Substring(pos + _appPathModifier.Length);
httpserverutility.cs (4)
777qs = (iqs < path.Length-1) ? path.Substring(iqs+1) : String.Empty; 1167int cb = s.Length; 1197int cb = s.Length; 1289if (query.Length > 0 && query[0] == '?') {
HttpServerVarsCollection.cs (2)
108if (name != null && name.Length > 1 && _request != null) { 243string headerName = name.Substring("HTTP_".Length);
HttpValueCollection.cs (1)
160int l = (s != null) ? s.Length : 0;
HttpWriter.cs (7)
563int cch = s.Length; 1668if (s.Length == 0) { 1671else if (s.Length < _charBufferFree) { 1674StringUtil.UnsafeStringCopy(s, 0, buffer, _charBufferLength - _charBufferFree, s.Length); 1675_charBufferFree -= s.Length; 1678int count = s.Length; 1719if (index + count > s.Length) {
Management\EventlogProvider.cs (6)
35_maxTruncatedParamLen = EventLogParameterMaxLength - _truncateWarning.Length; 135totalLength += msg.Length; 142if (stackTrace.Length > remainingSpace) { 147totalLength += stackTrace.Length + 1; 241int len = ((string)field).Length; 269int len = s.Length;
Management\regiisutil.cs (6)
275if (appVPath.Length > 2 && appVPath[1] == ':') 322if (containerName == null || containerName.Length < 1) { 349if (containerName == null || containerName.Length < 1) { 366if (containerName == null || containerName.Length < 1) { 380if (containerName == null || containerName.Length < 1) { 390if (containerName == null || containerName.Length < 1) {
Management\SimpleMailWebEventProvider.cs (1)
172details.Length > _maxEventLength) {
Management\SqlServices.cs (2)
509if (database.Length == 0) 549return database.Substring(1, database.Length-2);
Management\SqlWebEventProvider.cs (2)
56if (_sqlConnectionString == null || _sqlConnectionString.Length < 1) { 166details.Length > _maxEventDetailsLength) {
Management\TemplatedMailWebEventProvider.cs (1)
73if (_templateUrl.Length == 0) {
MimeMapping.cs (1)
78for (int i = 0; i < fileName.Length; i++) {
ModelBinding\DictionaryHelpers.cs (3)
17if (key.Length <= prefix.Length) { 25char charAfterPrefix = key[prefix.Length];
ModelBinding\ModelBinderUtil.cs (3)
18return (parentName.Length == 0) ? "[" + index + "]" : parentName + "[" + index + "]"; 72if (s.Length != 0) { 73for (int i = 0; i < s.Length; i++) {
ModelBinding\PrefixContainer.cs (7)
29if (prefix.Length == 0) { 41if (prefix.Length == 0) { 45if (prefix.Length > testString.Length) { 53if (testString.Length == prefix.Length) { 58switch (testString[prefix.Length]) {
ModelBinding\ValueProviderResult.cs (1)
52if (valueAsString != null && valueAsString.Trim().Length == 0) {
MultipartContentParser.cs (3)
156i1 += pattern.Length; 157if (i1 >= l.Length) 173i2 = l.Length;
OutputCacheModule.cs (7)
146sb = new StringBuilder(OUTPUTCACHE_KEYPREFIX_POST, path.Length + OUTPUTCACHE_KEYPREFIX_POST.Length); 149sb = new StringBuilder(OUTPUTCACHE_KEYPREFIX_GET, path.Length + OUTPUTCACHE_KEYPREFIX_GET.Length); 392int codingLength = coding.Length; 393int acceptEncodingLength = acceptEncoding.Length; 438tokenEnd = acceptEncoding.Length;
parent\parent\parent\misc\ConfigPathUtility.cs (2)
32for (int examine = 0; examine <= configPath.Length; examine++) { 35if (examine < configPath.Length) {
Profile\HttpProfileBase.cs (3)
244if (inheritsType.Length < 1) 266if (inheritsType == null || inheritsType.Length < 1) 532if (pps.Provider == null || pps.Provider.Length < 1) {
Profile\ProfileModule.cs (2)
175if (names[iter * 4 + 1] == "S" && startPos >= 0 && length > 0 && values.Length >= startPos + length) { 247len = propValue.Length;
Profile\SqlProfileProvider.cs (7)
47if (name == null || name.Length < 1) 63if( _AppName.Length > 256 ) 99if ( value.Length > 256 ) 210if (username == null || username.Length < 1 || properties.Count < 1) 218if (names.Length == 0) 325if (allUsers.Length + usernames[iter].Length + 1 >= 4000)
Routing\ParsedRoute.cs (6)
405return (routePartString.Length > 0); 500if (remainingRequest.Length > 0) { 538int lastIndex = requestPathSegment.Length; 577if ((indexOfLiteral + literalSubsegment.Literal.Length) != requestPathSegment.Length) { 612parameterStartIndex = newLastIndex + lastLiteral.Literal.Length;
Routing\RouteParser.cs (10)
29if ((startIndex + 1 == segment.Length) || 30((startIndex + 1 < segment.Length) && (segment[startIndex + 1] != '{'))) { 49if (parameterName.Length == 0) { 53for (int i = 0; i < parameterName.Length; i++) { 98while (startIndex < segment.Length) { 113if (lastLiteralPart.Length > 0) { 142if (literalPart.Length > 0) { 184while (currentIndex < url.Length) { 189if (finalPart.Length > 0) { 196if (nextPart.Length > 0) {
Security\ADMembershipProvider.cs (33)
335if( appName.Length > 256 ) 367if (username != null && username.Length == 0) 371if (password != null && password.Length == 0) 395if( passwordStrengthRegularExpression.Length != 0 ) 710if (maxPasswordAnswerLength > 0 && encodedPasswordAnswer.Length > maxPasswordAnswerLength) 719if( password.Length < MinRequiredPasswordLength ) 727for( int i = 0; i < password.Length; i++ ) 741if( PasswordStrengthRegularExpression.Length > 0 ) 1049if (maxPasswordAnswerLength > 0 && encodedPasswordAnswer.Length > maxPasswordAnswerLength) 1206if( newPassword.Length < MinRequiredPasswordLength ) 1215for( int i = 0; i < newPassword.Length; i++ ) 1230if( PasswordStrengthRegularExpression.Length > 0 ) 1629if (user.Comment.Length == 0) 1632if (maxCommentLength > 0 && user.Comment.Length > maxCommentLength) 2570if (passwordAnswer.Length < 1) 2573if (maxSize > 0 && passwordAnswer.Length > maxSize) 2582if (password.Trim().Length < 1) 2585if (maxSize > 0 && password.Length > maxSize) 2596if (password.Trim().Length < 1) 2599if (maxSize > 0 && password.Length > maxSize) 2842StringBuilder str = new StringBuilder(2 * filterValue.Length); 2845for (int i = index; i < filterValue.Length; i++) { 2868if ((escapeWildChar) || (!(((filterValue.Length - i) >= 3) && (filterValue[i + 1] == '2') && ((filterValue[i + 2] == 'A') || (filterValue[i + 2] == 'a'))))) 3154if (sValue.Length == 0) 3492Debug.Assert(adspath.Length > 0); 3542Debug.Assert(tempStr.Length > index); 4054if (credentials.UserName.Length == 0 && (credentials.Password == null || credentials.Password.Length == 0)) 4070if (credentials.Password.Length == 0 && (credentials.UserName == null || credentials.UserName.Length == 0)) 4090if ((credentials.UserName == null || credentials.UserName.Length == 0) && (credentials.Password == null || credentials.Password.Length == 0)) 4338Debug.Assert(domainControllerInfo.DomainControllerName.Length > 2);
Security\AnonymousIdentificationModule.cs (5)
230if (context.Request.AnonymousID.Length > MAX_ID_LENGTH) 260if (encValue.Length > MAX_ENCODED_COOKIE_STRING) 357if (data == null || data.Length < 1 || data.Length > MAX_ENCODED_COOKIE_STRING) 371if (id.Length > MAX_ID_LENGTH)
Security\AntiXss\CssEncoder.cs (1)
37StringBuilder builder = EncoderUtil.GetOutputStringBuilder(input.Length, 7 /* worstCaseOutputCharsPerInputChar */);
Security\AntiXss\SafeList.cs (1)
260int valueAsStringLength = value.Length;
Security\AntiXss\UnicodeCharacterEncoder.cs (1)
247StringBuilder builder = EncoderUtil.GetOutputStringBuilder(input.Length, 10 /* worstCaseOutputCharsPerInputChar */);
Security\AntiXss\Utf16StringReader.cs (2)
93if (_currentOffset >= _input.Length) { 101if (_currentOffset < _input.Length) {
Security\AuthStoreRoleProvider.cs (8)
45if ( value.Length > 256 ) 92if (_ScopeName != null && _ScopeName.Length == 0) 96if (_ConnectionString == null || _ConnectionString.Length < 1) 112if( _AppName.Length > 256 ) 136if (username.Length < 1) 150if (username.Length < 1) 554if (appPath == null || appPath.Length < 1) 560string fileName = _ConnectionString.Substring("msxml://".Length).Replace('/', '\\');
Security\CookielessHelper.cs (2)
56if (_Headers.Length == 24 && !_Headers.Contains("(")) { 171if (_Headers.Length > 0)
Security\Cryptography\CryptoUtil.cs (2)
138if (data == null || data.Length % 2 != 0) { 143byte[] binary = new byte[data.Length / 2];
Security\Cryptography\MachineKeyCryptoAlgorithmFactory.cs (1)
97string algorithmName = configAttributeValue.Substring("alg:".Length);
Security\FileAuthorizationModule.cs (1)
521if (_strFile.Length > 0)
Security\FormsAuthentication.cs (15)
136if (String.IsNullOrEmpty(encryptedTicket) || encryptedTicket.Length > MAX_TICKET_LENGTH) 141if ((encryptedTicket.Length % 2) == 0) { // Could be a hex string 486if (strCookiePath == null || strCookiePath.Length < 1) 503if (strTicket == null || strTicket.Length < 1) 703if (_LoginUrl.Length == 0 || (_LoginUrl[0] != '/' && _LoginUrl.IndexOf("//", StringComparison.Ordinal) < 0)) 716if (_DefaultUrl.Length == 0 || (_DefaultUrl[0] != '/' && _DefaultUrl.IndexOf("//", StringComparison.Ordinal) < 0)) 744if (pos < loginUrl.Length -1) 877RemoveQSVar(ref strUrl, posQ, token, amp, amp.Length); 880RemoveQSVar(ref strUrl, posQ, token, amp, question.Length); 887RemoveQSVar(ref strUrl, posQ, token, amp, amp.Length); 890RemoveQSVar(ref strUrl, posQ, token, amp, question.Length); 900int end = strUrl.IndexOf(sep, pos + token.Length, StringComparison.Ordinal) + sep.Length; 901if (end < sep.Length || end >= strUrl.Length)
Security\FormsAuthenticationModule.cs (6)
146if(cookielessTicket && ticket2.CookiePath != "/" && ticket2.CookiePath.Length > 1) { 274if (loginUrl == null || loginUrl.Length <= 0) 313if (iIndex >= 0 && iIndex < strUrl.Length - 1) { 354if (encValue != null && encValue.Length > 1) { 392if (encValue != null && encValue.Length > 1) { 411if (encValue != null && encValue.Length > 1) {
Security\FormsAuthenticationTicketSerializer.cs (3)
266byte[] bytes = new byte[value.Length * 2]; 267for (int i = 0; i < value.Length; i++) { 273Write7BitEncodedInt(value.Length);
Security\MachineKey.cs (1)
66if ((encodedData.Length % 2) != 0)
Security\MembershipPasswordAttribute.cs (1)
180if (valueAsString.Length < MinRequiredPasswordLength) {
Security\PassportAuthenticationModule.cs (3)
178if ( _LoginUrl==null || _LoginUrl.Length < 1 || String.Compare(_LoginUrl, "internal", StringComparison.Ordinal) == 0) { 205if (redirectUrl == null || redirectUrl.Length <= 0) 227if (iIndex >= 0 && iIndex < strUrl.Length-1)
Security\PassportIdentity.cs (13)
80if (strACookie.Length > 1) 84if (strPCookie.Length > 1) { 113for(int iStart = 0; iStart < strResponseHeaders.Length;) 117iEnd = strResponseHeaders.Length; 143if (strIn == null || strIn.Length < 1) 156string str3 = strIn.Substring(iPos2, strIn.Length-iPos2); 817if (str == null || str.Length < 1) 825if (str != null && str.Length > 0 && str.IndexOf("Passport", StringComparison.Ordinal) >= 0) { 1011if (sCookieDomainsV[iter] != null && sCookieDomainsV[iter].Length > 0) 1013if (sCookiePathsV[iter] != null && sCookiePathsV[iter].Length > 0) 1036if (strRU != null && strRU.Length > 1) 1099int iSize = ((strData == null || strData.Length < 512) ? 512 : strData.Length);
Security\RoleManagerModule.cs (2)
112if (cookieValue != null && cookieValue.Length > MAX_COOKIE_LENGTH) { 177if (string.IsNullOrEmpty(s) || s.Length > MAX_COOKIE_LENGTH) {
Security\RolePrincipal.cs (1)
420info.AddValue("_AllRoles", allRoles.Substring(0, allRoles.Length - 1));
Security\Roles.cs (3)
105if (username.Length < 1) 140if (username.Length < 1) { 426if (CookieName == null || CookieName.Length < 1)
Security\SQLMembershipProvider.cs (12)
75if (value.Length > 256) 134if( _PasswordStrengthRegularExpression.Length != 0 ) 158if( _AppName.Length > 256 ) 254if ( pass.Length > 128 ) 267if( passwordAnswer.Length > 128 ) 313if( password.Length < MinRequiredPasswordLength ) 321for( int i = 0; i < password.Length; i++ ) 335if( PasswordStrengthRegularExpression.Length > 0 ) 560if( newPassword.Length < MinRequiredPasswordLength ) 569for( int i = 0; i < newPassword.Length; i++ ) 584if( PasswordStrengthRegularExpression.Length > 0 ) 594if ( pass.Length > 128 )
Security\SQLRoleProvider.cs (12)
68if( _AppName.Length > 256 ) 105if (username.Length < 1) 163if (username.Length < 1) 409if (allUsers.Length + usernames[iter].Length + 1 >= 4000) 422if (allRoles.Length + roleNames[iter].Length + 1 >= 4000) 525if (allUsers.Length + usernames[iter].Length + 1 >= 4000) 536if (allRoles.Length + roleNames[iter].Length + 1 >= 4000) 826if ( _AppName.Length > 256 )
Security\WindowsAuthenticationModule.cs (2)
147if (strLogonUser.Length == 0 && (strAuthType.Length == 0 ||
Security\WindowsTokenRoleProvider.cs (6)
36if ( _AppName.Length > 256 ) 58if( _AppName.Length > 256 ) 77if (username.Length < 1) 91if (username.Length < 1) 110if (username.Length < 1) 130int len = computerName.Length;
SiteMapProvider.cs (1)
156if (qs.Length > 0) {
State\OutOfProcStateClientManager.cs (2)
152for (int i = 0; i < server.Length; ++i) { 199stateConnectionString = stateConnectionString.Substring("tcpip=".Length);
State\SessionIDManager.cs (3)
105s_iSessionId = s_appPath.Length; 195if (id.Length > SESSION_ID_LENGTH_LIMIT) { 436if (s == null || s.Length != ID_LENGTH_CHARS)
State\sqlstateclientmanager.cs (1)
419Debug.Assert(id.Length <= SessionIDManager.SESSION_ID_LENGTH_LIMIT, "id.Length <= SessionIDManager.SESSION_ID_LENGTH_LIMIT");
StaticFileHandler.cs (11)
87if (physicalPath[physicalPath.Length-1] == '.') { 181Debug.Assert(startIndex < rangeHeader.Length, "startIndex < rangeHeader.Length"); 190startIndex = rangeHeader.Length; 196if (startIndex < rangeHeader.Length && rangeHeader[startIndex] == '-') { 221if (startIndex < rangeHeader.Length && rangeHeader[startIndex] == '-') { 257if (startIndex < s.Length) { 280while (startIndex < s.Length && s[startIndex] == ' ') { 286while (startIndex < s.Length && s[startIndex] <= '9' && s[startIndex] >= '0') { 347if (ifRangeHeader != null && ifRangeHeader.Length > 1) { 373if (indexOfEquals == -1 || indexOfEquals == rangeHeader.Length - 1) { 388while (startIndex < rangeHeader.Length && isRangeHeaderSyntacticallyValid) {
StaticSiteMapProvider.cs (2)
185if (rawUrl.Length == 0) { 275if (url != null && url.Length > 0 && UrlTable.Contains(url)) {
StringResourceManager.cs (1)
103fAsciiOnly = (size == s.Length);
UI\BatchParser.cs (6)
140if (textPos == text.Length) 175if (textPos == text.Length) 188if (filename.Length == 0) return; 307bool fHasEqual = (equalsign[i].ToString().Length > 0); 335if (value.Length > 0) { 356if (PagesConfig.MasterPageFileInternal != null && PagesConfig.MasterPageFileInternal.Length != 0)
UI\ChtmlTextWriter.cs (2)
144if (null == text || text.Length == 0) { 148int length = text.Length;
UI\ClientScriptManager.cs (5)
302else if (argument.Length == 0) { 308else if (context.Length == 0) { 469if (options.ValidationGroup != null && options.ValidationGroup.Length > 0) { 480if (options.ActionUrl != null && options.ActionUrl.Length > 0) { 924int index = script.Length - 1;
UI\Control.cs (6)
543if (value != null && value.Length == 0) 1340if (uniqueIDPrefix.Length == 0) { 1372return UniqueID.Substring(control.NamingContainer.UniqueID.Length + 1); // add 1 for the ID seperator (which is a char) 2410return Util.SerializeWithAssert(new ObjectStateFormatter(), state).Length; 2992if ((relativeUrl.Length == 0) || (UrlPath.IsRelativeUrl(relativeUrl) == false)) { 3045if ((relativeUrl.Length == 0) || (!UrlPath.IsRelativeUrl(relativeUrl))) {
UI\ControlBuilder.cs (11)
1084if (filter.Length > 0) { 1245if (s.Length != 0) { 1846if (entry.Filter.Length > 0) 1932if (pca != null && pca.DefaultProperty.Length != 0) { 2716if (formatString.Length > 0) { 2763if (expressionPrefix.Length == 0) { 2766if (expressionCode.Length == 0) { 2890if (entry.Filter.Length > 0) 3292if ((entry2.Filter != null) && (entry2.Filter.Length > 0)) { 3309string filter1 = (entry1.Filter.Length == 0) ? "Default" : entry1.Filter; 3310string filter2 = (entry2.Filter.Length == 0) ? "Default" : entry2.Filter;
UI\ControlIdConverter.cs (1)
58control.ID.Length > 0 &&
UI\ControlRenderingHelper.cs (2)
15if (skipLinkText.Length != 0 && !designMode) { 44if (skipLinkText.Length != 0 && !designMode) {
UI\CssStyleCollection.cs (1)
212if (name.Length != 0) {
UI\CssTextWriter.cs (1)
439int urlLength = url.Length - 4;
UI\DataBinder.cs (6)
72if (expression.Length == 0) { 231if (index.Length != 0) { 232if (((index[0] == '"') && (index[index.Length - 1] == '"')) || 233((index[0] == '\'') && (index[index.Length - 1] == '\''))) { 234indexValue = index.Substring(1, index.Length - 2); 260if ((propName != null) && (propName.Length != 0)) {
UI\DataBinding.cs (1)
51Debug.Assert((value != null) && (value.Length != 0),
UI\DataSourceCache.cs (1)
220if (KeyDependency.Length > 0) {
UI\DataSourceCacheDurationConverter.cs (1)
43if (textValue.Length == 0) {
UI\EventValidationStore.cs (4)
54int stringLength = (s != null) ? s.Length : 0; 62for (int i = 0; i < s.Length; i++) { 102int targetStringLength = (target != null) ? target.Length : 0; // null and empty 'target' treated equally 103int argumentStringLength = (argument != null) ? argument.Length : 0; // null and empty 'argument' treated equally
UI\Html32TextWriter.cs (2)
429value = value.Substring(4,value.Length-5); 436value = value.Substring(4,value.Length-5);
UI\HtmlControls\HtmlControl.cs (1)
276if (s != null && s.Length == 0)
UI\HtmlControls\HtmlHead.cs (3)
289if (cssClass.Length != 0) { 315if (selector.Length == 0) { 352else if (style.RegisteredCssClass.Length != 0) {
UI\HtmlControls\HtmlInputFile.cs (1)
215if (form != null && form.Enctype.Length == 0) {
UI\HtmlControls\HtmlInputImage.cs (2)
291postX.Length > 0 && postY.Length > 0) {
UI\HtmlControls\HtmlInputRadioButton.cs (1)
102if (val.Length != 0)
UI\HtmlControls\HtmlSelect.cs (7)
237return (DataSourceID.Length > 0); 526if (dataSourceID.Length != 0) { 575if (RequiresDataBinding && DataSourceID.Length > 0) { 645if ((textField.Length != 0) || (valueField.Length != 0)) 652if (textField.Length > 0) { 655if (valueField.Length > 0) {
UI\HtmlForm.cs (2)
403if (formOnSubmit.Length > 0) { 426if (DefaultButton.Length > 0) {
UI\HTMLTextWriter.cs (2)
1261int length = text.Length; 1280int length = text.Length;
UI\LOSFormatter.cs (1)
58if (s != null && s.Length != 0)
UI\MasterPageParser.cs (1)
94if (value.Length > 0) {
UI\MinimizableAttributeTypeConverter.cs (1)
27if ((strValue.Length > 0) && !String.Equals(strValue, "false", StringComparison.OrdinalIgnoreCase)) {
UI\ObjectPersistData.cs (1)
146Debug.Assert((entry.Name != null) && (entry.Name.Length > 0));
UI\ObjectStateFormatter.cs (4)
229Encoding.Unicode.GetBytes(viewStateUserKey, 0, viewStateUserKey.Length, _macKeyBytes, 4); 251Debug.Assert((s != null) && (s.Length != 0)); 280Debug.Assert((s != null) && (s.Length != 0)); 902if (s.Length == 0) {
UI\Page.cs (16)
84_firstLiteralLineNumber = Parser._lineNumber - Util.LineCount(text, iFirstNonWhiteSpace, text.Length); 2201int numFullChunks = ClientState.Length / MaxPageStateFieldLength; 2209if (curPos < state.Length) { 2329if (ClientSupportsFocus && Form != null && (RenderFocusScript || (Form.DefaultFocus.Length > 0) || (Form.DefaultButton.Length > 0))) { 2333if (FocusedControlID.Length > 0) { 2341else if (ValidatorInvalidControl.Length > 0) { 2345else if (LastFocusedControl.Length > 0) { 2350else if (Form.DefaultFocus.Length > 0) { 2355else if (Form.DefaultButton.Length > 0) { 2361if (focusedControlId.Length > 0 && !CrossSiteScriptingValidation.IsDangerousString(focusedControlId, out match) && 2542if ((clientID == null) || (clientID.Trim().Length == 0)) { 3554if (cacheSettings.CacheProfile != null && cacheSettings.CacheProfile.Length != 0) 5390for (int i = 0; i < index.Length; i++) { 5405Response.Write(validation.Length.ToString(CultureInfo.InvariantCulture)); 6224else if (validationGroup.Length == 0) {
UI\PageAdapter.cs (1)
162if ((accessKey != null) && (accessKey.Length > 1)) {
UI\PageParser.cs (6)
182if (_configMasterPageFile.Length > 0) { 230if (PagesConfig.ThemeInternal != null && PagesConfig.Theme.Length != 0) 233if (PagesConfig.StyleSheetThemeInternal != null && PagesConfig.StyleSheetThemeInternal.Length != 0) 236if (PagesConfig.MasterPageFileInternal != null && PagesConfig.MasterPageFileInternal.Length != 0) { 529if (value.Length > 0) { 538if (deviceName.Length > 0) {
UI\PageThemeParser.cs (1)
88directiveName.Length == 0 ||
UI\PropertyConverter.cs (1)
70if (objType.Equals(typeof(bool)) && value.Length == 0) {
UI\PropertyMapper.cs (3)
47while (startIndex < mappedName.Length) { // parse thru dots of object model to locate PropertyInfo 53startIndex = mappedName.Length; 146while (startIndex < mappedName.Length) {
UI\SimpleWebHandlerParser.cs (2)
269bool fHasEqual = (equalsign[i].ToString().Length > 0); 336if (directiveName.Length == 0)
UI\SkinBuilder.cs (1)
179if (expressionPrefix.Length == 0) {
UI\SqlDataSourceCache.cs (1)
44if (sqlCacheDependency.Length > 0 && !String.Equals(sqlCacheDependency, Sql9CacheDependencyDirective, StringComparison.OrdinalIgnoreCase)) {
UI\TagNameToTypeMapper.cs (1)
497if (colonIndex == tagName.Length-1)
UI\TemplateControlParser.cs (2)
336if (!fHasDuration && (outputCacheProfile == null || outputCacheProfile.Length == 0) && FDurationRequiredOnOutputCache) 357(outputCacheProfile == null || outputCacheProfile.Length == 0) &&
UI\TemplateParser.cs (15)
975if (textPos == text.Length) 1012if (directiveName.Length == 0 && _codeFileVirtualPath != null) { 1143if (textPos == text.Length) 1303_lineNumber -= Util.LineCount(literal, iFirstNonWhiteSpace, literal.Length); 1338_lineNumber -= Util.LineCount(literal, iFirstNonWhiteSpace, literal.Length); 1728if (directiveName.Length == 0) 1741if (directiveName.Length == 0) { 2001if (deviceName.Length > 0) { 2264if (text.Length > textPos+1 && text[textPos+1] == '%') { 2414if (filename.Length == 0) { 2514for (int i = 0; i < code.Length && Char.IsWhiteSpace(code[i]); i++) { 2536for (int i = code.Length - 1; i >= 0 && Char.IsWhiteSpace(code[i]); i--) { 2702fHasEqual = (equalsign[i].ToString().Length > 0); 2745if (fDirective && directiveName.Length > 0 && filter.Length > 0) {
UI\TraceContext.cs (7)
308StringBuilder str = new StringBuilder(message.Length + eMsg.Length + eTrace.Length); 565int size = (cookies[i].Name == null) ? 0 : cookies[i].Name.Length; 566size += (cookies[i].Value == null) ? 0 : cookies[i].Value.Length; 595int size = (cookies[i].Name == null) ? 0 : cookies[i].Name.Length; 596size += (cookies[i].Value == null) ? 0 : cookies[i].Value.Length;
UI\Util.cs (18)
136if (tpi.TagName != null && tpi.TagName.Length != 0) { 481if (themeName.Length > 0) { 668if (value.Length == 0) { 745if (deviceName.Length > 0) { 989return (s.Trim().Length == 0); 996for (int i=s.Length-1; i>=0; i--) { 1008for (int i=0; i<s.Length; i++) { 1053for (int i = 0; i < s.Length; i++) { 1361return fileName.Substring(0, fileName.Length-4); 1430for (int i=0; i<value.Length; i++) { 1434b = new StringBuilder(value.Length+5); 1448b = new StringBuilder(value.Length+5); 1462b = new StringBuilder(value.Length+5); 1476b = new StringBuilder(value.Length+5); 1490b = new StringBuilder(value.Length+5); 1504b = new StringBuilder(value.Length+5); 1519b = new StringBuilder(value.Length + 6); 1636int length = value.Length;
UI\WebControls\AccessDataSource.cs (2)
196if (filename.Length > 0) { 226if (filename.Length == 0) {
UI\WebControls\Adapters\MenuAdapter.cs (23)
57for (int i = 0; i < path.Length; i++) { 61if (i + 1 < path.Length && path[i + 1] == '\\') { 63b = new StringBuilder(path.Length + 5); 79b = new StringBuilder(path.Length + 5); 149if (owner.SkipLinkText.Length != 0) { 175if (styleClass.Trim().Length > 0) { 244if (Control.SkipLinkText.Length != 0) { 254if (expandImageUrl.Length > 0) { 280owner.StaticPopOutImageTextFormatString.Length != 0) { 288owner.DynamicPopOutImageTextFormatString.Length != 0) { 317if (depth < owner.StaticDisplayLevels && owner.StaticTopSeparatorImageUrl.Length != 0) { 320else if (depth >= owner.StaticDisplayLevels && owner.DynamicTopSeparatorImageUrl.Length != 0) { 346if (styleClass.Trim().Length > 0) { 355if (item.ToolTip.Length != 0) { 392if (imageUrl.Length > 0 && item.NotTemplated()) { 395if (toolTip.Length != 0) { 417string itemAccessKey = ((position == 0 || (position == 1 && depth == 0)) && accessKey.Length != 0) ? 420if (navigateUrl.Length > 0 && !clickOpensThisNode) { 529if (item.SeparatorImageUrl.Length != 0) { 532else if ((depth < owner.StaticDisplayLevels) && (owner.StaticBottomSeparatorImageUrl.Length != 0)) { 535else if ((depth >= owner.StaticDisplayLevels) && (owner.DynamicBottomSeparatorImageUrl.Length != 0)) { 586if (eventArgument.Length == 0) { 601for (int i = 0; i < newPath.Length; i++) {
UI\WebControls\AdRotator.cs (10)
129if (_baseUrl.Length == 0) { 292int numOfDataSources = ((AdvertisementFile.Length > 0) ? 1 : 0); 293numOfDataSources += ((DataSourceID.Length > 0) ? 1 : 0); 634Debug.Assert(keywordFilter != null && keywordFilter.Length > 0); 667if (_adRecs == null && AdvertisementFile.Length > 0) { 722if (AdvertisementFile.Length > 0) { 816string altTextKey = (AlternateTextField.Length != 0) 819if (altText != null && altText.Length == 0) { 852(relativeUrl.Length == 0) || 855(baseUrl.Length == 0)) {
UI\WebControls\AutoGeneratedField.cs (2)
181if (DataField.Length != 0 && (rowState & DataControlRowState.Edit) != 0) { 185else if (DataField.Length != 0) {
UI\WebControls\basecomparevalidator.cs (1)
308if (text.Length == 0) {
UI\WebControls\BaseDataBoundControl.cs (1)
122return (DataSourceID.Length > 0);
UI\WebControls\BaseDataList.cs (3)
319return (DataSourceID.Length > 0); 411if (dataSourceID.Length != 0) { 495if (RequiresDataBinding && DataSourceID.Length > 0) {
UI\WebControls\BaseValidator.cs (5)
350if (ControlToValidate.Length > 0) { 356if (ErrorMessage.Length > 0) { 369if (ValidationGroup.Length > 0) { 451if (controlToValidate.Length == 0) { 750if (Text.Trim().Length > 0) {
UI\WebControls\BoundColumn.cs (5)
117if (formatting.Length == 0) { 159if (DataField.Length != 0) { 173if (boundField.Length != 0) { 193Debug.Assert(DataField.Length != 0, "Shouldn't be DataBinding without a DataField"); 223if (dataValue.Length == 0) {
UI\WebControls\BoundField.cs (8)
366if ((value is string) && (((string)value).Length == 0) && ConvertEmptyStringToNull) { 370if (value is string && (string)value == nullDisplayText && nullDisplayText.Length > 0) { 394int dataValueStringLength = dataValueString.Length; 405else if (formatting.Length == 0) { 460Debug.Assert(DataField.Length != 0, "Shouldn't be DataBinding without a DataField"); 579if (DataField.Length != 0 && (rowState & DataControlRowState.Edit) != 0) { 583else if (DataField.Length != 0) { 608if (dataValue.Length == 0) {
UI\WebControls\BulletedList.cs (1)
450if (s.Length > 0) {
UI\WebControls\Button.cs (1)
314if (onClick.Length > 0) {
UI\WebControls\ButtonColumn.cs (3)
200if (formatting.Length == 0) { 249if (DataTextField.Length != 0) { 261Debug.Assert(DataTextField.Length != 0, "Shouldn't be DataBinding without a DataTextField");
UI\WebControls\ButtonField.cs (3)
179if (formatting.Length == 0) { 258if (DataTextField.Length != 0 && Visible) { 270Debug.Assert(DataTextField.Length != 0, "Shouldn't be DataBinding without a DataTextField");
UI\WebControls\Calendar.cs (7)
870if (titleStyle.CssClass.Length > 0) { 873else if (CssClass.Length > 0) { 1163if (String.Compare(eventArgument, 0, NAVIGATE_MONTH_COMMAND, 0, NAVIGATE_MONTH_COMMAND.Length, StringComparison.Ordinal) == 0) { 1170int newDateDiff = Int32.Parse(eventArgument.Substring(NAVIGATE_MONTH_COMMAND.Length), CultureInfo.InvariantCulture); 1181else if (String.Compare(eventArgument, 0, SELECT_RANGE_COMMAND, 0, SELECT_RANGE_COMMAND.Length, StringComparison.Ordinal) == 0) { 1185int rangeValue = Int32.Parse(eventArgument.Substring(SELECT_RANGE_COMMAND.Length), CultureInfo.InvariantCulture); 1292if (caption.Length > 0) {
UI\WebControls\ChangePassword.cs (13)
1255return (NewPasswordRegularExpression.Length > 0); 2401bool createUserTextVisible = (createUserText.Length > 0); 2402bool passwordRecoveryTextVisible = (passwordRecoveryText.Length > 0); 2403bool helpPageTextVisible = (helpPageText.Length > 0); 2404bool helpPageIconVisible = (helpPageIconUrl.Length > 0); 2405bool createUserIconVisible = (createUserIconUrl.Length > 0); 2406bool passwordRecoveryIconVisible = (passwordRecoveryIconUrl.Length > 0); 2410bool editProfileTextVisible = (editProfileText.Length > 0); 2411bool editProfileIconVisible = (editProfileIconUrl.Length > 0); 2489if (((ITextControl)failureTextLabel).Text.Length > 0) { 2541bool editProfileVisible = (editProfileText.Length > 0); 2542bool editProfileIconVisible = (editProfileIconUrl.Length > 0); 2574if (UserNameInternal.Length > 0 && DisplayUserName) {
UI\WebControls\CheckBox.cs (3)
434if (toolTip.Length > 0) { 473if (text.Length != 0) { 565if (s.Length > 0)
UI\WebControls\CheckBoxField.cs (2)
281if (DataField.Length != 0 && (rowState & DataControlRowState.Edit) != 0) { 285else if (DataField.Length != 0) {
UI\WebControls\CheckBoxList.cs (1)
353string strIndex = postDataKey.Substring(UniqueID.Length + 1);
UI\WebControls\Column.cs (4)
303if (sortExpression.Length == 0) 308if (headerImageUrl.Length != 0) { 337if (headerText.Length == 0) { 355if (footerText.Length == 0) {
UI\WebControls\CompareValidator.cs (5)
103if (ControlToCompare.Length > 0) { 108if (ValueToCompare.Length > 0) { 130if (ControlToCompare.Length > 0) { 171if (leftText.Trim().Length == 0) { 184if (ControlToCompare.Length > 0) {
UI\WebControls\ControlParameter.cs (2)
152if (controlID.Length == 0) { 165if (propertyName.Length == 0) {
UI\WebControls\CreateUserWizard.cs (10)
1909bool passRegExpEnabled = passwordValidatorsEnabled && PasswordRegularExpression.Length > 0; 1960bool emailRegExpEnabled = enableValidation && EmailRegularExpression.Length > 0 && RequireEmail; 1964if (EmailRegularExpression.Length > 0 && RequireEmail) { 1976bool helpPageTextVisible = (helpPageText.Length > 0); 1987bool helpPageIconVisible = (helpPageIconUrl.Length > 0); 2063bool editProfileVisible = (editProfileText.Length > 0); 2082bool editProfileIconVisible = (editProfileIconUrl.Length > 0); 2404if (step.Title.Length > 0) { 2610} else if (PasswordRegularExpression.Length <= 0) { 2636} else if (EmailRegularExpression.Length <= 0) {
UI\WebControls\CustomValidator.cs (4)
95if (ClientValidationFunction.Length > 0) { 113if (controlToValidate.Length > 0) { 131if (controlToValidate.Length > 0) { 136if ((controlValue == null || controlValue.Trim().Length == 0) &&
UI\WebControls\DataBoundControl.cs (3)
214if (DataSourceID.Length != 0 || DataSource != null) { 218else if (DataSourceID.Length != 0 && DataSource != null) { 324if (dataSourceID.Length != 0) {
UI\WebControls\DataControlField.cs (5)
469bool sortableHeader = (_sortingEnabled && sortExpression.Length > 0); 473if (headerImageUrl.Length != 0) { 523if (headerText.Length == 0) { 541if (footerText.Length == 0) { 643return headerText.Length > 0 ? headerText : GetType().Name;
UI\WebControls\DataGrid.cs (1)
1114bool storeKeys = (useDataSource && (keyField.Length != 0));
UI\WebControls\DataList.cs (3)
604if (DataKeyField.Length == 0) { 885bool storeKeys = (useDataSource && (keyField.Length != 0)); 1160if (Page != null && DataKeyField.Length > 0) {
UI\WebControls\DetailsView.cs (13)
1639if (EmptyDataText.Length > 0 || _emptyDataTemplate != null) { 1688if (_headerTemplate == null && HeaderText.Length == 0) { 1706if (_footerTemplate == null && FooterText.Length == 0) { 1871if (firstPageImageUrl.Length > 0) { 1890if (prevPageImageUrl.Length > 0) { 1910if (nextPageImageUrl.Length > 0) { 1930if (lastPageImageUrl.Length > 0) { 1999if (firstPageImageUrl.Length > 0) { 2066if (lastPageImageUrl.Length > 0) { 2769if (_headerTemplate == null && headerText.Length > 0) { 2777if (_footerTemplate == null && footerText.Length > 0) { 2784if (_emptyDataTemplate == null && emptyDataText.Length > 0) { 3394StringBuilder clientPanelNameBuilder = new StringBuilder("__dv", 9 + clientID.Length);
UI\WebControls\FileUpload.cs (1)
238if (form != null && form.Enctype.Length == 0) {
UI\WebControls\FontInfo.cs (5)
106if (value.Length == 0) { 279if (fOwner.RegisteredCssClass.Length != 0) { 327if (fOwner.RegisteredCssClass.Length == 0) { 476if (size.Length != 0) { 477if (s.Length != 0) {
UI\WebControls\FontNamesConverter.cs (1)
40if (((string)value).Length == 0) {
UI\WebControls\FontUnitConverter.cs (1)
48if (textValue.Length == 0) {
UI\WebControls\FormView.cs (12)
1406if (EmptyDataText.Length > 0 || _emptyDataTemplate != null) { 1452if (_headerTemplate == null && HeaderText.Length == 0) { 1470if (_footerTemplate == null && FooterText.Length == 0) { 1579if (firstPageImageUrl.Length > 0) { 1596if (prevPageImageUrl.Length > 0) { 1614if (nextPageImageUrl.Length > 0) { 1632if (lastPageImageUrl.Length > 0) { 1699if (firstPageImageUrl.Length > 0) { 1761if (lastPageImageUrl.Length > 0) { 2398if (_headerTemplate == null && headerText.Length > 0) { 2406if (_footerTemplate == null && footerText.Length > 0) { 2413if (_emptyDataTemplate == null && emptyDataText.Length > 0) {
UI\WebControls\GridView.cs (13)
2041if (EmptyDataTemplate != null || EmptyDataText.Length > 0) { 2117if (EmptyDataTemplate != null || EmptyDataText.Length > 0) { 2428if (firstPageImageUrl.Length > 0) { 2449if (prevPageImageUrl.Length > 0) { 2470if (nextPageImageUrl.Length > 0) { 2491if (lastPageImageUrl.Length > 0) { 2560if (firstPageImageUrl.Length > 0) { 2629if (lastPageImageUrl.Length > 0) { 3339if (rowHeaderColumn.Length > 0 && boundField != null && boundField.DataField == rowHeaderColumn) { 3379if (emptyDataText.Length > 0) { 4192StringBuilder clientPanelNameBuilder = new StringBuilder("__gv", clientID.Length + 9); 4230(_sortExpression != null && _sortExpression.Length != 0) || 4242state[4] = (_sortExpression == null || _sortExpression.Length == 0) ? null : (object)_sortExpression;
UI\WebControls\HiddenField.cs (1)
161if (s.Length > 0) {
UI\WebControls\HierarchicalDataBoundControl.cs (2)
48if (!_currentDataSourceIsFromControl && DataSourceID != null && DataSourceID.Length != 0) { 118if (dataSourceID.Length != 0) {
UI\WebControls\HorizontalAlignConverter.cs (1)
54if (textValue.Length == 0)
UI\WebControls\HotSpot.cs (1)
47if ((value != null) && (value.Length > 1)) {
UI\WebControls\HyperLink.cs (6)
207if ((s.Length > 0) && IsEnabled) { 212if (s.Length > 0) { 233if (currentText.Length != 0) { 267if (s.Length > 0) { 283if (s.Length != 0) { 288if (s.Length != 0) {
UI\WebControls\HyperLinkColumn.cs (10)
205if (formatting.Length == 0) { 224if (formatting.Length == 0) { 261if ((DataNavigateUrlField.Length != 0) || 262(DataTextField.Length != 0)) { 274Debug.Assert((DataTextField.Length != 0) || (DataNavigateUrlField.Length != 0), 286if (fieldName.Length != 0) { 294if (fieldName.Length != 0) { 308else if (DesignMode && (DataTextField.Length != 0)) { 318else if (DesignMode && (DataNavigateUrlField.Length != 0)) {
UI\WebControls\HyperLinkField.cs (11)
242if (formatting.Length == 0) { 263if (formatting.Length == 0) { 302(DataTextField.Length != 0)) { 315Debug.Assert((DataTextField.Length != 0) || (DataNavigateUrlFields.Length != 0), 340if (fieldName.Length != 0) { 353if (fieldName.Length != 0) { 367if (DesignMode && (DataTextField.Length != 0) && dataTextValue.Length == 0) { 371if (dataTextValue.Length > 0) { 390if (DesignMode && (DataNavigateUrlFields.Length != 0) && dataNavValue.Length == 0) { 394if (dataNavValue.Length > 0) {
UI\WebControls\HyperLinkStyle.cs (5)
36return (RegisteredCssClass.Length == 0) && 56if (RegisteredCssClass.Length != 0) { 58if (cssClass.Length != 0) { 66if (cssClass.Length > 0) { 138if (textDecoration.Length > 0) {
UI\WebControls\Image.cs (3)
208if (s.Length > 0 || !EnableLegacyRendering) { 214if (s.Length != 0) { 220if (s.Length > 0 || GenerateEmptyAlternateText) {
UI\WebControls\ImageButton.cs (1)
347if (onClick.Length > 0) {
UI\WebControls\ImageField.cs (10)
308if (ConvertEmptyStringToNull && value is string && ((string)value).Length == 0) { 331if (dataValueString.Length > 0) { 332if (formatting.Length == 0) { 355if (altTextField.Length > 0) { 362if (altTextFormatString.Length > 0) { 386Debug.Assert(DataImageUrlField.Length != 0, "Shouldn't be DataBinding without an DataImageUrlField"); 454if (DataImageUrlField.Length != 0 && (rowState & DataControlRowState.Edit) != 0) { 458else if (DataImageUrlField.Length != 0) { 502if (urlValue == null || (ConvertEmptyStringToNull && urlValue.Length == 0)) { 503if (nullImageUrl.Length > 0) {
UI\WebControls\ImageMap.cs (3)
228if (target.Length == 0) target = controlTarget; 229if (target.Length > 0) writer.AddAttribute(HtmlTextWriterAttribute.Target, target); 237if (s.Length > 0) {
UI\WebControls\Label.cs (3)
111if (AssociatedControlID.Length != 0) { 147if (associatedControlID.Length != 0) { 187if (currentText.Length != 0) {
UI\WebControls\LinkButton.cs (2)
282if (onClick.Length > 0) { 334if (currentText.Length != 0) {
UI\WebControls\ListControl.cs (6)
391if (value == null || (DesignMode && value.Length == 0)) { 695if ((textField.Length != 0) || (valueField.Length != 0)) { 698if (textFormat.Length != 0) { 706if (textField.Length > 0) { 709if (valueField.Length > 0) {
UI\WebControls\listitem.cs (2)
406return (text != null) && (text.Length != 0); 416return (value != null) && (value.Length != 0);
UI\WebControls\Literal.cs (1)
135if (text.Length != 0) {
UI\WebControls\login.cs (12)
1434if ((failureTextLabel != null) && (failureText.Length > 0) && RedirectedFromFailedLogin()) { 1454if (titleText.Length > 0) { 1467if (instructionText.Length > 0) { 1480if (userNameLabelText.Length > 0) { 1512if (passwordLabelText.Length > 0) { 1600bool createUserTextVisible = (createUserText.Length > 0); 1601bool passwordRecoveryTextVisible = (passwordRecoveryText.Length > 0); 1602bool helpPageTextVisible = (helpPageText.Length > 0); 1603bool helpPageIconVisible = (helpPageIconUrl.Length > 0); 1604bool createUserIconVisible = (createUserIconUrl.Length > 0); 1605bool passwordRecoveryIconVisible = (passwordRecoveryIconUrl.Length > 0); 1670if (((ITextControl)failureTextLabel).Text.Length > 0) {
UI\WebControls\LoginName.cs (1)
96if (formatString.Length == 0) {
UI\WebControls\loginstatus.cs (3)
378if ((ID != null) && (ID.Length != 0)) { 404if (logoutImageUrl.Length > 0) { 416if (loginImageUrl.Length > 0) {
UI\WebControls\LoginUtil.cs (1)
420if ((parentID != null) && (parentID.Length != 0)) {
UI\WebControls\Menu.cs (20)
1265if (style.CssClass.Length != 0) { 1274if (className.Length > 0) { 1285if (style.CssClass.Length != 0) { 1290if (className.Length > 0) { 1462if (textField.Length > 0) { 1467if (level.FormatString.Length > 0) { 1486if (valueField.Length > 0) { 1505if (targetField.Length > 0) { 1524if (imageUrlField.Length > 0) { 1543if (navigateUrlField.Length > 0) { 1562if (popOutImageUrlField.Length > 0) { 1581if (separatorImageUrlField.Length > 0) { 1600if (toolTipField.Length > 0) { 1619if (enabledField.Length > 0) { 1644if (selectableField.Length > 0) { 1689if (toolTip.Length > 0) { 1692if (popOutImageUrl.Length > 0) { 1695if (separatorImageUrl.Length > 0) { 2580if (eventArgument.Length == 0) { 2588for (int i = 0; i < nodePath.Length; i++) {
UI\WebControls\MenuItem.cs (23)
238if (_owner.StaticItemFormatString.Length > 0 && Depth < _owner.StaticDisplayLevels) { 241else if (_owner.DynamicItemFormatString.Length > 0 && Depth >= _owner.StaticDisplayLevels) { 252if (_id.Length == 0) { 570_valuePath = ((parentPath.Length == 0) && (_parent.Depth == -1)) ? 598if (PopOutImageUrl.Length != 0) { 603if (_owner.StaticPopOutImageUrl.Length != 0) { 611if (_owner.DynamicPopOutImageUrl.Length != 0) { 723if (styleClass != null && styleClass.Length > 0) { 805bool staticTopSeparator = (depth < _owner.StaticDisplayLevels) && (_owner.StaticTopSeparatorImageUrl.Length != 0); 806bool dynamicTopSeparator = (depth >= _owner.StaticDisplayLevels) && (_owner.DynamicTopSeparatorImageUrl.Length != 0); 861if (ToolTip.Length != 0) { 876if (styleClass.Trim().Length > 0) { 902if (styleClass.Trim().Length > 0) { 921if (NavigateUrl.Length > 0) { 930if (target.Length > 0) { 940if (!_owner.AccessKeyRendered && (accessKey.Length != 0)) { 957if (!_owner.AccessKeyRendered && (accessKey.Length != 0)) { 990if (ImageUrl.Length > 0 && NotTemplated()) { 1014(!shouldRenderExpandImage || (expandImageUrl.Length == 0)) && 1048if (shouldRenderExpandImage && expandImageUrl.Length > 0) { 1089bool separator = (SeparatorImageUrl.Length != 0); 1090bool staticBottomSeparator = (depth < _owner.StaticDisplayLevels) && (_owner.StaticBottomSeparatorImageUrl.Length != 0); 1091bool dynamicBottomSeparator = (depth >= _owner.StaticDisplayLevels) && (_owner.DynamicBottomSeparatorImageUrl.Length != 0);
UI\WebControls\MenuItemBindingCollection.cs (5)
65if (binding.Depth == -1 && binding.DataMember.Length == 0) { 78if ((dataMember != null) && (dataMember.Length == 0)) { 87else if ((match < 1) && (binding.DataMember.Length == 0)) { 104if (_defaultBinding.Depth != -1 || _defaultBinding.DataMember.Length != 0) { 140if ((binding != null) && (binding.DataMember.Length == 0) && (binding.Depth == -1)) {
UI\WebControls\MenuItemStyle.cs (2)
130if (s.RegisteredCssClass.Length != 0) { 246if (s.RegisteredCssClass.Length == 0) {
UI\WebControls\MenuRendererClassic.cs (2)
227if (styleClass.Length > 0) { 228if (Menu.CssClass.Length == 0) {
UI\WebControls\ModelDataSourceView.cs (4)
79return (DeleteMethod.Length != 0); 89return (InsertMethod.Length != 0); 127return (UpdateMethod.Length != 0); 351if (SelectMethod.Length == 0) {
UI\WebControls\ObjectDataSource.cs (1)
882if (viewName == null || (viewName.Length != 0 && !String.Equals(viewName, DefaultViewName, StringComparison.OrdinalIgnoreCase))) {
UI\WebControls\ObjectDataSourceView.cs (19)
86return (DeleteMethod.Length != 0); 96return (InsertMethod.Length != 0); 118return ((SelectCountMethod.Length > 0) || (!EnablePaging)); 141return (UpdateMethod.Length != 0); 782if (FilterExpression.Length > 0) { 794if (!EnablePaging && arguments.RetrieveTotalRowCount && SelectCountMethod.Length == 0) { 805if (arguments.RetrieveTotalRowCount && SelectCountMethod.Length == 0) { 818if (filterExpression.Length > 0) { 979if (SelectMethod.Length == 0) { 1010if (arguments.RetrieveTotalRowCount && SelectCountMethod.Length == 0) { 1013if (FilterExpression.Length > 0) { 1065if (sortParameterName.Length > 0) { 1107if (arguments.RetrieveTotalRowCount && SelectCountMethod.Length > 0) { 1136if (arguments.RetrieveTotalRowCount && SelectCountMethod.Length == 0) { 1139if (FilterExpression.Length > 0) { 1162if (arguments.RetrieveTotalRowCount && SelectCountMethod.Length == 0) { 1600if (TypeName.Length == 0) { 1934if (SelectCountMethod.Length > 0) { 2029if (dataObjectTypeName.Length == 0) {
UI\WebControls\Panel.cs (3)
258if (s.Trim().Length > 0) { 291if (DefaultButton.Length > 0) { 351bool useGrouping = (s.Length != 0) && !(writer is Html32TextWriter);
UI\WebControls\PanelStyle.cs (2)
184if (s.RegisteredCssClass.Length != 0) { 237if (s.RegisteredCssClass.Length == 0) {
UI\WebControls\Parameter.cs (1)
311if ((stringValue != null) && (stringValue.Length == 0)) {
UI\WebControls\PasswordRecovery.cs (18)
1777if (titleText.Length > 0) { 1790if (instructionText.Length > 0) { 1803if (userNameLabelText.Length > 0) { 1819if (UserNameInternal.Length > 0) { 1829if (questionLabelText.Length > 0) { 1845if (Question.Length > 0) { 1854if (answerLabelText.Length > 0) { 1921if (helpPageText.Length > 0) { 1932bool helpPageIconVisible = (helpPageIconUrl.Length > 0); 1957if (((ITextControl)failureTextLabel).Text.Length > 0) { 1983if (successText.Length > 0) { 2027if (titleText.Length > 0) { 2040if (instructionText.Length > 0) { 2053if (userNameLabelText.Length > 0) { 2120if (helpPageText.Length > 0) { 2130bool helpPageIconVisible = (helpPageIconUrl.Length > 0); 2155if (((ITextControl)failureTextLabel).Text.Length > 0) { 2174if (userName.Length > 0) {
UI\WebControls\PopOutPanel.cs (3)
90if (scrollUpImageUrl.Length != 0) { 106if (scrollDownImageUrl.Length != 0) { 170if (styleClass.Trim().Length > 0) {
UI\WebControls\QueryExtensions.cs (2)
26int descIndex = sortExpression.Length - SORT_DIRECTION_DESC.Length;
UI\WebControls\RadioButton.cs (3)
71if (name.Length > 0) { 81if (name.Length == 0) { 245if (s.Length > 0)
UI\WebControls\RangeValidator.cs (1)
114if (text.Trim().Length == 0) {
UI\WebControls\ReadOnlyHierarchicalDataSource.cs (1)
53if (enumerable != null && viewPath != null && viewPath.Length != 0) {
UI\WebControls\RegularExpressionValidator.cs (3)
70if (ValidationExpression.Length > 0) { 86if (controlValue == null || controlValue.Trim().Length == 0) { 95return(m.Success && m.Index == 0 && m.Length == controlValue.Length);
UI\WebControls\Repeater.cs (3)
350return (DataSourceID.Length > 0); 517if (DataSourceID.Length != 0 || DataSource != null) { 541if (dataSourceID.Length != 0) {
UI\WebControls\RepeatInfo.cs (2)
173if (Caption.Length != 0) { 412if (Caption.Length != 0) {
UI\WebControls\SiteMapDataSource.cs (2)
363if (url.Length == 0 || !UrlPath.IsRelativeUrl(url)) { 368if (baseUrl.Length == 0) {
UI\WebControls\SqlDataSource.cs (1)
980if (viewName == null || (viewName.Length != 0 && !String.Equals(viewName, DefaultViewName, StringComparison.OrdinalIgnoreCase))) {
UI\WebControls\SqlDataSourceView.cs (10)
97return (DeleteCommand.Length != 0); 106return (InsertCommand.Length != 0); 133return (_owner.DataSourceMode == SqlDataSourceMode.DataSet) || (SortParameterName.Length > 0); 142return (UpdateCommand.Length != 0); 875if (SelectCommand.Length == 0) { 928if (FilterExpression.Length > 0) { 955if (sortParameterName.Length > 0) { 1071if (FilterExpression.Length > 0) { 1085if (FilterExpression.Length > 0) { 1089if (sortExpression.Length > 0) {
UI\WebControls\StringArrayConverter.cs (1)
41if (((string)value).Length == 0) {
UI\WebControls\Style.cs (8)
308return ((setBits == 0) && (RegisteredCssClass.Length == 0)); 415if (cssClass.Length != 0) { 423if (cssClass.Length > 0) { 452if (RegisteredCssClass.Length != 0) { 466if (s.RegisteredCssClass.Length != 0) { 618if (textDecoration.Length > 0) { 719if (RegisteredCssClass.Length != 0) { 741if (s.RegisteredCssClass.Length == 0) {
UI\WebControls\SubMenuStyle.cs (2)
90if (s.RegisteredCssClass.Length != 0) { 203if (sms != null && !sms.IsEmpty && s.RegisteredCssClass.Length == 0) {
UI\WebControls\Substitution.cs (1)
100if (MethodName.Length == 0) {
UI\WebControls\Table.cs (1)
303if (caption.Length != 0) {
UI\WebControls\TableCell.cs (1)
301if (currentText.Length != 0) {
UI\WebControls\TableItemStyle.cs (2)
182if (s.RegisteredCssClass.Length != 0) { 233if (s.RegisteredCssClass.Length == 0) {
UI\WebControls\TableStyle.cs (3)
254if (s.RegisteredCssClass.Length != 0) { 283if (s.Length != 0) { 313if (s.RegisteredCssClass.Length == 0) {
UI\WebControls\TemplateField.cs (1)
253if (convertEmptyStringToNull && value is string && ((string)value).Length == 0) {
UI\WebControls\TextBox.cs (1)
466if (s.Length > 0) {
UI\WebControls\TreeNode.cs (18)
652_valuePath = ((parentPath.Length == 0) && (_parent.Depth == -1)) ? 765((selectImageId.Length == 0) ? "null" : ("document.getElementById('" + selectImageId + "')")) + "," + 779((selectImageId.Length == 0) ? "null" : selectImageId) + "," + 1139if (ImageUrl.Length > 0) { 1143if ((depth < _owner.LevelStyles.Count) && (_owner.LevelStyles[depth] != null) && mergedStyle.ImageUrl.Length > 0) { 1162if (nodeImageUrl.Length > 0) { 1166if (imageUrl.Length > 0) { 1213if (imageToolTip.Length > 0) { 1252if (NavigateUrl.Length > 0) { 1263if (target.Length > 0) { 1292if (onClick.Length != 0) { 1351if (ToolTip.Length > 0) { 1357if (nodeImageUrl.Length > 0) { 1372if (ImageToolTip.Length > 0) { 1403if (styleClass.Trim().Length > 0) { 1437if (ToolTip.Length > 0) { 1449if (styleClass.Trim().Length > 0) { 1477if (!_owner.AccessKeyRendered && _owner.AccessKey.Length != 0) {
UI\WebControls\TreeNodeBindingCollection.cs (5)
60if (binding.Depth == -1 && binding.DataMember.Length == 0) { 73if ((dataMember != null) && (dataMember.Length == 0)) { 82else if ((match < 1) && (binding.DataMember.Length == 0)) { 99if (_defaultBinding.Depth != -1 || _defaultBinding.DataMember.Length != 0) { 136if ((binding != null) && (binding.DataMember.Length == 0) && (binding.Depth == -1)) {
UI\WebControls\TreeNodeStyle.cs (2)
177if (s.RegisteredCssClass.Length != 0) { 302if (s.RegisteredCssClass.Length == 0) {
UI\WebControls\TreeView.cs (63)
1323if (style.CssClass.Length != 0) { 1332if (className.Length > 0) { 1488if (textField.Length > 0) { 1512if (valueField.Length > 0) { 1531if (imageUrlField.Length > 0) { 1544if (imageUrl.Length == 0) { 1550if (navigateUrlField.Length > 0) { 1563if (navigateUrl.Length == 0) { 1569if (targetField.Length > 0) { 1588if (toolTipField.Length > 0) { 1601if (toolTip.Length == 0) { 1608if (imageToolTipField.Length > 0) { 1623if (imageToolTip.Length == 0) { 1906if (rootNodeImageUrl.Length == 0) { 1909if (rootNodeImageUrl.Length == 0) { 1950if (rootNodeImageUrl.Length != 0) { 1957if (parentNodeImageUrl.Length == 0) { 1960if (parentNodeImageUrl.Length == 0) { 2002if (parentNodeImageUrl.Length != 0) { 2009if (leafNodeImageUrl.Length == 0) { 2012if (leafNodeImageUrl.Length == 0) { 2053if (leafNodeImageUrl.Length != 0) { 2060if (LineImagesFolder.Length == 0) { 2068if (NoExpandImageUrlInternal.Length > 0) { 2071else if (LineImagesFolder.Length > 0) { 2082if (LineImagesFolder.Length == 0) { 2090if (ExpandImageUrlInternal.Length > 0) { 2093else if (LineImagesFolder.Length > 0) { 2103if (LineImagesFolder.Length == 0) { 2111if (CollapseImageUrlInternal.Length > 0) { 2114else if (LineImagesFolder.Length > 0) { 2123if (LineImagesFolder.Length == 0) { 2131if (LineImagesFolder.Length == 0) { 2139if (LineImagesFolder.Length == 0) { 2147if (LineImagesFolder.Length == 0) { 2155if (LineImagesFolder.Length == 0) { 2163if (LineImagesFolder.Length == 0) { 2171if (LineImagesFolder.Length == 0) { 2179if (LineImagesFolder.Length == 0) { 2187if (LineImagesFolder.Length == 0) { 2195if (LineImagesFolder.Length == 0) { 2203if (LineImagesFolder.Length == 0) { 2211if (LineImagesFolder.Length == 0) { 2219if (LineImagesFolder.Length == 0) { 2235if (imageUrl.Length > 0) { 2252if (oldClass.Length != 0 && style2.CssClass.Length != 0) { 2319int i = s.Length - 1; 2327if ((i > -1) && (i < (s.Length - 1)) && ((s.Length - i) < 11)) { 2345for (int i = 0; i < value.Length; i++) { 2349b = new StringBuilder(value.Length + 5); 2363b = new StringBuilder(value.Length + 5); 2470(expandState.Length > index) && 2595if (imageUrl.Length > 0) { 2657if (className.Length > 0) { 2661if (hyperLinkClassName.Length > 0) { 3143if (eventArgument.Length == 0) { 3280if (nodeText != null && nodeText.Length != 0) { 3283if (nodeValue != null && nodeValue.Length != 0) { 3306if (parentIsLast.Length > 0) { 3308for (int i = 0; i < parentIsLast.Length; i++) { 3369if (logParts[i].Length > 0) {
UI\WebControls\Unit.cs (1)
112int len = trimLcase.Length;
UI\WebControls\unitconverter.cs (1)
62if (textValue.Length == 0) {
UI\WebControls\ValidationSummary.cs (4)
242if (HeaderText.Length > 0 ) { 254if (ValidationGroup.Length > 0) { 453if (HeaderText.Length > 0) { 460Debug.Assert(errorDescriptions[i] != null && errorDescriptions[i].Length > 0, "Bad Error Messages");
UI\WebControls\VerticalAlignConverter.cs (1)
53if (textValue.Length == 0)
UI\WebControls\WebControl.cs (3)
101if ((value != null) && (value.Length > 1)) { 596if (s.Length > 0) { 621if (s.Length > 0) {
UI\WebControls\Wizard.cs (2)
1436if (step.Title.Length > 0) { 2727Debug.Assert(Owner.HeaderText != null && Owner.HeaderText.Length > 0);
UI\WebControls\xml.cs (1)
398if (String.IsNullOrEmpty(_transformSource) || _transformSource.Trim().Length == 0)
UI\WebControls\XmlDataSource.cs (8)
390if (DataFile.Length > 0) { 395if (Data.Length > 0) { 400if (TransformFile.Length > 0) { 405if (Transform.Length > 0) { 445if (path.Length != 0) { 480if (content.Length == 0) { 494if (DataFile.Length != 0) { 692if (viewName.Length == 0) {
UI\WebControls\XmlDataSourceView.cs (1)
46if (_owner.XPath.Length != 0) {
UI\WebControls\XmlHierarchicalDataSourceView.cs (1)
52if (_owner.XPath.Length > 0) {
UI\WebParts\CatalogZone.cs (1)
48if (((literal == null) || (literal.Text.Trim().Length != 0)) && !DesignMode) {
UI\WebParts\ConnectionsZone.cs (1)
2235_pendingSelectedValue.Length > 0) {
UI\WebParts\EditorZone.cs (1)
48if (((literal == null) || (literal.Text.Trim().Length != 0)) && !DesignMode) {
UI\WebParts\PersonalizationProviderHelper.cs (3)
39if (lengthToCheck > -1 && trimmedStr.Length > lengthToCheck) { 44if (str.Length != trimmedStr.Length) {
UI\WebParts\SqlPersonalizationProvider.cs (2)
54if (value != null && value.Length > maxStringLength) { 463if (_applicationName.Length > maxStringLength) {
UI\WebParts\WebPartChrome.cs (1)
250Debug.Assert(style.RegisteredCssClass.Length == 0);
UI\WebParts\WebPartConnection.cs (2)
45if (consumerID.Length == 0) { 162if (providerID.Length == 0) {
UI\WebParts\WebPartManager.cs (1)
2919errorMessage = (importErrorMessage.Length != 0) ?
UI\WebParts\WebPartMenu.cs (4)
96Debug.Assert(style.RegisteredCssClass.Length == 0); 234if (alt.Length != 0) { 344if (img.Length != 0) { 350if (img.Length == 0) {
UI\WebParts\WebPartMenuStyle.cs (2)
90if (s.RegisteredCssClass.Length != 0) { 122if (s.RegisteredCssClass.Length == 0) {
UI\WebParts\WebPartZoneBase.cs (1)
1110partID = wholePartID.Substring(WebPart.WholePartIDPrefix.Length);
UI\WebParts\WebZone.cs (1)
369if (backImageUrl.Trim().Length > 0)
Util\FileUtil.cs (16)
91int nextSeparator = fileName.IndexOf(Path.DirectorySeparatorChar, existingDir.Length + 1); 108if (filePath.Length > appRoot.Length + 1 110&& filePath[appRoot.Length] == Path.DirectorySeparatorChar) { 122int length = path.Length; 134if (path.Length > maxPathLength) { 192&& (physicalPath.Length == idxSlashDots + slashDots.Length 193|| physicalPath[idxSlashDots + slashDots.Length] == '\\')) { 235(physicalPath.Length > _maxPathLength || 238(physicalPath.Length > 0 && physicalPath[0] == ':') || 239(physicalPath.Length > 2 && physicalPath.IndexOf(':', 2) > 0))) { 290char lastChar = physicalPath[physicalPath.Length - 1]; 499&& currentParentDir.Length > rootDirectoryPath.Length+1 544&& wfd.cAlternateFileName.Length > 0
Util\HttpEncoder.cs (13)
99int count = s.Length; 241int cch = value.Length; 284int cch = s.Length - index; 359Debug.Assert(0 <= startPos && startPos <= s.Length, "0 <= startPos && startPos <= s.Length"); 360int cch = s.Length - startPos; 370return s.Length - cch; 399for (int i = 0; i < value.Length; i++) { 406b = new StringBuilder(value.Length + 5); 556int count = value.Length; 726int l = value.Length; 808int len = input.Length; 874for (endPos = base64Str.Length; endPos > 0; endPos--) { 885base64Chars[endPos] = (char)((int)'0' + base64Str.Length - endPos); // Store a char at the end, to indicate how many padding chars are needed
Util\ParseHttpDate.cs (2)
166int length = time.Length - i; 204int length = time.Length + 1;
Util\ProviderUtil.cs (1)
181if ((s == null && required) || (s.Length == 0)) {
Util\SecUtil.cs (8)
86if (param.Length < 1) { 90if (maxSize > 0 && (param.Length > maxSize) ) { 103if ((checkIfEmpty && param.Length < 1) || 104(maxSize > 0 && param.Length > maxSize) || 118if (param.Length < 1) { 122if (maxSize > 0 && param.Length > maxSize) { 137if (checkIfEmpty && param.Length < 1) { 141if (maxSize > 0 && param.Length > maxSize) {
Util\StringUtil.cs (25)
41if (trimmedValue.Length == 0) { 46if (lengthToCheck > -1 && trimmedValue.Length > lengthToCheck) { 73if ((s1 == null ? 0 : s1.Length) - offset1 < length) 75if ((s2 == null ? 0 : s2.Length) - offset2 < length) 98if(s2.Length != s1.Length) { 101return 0 == string.Compare(s1, 0, s2, 0, s2.Length, StringComparison.OrdinalIgnoreCase); 124int len = s.Length; 133int offset = s1.Length - s2.Length; 140int c = s2.Length; 155int offset = s1.Length - s2.Length; 160return 0 == string.Compare(s1, offset, s2, 0, s2.Length, StringComparison.OrdinalIgnoreCase); 168return s.Length != 0 && (s[0] == c); 176if (s2.Length > s1.Length) { 182int c = s2.Length; 201if (s2.Length > s1.Length) { 205return 0 == string.Compare(s1, 0, s2, 0, s2.Length, StringComparison.OrdinalIgnoreCase); 216Debug.Assert(srcIndex + len <= src.Length, "src"); 265int len = s.Length; 328bytes = new byte[enc.GetMaxByteCount(s.Length) + 1]; 329return enc.GetBytes(s, 0, s.Length, bytes, 0);
Util\SymbolEqualComparer.cs (2)
42int lLeft = sLeft.Length; 43int lRight = sRight.Length;
Util\UriUtil.cs (2)
94for (int i = 0; i < input.Length; i++) { 170int schemeAndAuthorityLength = authorityIndex + authority.Length;
Util\UrlPath.cs (27)
73int len = path.Length; 104if (path.Length == 1) 121if (path == null || path.Length < 3) 134if (path.Length > 2 && IsDirectorySeparatorChar(path[0]) && IsDirectorySeparatorChar(path[1])) 165if (basepath[0] == appRelativeCharacter && basepath.Length == 1) { 173if (lastSlashIndex < basepath.Length - 1) { 187if (relative.Length == 1 && relative[0] == appRelativeCharacter) 193if (appPath.Length > 1) 246int length = path.Length; 308if (result.Length == 0) { 382if (iPos == to.Length - 1) { 422int length = virtualPath.Length; 451int length = virtualPath.Length; 467return virtualPath[virtualPath.Length - 1] == '/'; 474int l = path.Length; 492int l = path.Length; 514int virtualPath2Length = virtualPath2.Length; 517if (virtualPath1.Length == virtualPath2Length) { 572int appPathLength = applicationPath.Length; 573int virtualPathLength = virtualPath.Length; 613if (virtualPath.Length == 1 && virtualPath[0] == appRelativeCharacter) 618if (virtualPath.Length >=2 && virtualPath[0] == appRelativeCharacter && 621if (applicationPath.Length > 1) { 656int l = path.Length; 666int l = path.Length; 693int lPath = path.Length; 698int lSubpath = subpath.Length;
Util\Utf16StringValidator.cs (1)
31for (int i = 0; i < input.Length; i++) {
Util\Wildcard.cs (2)
94if (pattern.Length > 0 && pattern[0] == '*') 234if (pattern.Length > 0 && pattern[0] == '*')
VirtualPath.cs (2)
98if (_appRelativeVirtualPath.Length == 1) { 577int len = virtualPath.Length;
WebSockets\SubprotocolUtil.cs (1)
106if (subprotocolCandidateTrimmed.Length == 0) {
WorkerRequest.cs (1)
492for(int index = 0; index < cacheUrl.Length; index++) {
XmlSiteMapProvider.cs (3)
678if (temp != null && temp.Length > _resourcePrefixLength) { 687if (resourceKey.Length == 0) { 762if (trimmedRole.Length > 0) {
System.Web.ApplicationServices (1)
Util\SecurityServices.cs (1)
33if (param.Length < 1) {
System.Web.DataVisualization (388)
Common\Annotation\AnnotationBase.cs (8)
1252 if(_axisXName.Length == 0 && _axisX != null) 1325 if(_axisYName.Length == 0 && _axisY != null) 1369 if(_axisX == null && _axisXName.Length > 0) 1413 if(_axisY == null && _axisYName.Length > 0) 1454 if(_anchorDataPointName.Length == 0 && _anchorDataPoint != null) 1513 if(_anchorDataPoint == null && _anchorDataPointName.Length > 0) 3275if (Chart != null && dataPointName.Length > 0) 3308if (Chart != null && axisName.Length > 0)
Common\Annotation\AnnotationCollection.cs (1)
257 if(annotation.ClipToChartArea.Length > 0 &&
Common\Annotation\ImageAnnotation.cs (2)
555 if(this._imageName.Length == 0 && this.Chart.IsDesignMode() ) 691 if(this.Image.Length > 0)
Common\Annotation\TextAnnotation.cs (1)
947 if(GetGraphics() != null && this.Text.Trim().Length > 0)
Common\ChartTypes\AreaChart.cs (1)
327else if (point.BackImage.Length > 0 && point.BackImageWrapMode != ChartImageWrapMode.Unscaled && point.BackImageWrapMode != ChartImageWrapMode.Scaled)
Common\ChartTypes\BarChart.cs (17)
660 if(point.MarkerStyle != MarkerStyle.None || point.MarkerImage.Length > 0) 664 else if(ser.IsValueShownAsLabel || point.IsValueShownAsLabel || point.Label.Length > 0) 759 if(point.MarkerStyle != MarkerStyle.None || point.MarkerImage.Length > 0) 765 if(point.MarkerImage.Length == 0) 829if (point.Label.Length > 0 || 843 if( point.Label.Length == 0 ) 873if (valueLabelAttrib.Length > 0) 1033float spacing = valueTextSize.Width / text.Length / 2; 1579 if( point.IsValueShownAsLabel || point.Label.Length > 0 ) 1742 if(point.MarkerStyle != MarkerStyle.None || point.MarkerImage.Length > 0) 1748 if(point.MarkerImage.Length == 0) 1835if (ser.IsValueShownAsLabel || point.IsValueShownAsLabel || point.Label.Length > 0) 1847 if( point.Label.Length == 0 ) 1867 if(point.MarkerStyle != MarkerStyle.None || point.MarkerImage.Length > 0) 1873if (point.MarkerImage.Length == 0) 1899if (valueLabelAttrib != null && valueLabelAttrib.Length > 0) 2116sizeLabel.Width += sizeLabel.Width / text.Length;
Common\ChartTypes\BoxPlotChart.cs (12)
751 if(markerStyle.Length > 0 && String.Compare(markerStyle, "None", StringComparison.OrdinalIgnoreCase ) != 0) 854if(markerImage.Length > 0) 880if (ser.IsValueShownAsLabel || point.IsValueShownAsLabel || point.Label.Length > 0) 895 if( point.Label.Length == 0 ) 923if (text.Trim().Length != 0) 968sizeLabel.Width += sizeLabel.Width / text.Length; 1648 if(boxPercentile.Length == 0 && boxPoint.series != null && boxPoint.series.IsCustomPropertySet(CustomPropertyName.BoxPlotPercentile)) 1653 if(boxWhiskerPercentile.Length == 0 && boxPoint.series != null && boxPoint.series.IsCustomPropertySet(CustomPropertyName.BoxPlotWhiskerPercentile)) 1659if (boxPercentile.Length > 0) 1676if (boxWhiskerPercentile.Length > 0) 1709 if(showUnusualValues.Length == 0 && boxPoint.series != null && boxPoint.series.IsCustomPropertySet(CustomPropertyName.BoxPlotShowUnusualValues)) 1713 if(showUnusualValues.Length > 0)
Common\ChartTypes\ColumnChart.cs (7)
1136 pointMarkerImage.Length > 0) 1214if (point.IsValueShownAsLabel || point.Label.Length > 0) 1218if (point.Label.Length == 0) 1251sizeLabel.Width += sizeLabel.Width / text.Length; 1328if (point.IsValueShownAsLabel || point.Label.Length > 0) 1332if (point.Label.Length == 0) 1373sizeLabel.Width += sizeLabel.Width / text.Length;
Common\ChartTypes\ErrorBarChart.cs (10)
819 if(markerStyle.Length > 0 && String.Compare(markerStyle, "None", StringComparison.OrdinalIgnoreCase) != 0) 911if(markerImage.Length > 0) 937 if(ser.IsValueShownAsLabel || point.IsValueShownAsLabel || point.Label.Length > 0) 952if (point.Label.Length == 0) 980if (text.Trim().Length != 0) 1025sizeLabel.Width += sizeLabel.Width / text.Length; 1650 typeName = typeName.Substring(errorBarType.ToString().Length); 1651 if(typeName.Length > 0) 1658 typeName = typeName.Substring(1, typeName.Length - 2); 1661 if(typeName.Length > 0)
Common\ChartTypes\FunnelChart.cs (15)
1629 if(pointShowLabelAsValue || pointLabel.Length > 0) 1637 if( pointLabel.Length == 0 ) 1676 if(labelInfo.Text.Length > 0 && 2114 if(attrValue != null && attrValue.Length > 0) 2267if (attrValue != null && attrValue.Length > 0) 2304if (attrValue != null && attrValue.Length > 0) 2336 if(attrValue != null && attrValue.Length > 0) 2383if (attrValue != null && attrValue.Length > 0) 2403if (attrValue != null && attrValue.Length > 0) 2445if (attrValue != null && attrValue.Length > 0) 2491 if(attrValue != null && attrValue.Length > 0) 2518 if(attrValue != null && attrValue.Length > 0) 2544 if(attrValue != null && attrValue.Length > 0) 2571 if(attrValue != null && attrValue.Length > 0) 2720 if(attrValue != null && attrValue.Length > 0)
Common\ChartTypes\KagiChart.cs (3)
157 if(series.ChartArea.Length > 0 && 257 if(kagiSeries.ChartArea.Length > 0) 292attrValue = attrValue.Substring(0, attrValue.Length - 1);
Common\ChartTypes\LineChart.cs (4)
488 pointMarkerImage.Length > 0 || 491 point.Label.Length > 0 ) 698 ser.Points[0].MarkerImage.Length > 0 || 701 ser.Points[0].Label.Length > 0 )
Common\ChartTypes\PieChart.cs (9)
1090 if(text.Length == 0) 1262sizeLabel.Width += sizeLabel.Width / text.Length; 1403float spacing = valueTextSize.Width / text.Length / 2; 1729 if( pointLabel.Length == 0 && point.IsValueShownAsLabel ) 5434 if(text.Length == 0) 5501float spacing = valueTextSize.Width / text.Length / 2; 5578 sizeLabel.Width += sizeLabel.Width / text.Length; 5617 if( point.Label.Length == 0 ) 5644 if( point.Label.Length == 0 && point.IsValueShownAsLabel )
Common\ChartTypes\PointAndFigureChart.cs (4)
181 if(series.ChartArea.Length > 0 && 292 if(pointAndFigureSeries.ChartArea.Length > 0) 381attrValue = attrValue.Substring(0, attrValue.Length - 1); 725 pointAndFigureSeries.ChartArea.Length > 0)
Common\ChartTypes\PointChart.cs (13)
304 if( ShiftedSerName.Length == 0) 323 if( ShiftedSerName.Length > 0) 468 pointMarkerImage.Length > 0) 671 if((!point.IsEmpty && (ser.IsValueShownAsLabel || pointShowLabelAsValue || pointLabel.Length > 0)) || 672 (pointShowLabelAsValue || pointLabel.Length > 0)) 682if (pointLabel.Length == 0) 708float horizontalSpacing = sizeLabel.Width / text.Length; 714if (attrib == null || attrib.Length == 0) 719if (attrib != null && attrib.Length > 0) 831if (text.Trim().Length != 0) 1205 pointMarkerImage.Length > 0) 1422if (markerImage.Length > 0) // Get image size 1758 pointMarkerImage.Length > 0)
Common\ChartTypes\RadarChart.cs (10)
743 if(markerStyle != MarkerStyle.None || point.MarkerImage.Length > 0) 967if(markerImage.Length > 0) 1043 if((!point.IsEmpty && (ser.IsValueShownAsLabel || pointShowLabelAsValue || pointLabel.Length > 0)) || 1044 (pointShowLabelAsValue || pointLabel.Length > 0)) 1054if (pointLabel.Length == 0) 1077sizeLabel.Width += sizeLabel.Width / text.Length; 1082if (attrib == null || attrib.Length == 0) 1086if (attrib != null && attrib.Length > 0) 1199if (text.Trim().Length != 0) 1578 if(markerStyle != MarkerStyle.None || point.MarkerImage.Length > 0)
Common\ChartTypes\RangeChart.cs (1)
412 else if( point.BackImage.Length > 0 && point.BackImageWrapMode != ChartImageWrapMode.Unscaled && point.BackImageWrapMode != ChartImageWrapMode.Scaled)
Common\ChartTypes\RenkoChart.cs (3)
162 if(series.ChartArea.Length > 0 && 265if (renkoSeries.ChartArea.Length > 0) 308 attrValue = attrValue.Substring(0, attrValue.Length - 1);
Common\ChartTypes\StackedAreaChart.cs (12)
621else if (point.BackImage.Length > 0 && point.BackImageWrapMode != ChartImageWrapMode.Unscaled && point.BackImageWrapMode != ChartImageWrapMode.Scaled) 643if (point.Label.Length > 0 || point.IsValueShownAsLabel) 990 if(!point.IsEmpty && (ser.IsValueShownAsLabel || point.IsValueShownAsLabel || point.Label.Length > 0)) 1000if (point.Label.Length == 0) 1004if (this.hundredPercentStacked && point.LabelFormat.Length == 0) 1044sizeLabel.Width += sizeLabel.Width / text.Length; 1438 if( pointEx.dataPoint.Label.Length > 0 || 1475 if((!pointEx.dataPoint.IsEmpty && (pointEx.dataPoint.series.IsValueShownAsLabel || pointShowLabelAsValue || pointLabel.Length > 0)) || 1476 (pointShowLabelAsValue || pointLabel.Length > 0)) 1486if (pointLabel.Length == 0) 1490if (this.hundredPercentStacked && pointEx.dataPoint.LabelFormat.Length == 0) 1526sizeLabel.Width += sizeLabel.Width / text.Length;
Common\ChartTypes\StackedBarChart.cs (12)
1005 if(stackGroupName.Length > 0) 1049if (point.IsValueShownAsLabel || point.Label.Length > 0) 1053if (this.hundredPercentStacked && point.LabelFormat.Length == 0) 1060if (point.Label.Length == 0) 1085if (text.Trim().Length != 0) 1111if (valueLabelAttrib != null && valueLabelAttrib.Length > 0) 1182sizeLabel.Width += sizeLabel.Width / text.Length; 1807 if(ser.IsValueShownAsLabel || point.IsValueShownAsLabel || point.Label.Length > 0) 1820if (point.Label.Length == 0) 1824if (this.hundredPercentStacked && point.LabelFormat.Length == 0) 1858if (valueLabelAttrib != null && valueLabelAttrib.Length > 0) 2086sizeLabel.Width += sizeLabel.Width / text.Length;
Common\ChartTypes\StackedColumnChart.cs (11)
1011 if(stackGroupName.Length > 0) 1129if (point.IsValueShownAsLabel || point.Label.Length > 0) 1133if (point.Label.Length == 0) 1137if (this.hundredPercentStacked && point.LabelFormat.Length == 0) 1165if (text.Trim().Length != 0) 1239sizeLabel.Width += sizeLabel.Width / text.Length; 1716 if( point.IsValueShownAsLabel || point.Label.Length > 0 ) 1845if (point.IsValueShownAsLabel || point.Label.Length > 0) 1849if (point.Label.Length == 0) 1853if (this.hundredPercentStacked && point.LabelFormat.Length == 0) 1951sizeLabel.Width += sizeLabel.Width / text.Length;
Common\ChartTypes\StockChart.cs (19)
536 if(point.MarkerStyle != MarkerStyle.None || point.MarkerImage.Length > 0) 549if (point.MarkerImage.Length > 0) 683 if(styleType != null && styleType.Length > 0) 712 if(showOpenClose != null && showOpenClose.Length > 0) 751 if(attrValue != null && attrValue.Length > 0) 774 if(attrValue != null && attrValue.Length > 0) 937 if(ser.IsValueShownAsLabel || point.IsValueShownAsLabel || point.Label.Length > 0) 952if (point.Label.Length == 0) 997if (text.Trim().Length != 0) 1016if (point.MarkerImage.Length > 0) 1064sizeLabel.Width += sizeLabel.Width / text.Length; 1363 if(point.MarkerStyle != MarkerStyle.None || point.MarkerImage.Length > 0) 1376if (point.MarkerImage.Length > 0) 1508 if(styleType != null && styleType.Length > 0) 1537 if(showOpenClose != null && showOpenClose.Length > 0) 1576 if(attrValue != null && attrValue.Length > 0) 1599 if(attrValue != null && attrValue.Length > 0) 1883if (point.MarkerImage.Length > 0) 1907 pointMarkerImage.Length > 0)
Common\ChartTypes\ThreeLineBreakChart.cs (2)
163 if(series.ChartArea.Length > 0 && 267if (threeLineBreakSeries.ChartArea.Length > 0)
Common\Converters\CustomAttributesConverters.cs (2)
543 if(stringValue == null || stringValue.Length == 0) 884 if(this._displayName.Length > 0)
Common\Converters\DataManagerConverters.cs (2)
806 if(result.Length > 0) 826 if(colorNames.Length > 0)
Common\DataManager\DataPoint.cs (29)
186 else if(sortBy.Length == 2 && 301 if(dataPoint.AxisLabel.Length > 0 && series != null) 351 if(otherFields != null && otherFields.Length > 0) 375 if(bracketIndex > 0 && otherFieldNames[index][otherFieldNames[index].Length - 1] == '}') 485if (xField.Length > 0) 1167 if(fieldName != null && fieldName.Length > 0) 1205 if(fieldName != null && fieldName.Length > 0) 1241 if(fieldName != null && fieldName.Length > 0) 1296if (fieldName != null && fieldName.Length > 0) 1376 if(field != null && field.Length > 0) 1418 if(field != null && field.Length > 0) 1459 if(field != null && field.Length > 0) 1495if (field != null && field.Length > 0) 1966 if(stringValue.Length > 0) 2403 if(valueName.Length == 1) 2446 if(strOriginal == null || strOriginal.Length == 0) 2564int keyEndIndex = keyIndex + keyword.Length; 2565if (result.Length > keyEndIndex && result[keyEndIndex] == '{') 2603int keyEndIndex = keyStartIndex + KeywordName.CustomProperty.Length; 2606if (result.Length > keyEndIndex && result[keyEndIndex] == '(') 3357 if(value.Length > 0 && series != null) 4703 if(result.Length > 0) 4736 if(value.Length > 0) 4757 if(values[0].Length == 0) 6982 if(customAttribute.Length > 0) 6998 if(values[0].Length == 0) 7016 if(userDefinedCustomAttribute.Length > 0) 7041 if(val.Length > 0) 7044 if(properties.Length > 0)
Common\DataManager\DataSeries.cs (9)
1006 for (int index = 0; index < this.Name.Length; index++) 1094 if(strOriginal == null || strOriginal.Length == 0) 1215 int keyEndIndex = keyIndex + keyword.Length; 1219 if(result.Length > keyEndIndex + 1 && 1229 if(result.Length > keyEndIndex && result[keyEndIndex] == '{') 1334 int keyEndIndex = keyIndex + keyword.Length; 1336 if(result.Length > keyEndIndex && result[keyEndIndex] == '{') 1993 if(this._checkPointsNumber && this.ChartTypeName.Length > 0 && this.Common != null) 2430 if(_chartType != value && value.Length > 0)
Common\General\Axis.cs (16)
1743if (this.Title.Length > 0) 3391if (this.Title.Length > 0) 4673if (textRows[rowIndex].Length > longestLabelSize && textRows[rowIndex].Trim().IndexOf(' ') > 0) 4675longestLabelSize = textRows[rowIndex].Length; 4688for (index = 0; index < (newText.Length) / 2 - 1; index++) 4690if (newText[(newText.Length) / 2 - index] == ' ') 4693newText.Substring(0, (newText.Length) / 2 - index) + 4695newText.Substring((newText.Length) / 2 - index + 1); 4698else if (newText[(newText.Length) / 2 + index] == ' ') 4701newText.Substring(0, (newText.Length) / 2 + index) + 4703newText.Substring((newText.Length) / 2 + index + 1); 5316if (label.Image.Length > 0) 5471if (label.Text.Length > 0 && 5487if (label.Image.Length > 0) 5721if (label.Image.Length > 0) 5944 if(label.Image.Length > 0)
Common\General\AxisLabels.cs (7)
515 if( dataPoint.AxisLabel.Length > 0 ) 648 if( pointLabel.Length == 0 ) 747 if( pointLabel.Length > 15 && labValue < 0.000001) 752 if( pointLabel.Length == 0 ) 820 if( ser.Points[ 0 ].AxisLabel.Length > 0 && ser.Points[ ser.Points.Count - 1 ].AxisLabel.Length > 0 ) 909 if(point.AxisLabel.Length == 0 && nonZeroXValues)
Common\General\AxisScaleSegments.cs (1)
528 if( chart.BackImage.Length > 0 &&
Common\General\Chart.cs (21)
719if (series.YValueMembers.Length > 0) 736 if(series.XValueMember.Length > 0 || series.YValueMembers.Length > 0) 778 if(series.XValueMember.Length > 0 || series.YValueMembers.Length > 0) 786 if(series.YValueMembers.Length > 0) 820 while(yField.Length == 0 && fieldIndex < yFieldNames.Length) 841 if(series.XValueMember.Length > 0) 865 if(yFieldNames[i].Length > 0) 950 if(series.XSubAxisName.Length == 0) 1005 if(point.AxisLabel.Length == 0) 1240 if(xField.Length > 0) 1371if (xField != null && xField.Length > 0) 3745 if( series.ToolTip.Length > 0) 3752 if( series.LegendToolTip.Length > 0 || 3753 series.LabelToolTip.Length > 0) 3766 if( point.ToolTip.Length > 0) 3772 if( point.LegendToolTip.Length > 0 || 3773 point.LabelToolTip.Length > 0) 3788 if( legendItem.ToolTip.Length > 0 ) 3799 if( title.ToolTip.Length > 0 )
Common\General\ChartArea.cs (1)
2919 if(series.Points[sectorIndex].AxisLabel.Length > 0)
Common\General\ChartAreaAxes.cs (1)
1575 if(subAxisName.Length > 0)
Common\General\ChartGraphics.cs (11)
705 if(markerImage.Length > 0) 2127if (image.Length > 0) 3489 if( backImage.Length > 0 && backImageWrapMode != ChartImageWrapMode.Unscaled && backImageWrapMode != ChartImageWrapMode.Scaled) 3520 if( backImage.Length > 0 && (backImageWrapMode == ChartImageWrapMode.Unscaled || backImageWrapMode == ChartImageWrapMode.Scaled)) 4183 if( backImage.Length > 0 && backImageWrapMode != ChartImageWrapMode.Unscaled && backImageWrapMode != ChartImageWrapMode.Scaled) 4200 if( backImage.Length > 0 && (backImageWrapMode == ChartImageWrapMode.Unscaled || backImageWrapMode == ChartImageWrapMode.Scaled)) 4300 if( backImage.Length > 0 && backImageWrapMode != ChartImageWrapMode.Unscaled && backImageWrapMode != ChartImageWrapMode.Scaled) 4487 if( backImage.Length > 0 && backImageWrapMode != ChartImageWrapMode.Unscaled && backImageWrapMode != ChartImageWrapMode.Scaled) 4497 if( backImage.Length > 0 && (backImageWrapMode == ChartImageWrapMode.Unscaled || backImageWrapMode == ChartImageWrapMode.Scaled)) 4618 if( backImage.Length > 0 && backImageWrapMode != ChartImageWrapMode.Unscaled && backImageWrapMode != ChartImageWrapMode.Scaled) 5039 else if( backImage.Length > 0 && backImageWrapMode != ChartImageWrapMode.Unscaled && backImageWrapMode != ChartImageWrapMode.Scaled )
Common\General\ChartGraphics3D.cs (1)
3495 if(markerImage.Length > 0 ||
Common\General\ChartRenderingEngine.cs (2)
640 if(hRef.Length > 0 || tooltip.Length > 0)
Common\General\ChartSerializer.cs (2)
670 if(this.NonSerializableContent.Length != 0) 680 if(this.SerializableContent.Length != 0)
Common\General\DataManipulator.cs (2)
319 else if(series.Length > 0) 3149 if(formulaParts[0].Length == 0)
Common\General\FormulaData.cs (1)
625if (parts[1].Length == 0)
Common\General\Label.cs (1)
1156if (circAxis.Title.Length > 0)
Common\General\Legend.cs (19)
467 if(this.Title.Length > 0) 496 if(legendColumn.HeaderText.Length > 0) 934 if(this.Title.Length > 0) 946 if(legendColumn.HeaderText.Length > 0) 1889 if(legendColumn.HeaderText.Length > 0) 2098 if(series.ChartArea.Length > 0) 2182 if(item.Name.Length == 0) 2184 item.Name = point.ReplaceKeywords((point.Label.Length > 0) ? point.Label : point.AxisLabel); 2188 if(item.Name.Length == 0 && xValuesSet) 2201 if(item.Name.Length == 0) 2210 if(cell.Text.Length > 0) 2250if (series.LegendText.Length > 0) 2259 if(cell.Text.Length > 0) 3630 if(value.Length == 0) 3974 if(this.Title.Length > 0) 4006 if(legendColumn.HeaderText.Length > 0) 4267 if(this.Title.Length > 0 && 4733 if(this.DockedToChartArea.Length > 0 && 6126 if(this.SeriesName.Length > 0)
Common\General\LegendColumns.cs (11)
1505 if(this.ImageSize.IsEmpty && this.Image.Length > 0) 1705 if(this.ToolTip.Length > 0) 1731 if(this._url.Length > 0) 1757 if(this._mapAreaAttribute.Length > 0) 1783if (this._postbackValue.Length > 0) 1826 resultString.Length > recomendedTextLength) 1830 for(int charIndex = 0; charIndex < resultString.Length; charIndex++) 2089 if(this.Image.Length > 0) 2284 if(legendItem.Image.Length > 0) 2404 legendItem.markerImage.Length > 0) 2428 if(legendItem.markerImage.Length > 0)
Common\General\Selection.cs (36)
525 if(point.ToolTip.Length > 0 || 526 point.Url.Length > 0 || 527point.MapAreaAttributes.Length > 0 || 528point.PostBackValue.Length > 0 598 if(point.ToolTip.Length > 0 || 599 point.Url.Length > 0 || 600point.MapAreaAttributes.Length > 0 || 601point.PostBackValue.Length > 0 681 if(point.ToolTip.Length > 0 || 682 point.Url.Length > 0 || 683point.MapAreaAttributes.Length > 0 || 684point.PostBackValue.Length > 0) 753 if(point.ToolTip.Length > 0 || 754 point.Url.Length > 0 || 755point.MapAreaAttributes.Length > 0 || 756point.PostBackValue.Length > 0) 822 if(point.ToolTip.Length > 0 || 823 point.Url.Length > 0 || 824point.MapAreaAttributes.Length > 0 || 825point.PostBackValue.Length > 0 ) 911 if(toolTip.Length > 0 || 912 hRef.Length > 0 || 913mapAreaAttributes.Length > 0 || 914postBackValue.Length > 0) 983 if(toolTip.Length > 0 || 984 hRef.Length > 0 || 985mapAreaAttributes.Length > 0 || 986postBackValue.Length > 0) 1048if(toolTip.Length > 0 || 1049 hRef.Length > 0 || 1050 mapAreaAttributes.Length > 0 || 1051postBackValue.Length > 0) 2071if (region.SeriesName.Length > 0 && 2217if (region.SeriesName.Length > 0) 2272if ((title.Text.Length == 0 || title.ForeColor == Color.Transparent) && 2304if (seriesName.Length > 0)
Common\General\StripLine.cs (2)
619 if(this.Text.Length > 0) 640 if(this.Text.Length > 0)
Common\General\Title.cs (4)
420 if(value.Length == 0) 1212 this.BackImage.Length > 0 || 1277 if(this.DockedToChartArea.Length > 0 && 1725if (titleText.Length > 0)
Common\Utilities\KeywordsRegistry.cs (1)
478 if(this.KeywordAliases.Length > 0)
Common\Utilities\ValueConverter.cs (4)
75 if(convertionFormat != null && convertionFormat.Length > 0) 112 if(convertionFormat.Length == 0) 125 if(convertionFormat.Length == 0) 138 if(convertionFormat.Length == 0)
Common\Utilities\XmlSerializer.cs (22)
564 if(standardData.Length > charIndex) 575 if(standardData.Length > charIndex) 610 return (short)(hashCodeProvider.GetHashCode(str) + str.Length * 2); 749 if(itemTypeName.Length > 0) 761 if(itemName != null && itemName.Length > 0) 939 if(_serializableContent.Length > 0 || _nonSerializableContent.Length > 0) 1032 if(itemInfo.name.Length <= objectName.Length) 1034 if(objectName.Substring(0, itemInfo.name.Length) == itemInfo.name) 1045 if(itemInfo.name.Length <= objectName.Length) 1047 if(objectName.Substring(objectName.Length - itemInfo.name.Length, itemInfo.name.Length) == itemInfo.name) 1075if (typeConverterAttrib != null && typeConverterAttrib.ConverterTypeName.Length > 0) 1190 (this.SerializableContent.Length > 0 ) ? this.SerializableContent : "*.*"); 1218 if(content.Length > 0) 1235 if(classInfo.name.Length == 0) 1239 if(propertyInfo.name.Length == 0) 1278 else if(info.name[info.name.Length - 1] == '*') 2042 if(templateString != null && templateString.Length > 0)
WebForm\ChartWebControl.cs (3)
419if (this._currentChartImageLocation.Length > 0) 430if (this.ImageLocation.Length == 0) 775if (String.IsNullOrEmpty(str) || str.Length > 7)
System.Web.DynamicData (2)
DynamicData\DynamicDataExtensions.cs (1)
305int dataValueStringLength = dataValueString.Length;
DynamicData\DynamicValidator.cs (1)
137} else if (controlValue.Length != 0) {
System.Web.Entity (8)
System\Data\WebControls\EntityDataSourceUtil.cs (1)
659if (int.TryParse(components[0].Substring("SRID=".Length), NumberStyles.AllowLeadingSign, CultureInfo.InvariantCulture, out srid))
System\Data\WebControls\EntityDataSourceView.cs (2)
803if (0 < propertyName.Length && null != de.Value) 1696if ((stringValue != null) && (stringValue.Length == 0))
System\Data\WebControls\OrderByBuilder.cs (5)
159return statement.Substring(0, statement.Length - tail.Length); 168return statement.Substring(0, statement.Length - tail.Length); 214if (_argsSortExpression != null & _argsSortExpression.Trim().Length > 0)
System.Web.Entity.Design (6)
System\Data\WebControls\Design\EntityDataSourceDataSelection.cs (3)
379if (name[0] == '[' && name[name.Length - 1] == ']') 381return name.Substring(1, name.Length - 2).Replace("]]", "]"); 412int propertyIndex = ReadPropertyName(propertyName.Substring(s_itKeyword.Length));
System\Data\WebControls\Design\EntityDataSourceDesignerHelper.cs (3)
877indexStart + s_dataDirectory.Length, 917return String.Concat(dataDirectoryPath, trimmedPath.Substring(s_dataDirectory.Length)); 952metadataPaths.Add(String.Concat(rootItem.PhysicalPath, resourcePath.Substring(s_virtualRoot.Length)));
System.Web.Extensions (72)
ApplicationServices\ApplicationServiceHelper.cs (1)
224if (property.Length > 0) {
ClientServices\Providers\ProxyHelper.cs (6)
301if (name.Length == 32 && value == "Q") // this is our munged cookie. Skip it. 316if (s != null && s.Trim().Length > 0) 353if (cookieValue.Length > 0) 395if (cookieHeader.Length != 34 || cookieHeader[33] != 'Q' || cookieHeader.IndexOf('=') != 32) 412StringBuilder sb = new StringBuilder((connectionString==null) ? actualCookieValue : "Q", cookieValue.Length); 433if (actualCookieValue.Length < 1) // No value: browser wants us to delete the cookie
Compilation\WCFBuildProvider.cs (4)
437if (webReferencesRootVirtualPath.Length == virtualPath.Length) 450virtualPath = VirtualPathUtility.RemoveTrailingSlash(virtualPath).Substring(webReferencesRootVirtualPath.Length); 503for (int i = 0; i < typeName.Length; i++)
Compilation\WCFModel\MetadataFile.cs (5)
508if (ns.Length > defaultExtension.Length && ns.EndsWith(defaultExtension, StringComparison.OrdinalIgnoreCase)) 510ns = ns.Substring(0, ns.Length - defaultExtension.Length); 513if (ns.Length > 0)
Compilation\WCFModel\MetadataSource.cs (1)
70if (protocol.Length == 0)
Compilation\WCFModel\SchemaMerger.cs (4)
603if (name1.Length > 0) 605if (name2.Length > 0) 621else if (name2.Length > 0) 651if (itemName.Length > 0)
Compilation\WCFModel\VSWCFServiceContractGenerator.cs (3)
1055Debug.Assert(originalNamespace.Length == 0 || originalNamespace.EndsWith(".", StringComparison.Ordinal)); 1056Debug.Assert(replacementNamespace.Length == 0 || replacementNamespace.EndsWith(".", StringComparison.Ordinal)); 1062return replacementNamespace + typeName.Substring(originalNamespace.Length);
Globalization\ClientCultureInfo.cs (1)
125if (json.Length > 0) {
Handlers\ScriptResourceHandler.cs (3)
67scriptResourceName.Substring(0, scriptResourceName.Length - 9) + ".js" : 140realName.CultureInfo = (cultureString.Length > 0) ? 786if (resourceUrl.Length > _maximumResourceUrlLength) {
Script\Serialization\JavaScriptSerializer.cs (1)
33if (input.Length > serializer.MaxJsonLength) {
Script\Serialization\JavaScriptString.cs (6)
22while (_s.Length > _index) { 33if (_s.Length > _index) { 41if (_s.Length >= _index + count) { 65if (_s.Length > _index) { 77if (_s.Length > _index) { 85if (_s.Length > _index + length) {
Script\Services\ClientProxyGenerator.cs (2)
223int domainStart = proxyPath.IndexOf("://", StringComparison.OrdinalIgnoreCase) + "://".Length; 433startFrom = nsIndex + namespacePart.Length + 1;
Script\Services\RestHandler.cs (1)
29if (context.Request.PathInfo.Length < 2 || context.Request.PathInfo[0] != '/') {
UI\ApplicationServiceManager.cs (1)
19if(serviceUrl.Length > 0) {
UI\AsyncPostBackTrigger.cs (1)
100if (eventName.Length != 0) {
UI\AuthenticationServiceManager.cs (1)
37if(authServiceUrl.Length > 0) {
UI\CompositeScriptReference.cs (1)
74path = (path.Substring(0, path.Length - 2) + cultureName + ".js");
UI\ControlUtil.cs (1)
49if (hiddenFieldName.Length <= 2) {
UI\PageRequestManager.cs (2)
146writer.Write(content.Length.ToString(CultureInfo.InvariantCulture)); 474if (focusedControlId.Length > 0) {
UI\ProfileServiceManager.cs (2)
44if(profileServiceUrl.Length > 0) { 155if((trimmedProperty.Length > 0) && !existingProperties.Contains(trimmedProperty)) {
UI\RoleServiceManager.cs (1)
41if(roleServiceUrl.Length > 0) {
UI\ScriptManager.cs (1)
2035string iFrameUrl = (EmptyPageUrl.Length == 0) ?
UI\ScriptReference.cs (1)
170resourceName = resourceName.Substring(0, resourceName.Length - 2) +
UI\ScriptReferenceBase.cs (1)
192return (pathOrName.Substring(0, pathOrName.Length - 2) + "debug.js");
UI\ScriptRegistrationManager.cs (2)
125if (tweenSpace.Trim().Length != 0) { 713CheckScriptTagTweenSpace(activeRegistration, scriptContent, lastIndex, scriptContent.Length - lastIndex);
UI\ScriptResourceAttribute.cs (3)
136output.Append(content.Substring(startIndex, content.Length - startIndex)); 148return rawResourceName.Substring(0, rawResourceName.Length - 10); 162string releaseResourceName = resourceName.Substring(0, resourceName.Length - 9) + ".js";
UI\WebControls\Dynamic.cs (6)
650textLen = text.Length; 938string s = token.text.Substring(1, token.text.Length - 2); 947if (s.Length != 1) 984char last = text[text.Length - 1]; 987if (Single.TryParse(text.Substring(0, text.Length - 1), out f)) value = f; 2031if (id.Length > 1 && id[0] == '@') id = id.Substring(1);
UI\WebControls\ListView.cs (3)
2039if (convertEmptyStringToNull && value is string && ((string)value).Length == 0) { 3211(_sortExpression != null && _sortExpression.Length != 0) || 3223state[4] = (_sortExpression == null || _sortExpression.Length == 0) ? null : (object)_sortExpression;
UI\WebControls\QueryableDataSource.cs (1)
75if ((viewName.Length != 0) &&
UI\WebResourceUtil.cs (5)
118orderby s.Length descending 119select s.Length).First(); 124group s by s.Length into g 137if (s.Length >= _table.Length) { 141string[] strings = _table[s.Length];
Util\HexParser.cs (1)
14byte[] tokenBytes = new byte[token.Length / 2];
System.Web.Mobile (391)
Mobile\ConfigurationSectionHelper.cs (1)
58if(required && (attributeNode.Value != null && attributeNode.Value.Length == 0))
Mobile\UrlPath.cs (13)
31return(basepath == null || basepath.Length == 0 || basepath[0] == '/' || basepath[0] == '\\'); 47if (path == null || path.Length == 0) 58Debug.Assert(path[path.Length-1] != '/', "Path should not end with a /"); 63if (dir.Length == 0) 73if (path == null || path.Length < 4) 94if (path == null || path.Length == 0) 103if (relative.Length >=3 && relative[0] == appRelativeCharacter && (relative[1] == '/' || relative[1] == '\\')) 106if (appPath.Length > 1) 117if (basepath == null || (basepath.Length == 1 && basepath[0] == '/')) 143int length = path.Length; 241if (virtualPath.Length == 1 && virtualPath[0] == appRelativeCharacter) 246if (virtualPath.Length >=2 && virtualPath[0] == appRelativeCharacter && 251if (appPath.Length > 1)
UI\MobileControls\Adapters\ChtmlCalendarAdapter.cs (3)
181if (controlId != null && controlId.Length != 0) 439_textBox.Size = numericDateFormat.Length; 440_textBox.MaxLength = numericDateFormat.Length;
UI\MobileControls\Adapters\ChtmlFormAdapter.cs (1)
116charset != null && charset.Length > 0)
UI\MobileControls\Adapters\ChtmlImageAdapter.cs (3)
39source.Substring(Constants.SymbolProtocol.Length)); 49Constants.SymbolProtocol.Length); 70for (int i = decimalString.Length - 1; i >= 0; i--)
UI\MobileControls\Adapters\ChtmlPageAdapter.cs (3)
93bool postBack = form.Action.Length == 0; 285int pageBeginPos = index + Constants.PagePrefix.Length; 290name.Length - pageBeginPos));
UI\MobileControls\Adapters\EmptyTextWriter.cs (1)
341for (int i = s.Length - 1; i >= 0; i--)
UI\MobileControls\Adapters\HtmlCommandAdapter.cs (3)
69if (form.Action.Length > 0) 128&& postX.Length > 0 && postY.Length > 0)
UI\MobileControls\Adapters\HtmlControlAdapter.cs (1)
118String name = target.Substring(prefix.Length);
UI\MobileControls\Adapters\HtmlFormAdapter.cs (11)
102if (Control.Action.Length > 0) 132if (queryStringText != null && queryStringText.Length > 0) 231charset != null && charset.Length > 0) 313if((page > 1) || (text.Length > 0) || (page < pageCount)) 325if (text.Length > 0) 337if((page > 1) || (text.Length > 0) || (page < pageCount)) 362queryString.Length > 0 || 3680, Constants.UniqueFilePathSuffixVariable.Length - 1), 378if (queryString != null && queryString.Length != 0) 395Debug.Assert(queryString != null && queryString.Length > 0, 400int l = queryString.Length;
UI\MobileControls\Adapters\HtmlLabelAdapter.cs (1)
49int length = s.Length;
UI\MobileControls\Adapters\HtmlListAdapter.cs (1)
180if (listSuffix == null || listSuffix.Length > 0)
UI\MobileControls\Adapters\HtmlMobileTextWriter.cs (8)
94if (null == text || text.Length == 0) { 98int length = text.Length; 293if(text != null && text.Length == 0) 750if(Name == null || Name.Length > 0) 761if(name == null || name.Length > 0) 1163(newStyle.FontName != null && newStyle.FontName.Length == 0) && 1164(_current.FontName == null || _current.FontName.Length > 0) && 1167while(_current.FontName == null || _current.FontName.Length > 0)
UI\MobileControls\Adapters\HtmlObjectListAdapter.cs (7)
239String moreText = Control.MoreText.Length == 0 ? 323String moreText = Control.MoreText.Length == 0 ? 423String backCommandText = Control.BackCommandText.Length == 0 ? 490String backCommandText = Control.BackCommandText.Length == 0 ? 588return Int32.Parse(arg.Substring(ShowMore.Length), CultureInfo.InvariantCulture); 649return Control.DefaultCommand.Length > 0; 659if (defaultCommand.Length > 0)
UI\MobileControls\Adapters\HtmlPageAdapter.cs (5)
204if (queryStringText != null && queryStringText.Length > 0) 263bool postBack = form.Action.Length == 0; 276if (form.Action.Length > 0) 404if(preferredResponseEncoding != null && preferredResponseEncoding.Length > 0) { 408if(preferredRequestEncoding != null && preferredRequestEncoding.Length > 0) {
UI\MobileControls\Adapters\HtmlSelectionListAdapter.cs (2)
255(selectedItems.Length == 1 && (selectedItems[0] != null && selectedItems[0].Length == 0))) 333if (Control.IsMultiSelect || Control.Form.Action.Length > 0 || !IsViewStateEnabled())
UI\MobileControls\Adapters\HtmlTextBoxAdapter.cs (2)
55if ((Control.Text == null || Control.Text.Length > 0) && !Control.Password) 101if (Control.Form.Action.Length > 0 || (!IsViewStateEnabled() && Control.Text != _staticValue))
UI\MobileControls\Adapters\HtmlTextViewAdapter.cs (2)
78end = element.Text.Length; 82if (begin > 0 || end < text.Length)
UI\MobileControls\Adapters\HtmlValidationSummaryAdapter.cs (2)
73if (Control.HeaderText.Length > 0) 81Debug.Assert(errorMessage != null && errorMessage.Length > 0, "Bad Error Messages");
UI\MobileControls\Adapters\MobileTextWriter.cs (1)
149if (contentType != null && contentType.Length > 0)
UI\MobileControls\Adapters\UpWmlMobileTextWriter.cs (11)
102Constants.UniqueFilePathSuffixVariableWithoutEqual.Length + 1; 114if (filePathSuffix != null && filePathSuffix.Length == _filePathSuffixLength) 178if (queryString != null && queryString.Length > 0) 274int weight = text != null ? text.Length : 0; 317if (breakAfter && (text != null && text.Length == 0)) 341if (targetUrl != null && targetUrl.Length > 0 && targetUrl[0] != '#') 421if (_softkeyLabel == null || _softkeyLabel.Length == 0) 682if (_softkeyLabel == null || _softkeyLabel.Length == 0) 791if (CurrentForm.Action.Length > 0) 969if (externalSubmit && url.Length > 0) 1174if (formTitle != null && formTitle.Length > 0)
UI\MobileControls\Adapters\WmlCalendarAdapter.cs (3)
163if (controlId != null && controlId.Length != 0) 416_textBox.Size = numericDateFormat.Length; 417_textBox.MaxLength = numericDateFormat.Length;
UI\MobileControls\Adapters\WmlControlAdapter.cs (5)
89if (!implicitSoftkeyLabel && softkeyLabel.Length > 0) 111String formID = targetUrl.Substring(prefix.Length); 187String formID = target.Substring(prefix.Length); 241if (softkeyLabel == null || softkeyLabel.Length == 0) 250if (!implicitSoftkeyLabel && softkeyLabel.Length > 0)
UI\MobileControls\Adapters\WmlFormAdapter.cs (1)
216if (eventSource.Length > 0)
UI\MobileControls\Adapters\WmlImageAdapter.cs (2)
43if (softkeyLabel.Length == 0) 68localSource = source.Substring(Constants.SymbolProtocol.Length);
UI\MobileControls\Adapters\WmlLinkAdapter.cs (1)
50if (softkeyLabel.Length == 0)
UI\MobileControls\Adapters\WmlMobileTextWriter.cs (30)
274if (url.Length - ampPos <= ampEscaped.Length || 275url.Substring(ampPos + 1, ampEscaped.Length) != ampEscaped) 279ampPos = url.IndexOf(ampersand, ampPos + ampEscaped.Length + 1); 308if (softkeyLabel != null && softkeyLabel.Length > 0 && !RequiresNoSoftkeyLabels()) 366if (format != null && format.Length > 0) 370if (title != null && title.Length > 0) 384(value.Length > 0 || password)) 432if (softkeyLabel != null && softkeyLabel.Length > 0 && !RequiresNoSoftkeyLabels()) 488if (name != null && name.Length > 0) 494if (iname != null && iname.Length > 0) 500if (!_writtenFormVariables && ivalue != null && ivalue.Length > 0) 504if (title != null && title.Length >0) 608label.Length > 0 && 609label.Length <= Device.MaximumSoftkeyLabelLength; 635externalSubmit = CurrentForm.Action.Length > 0; 694if(externalSubmit && queryString != null && queryString.Length > 0) 711if (queryString != null && queryString.Length > 0) 849if (externalSubmit && url.Length > 0) 873int valueStart = index + formsAuthCookieName.Length + 1; 875if(valueStart < queryString.Length) 877int length = ((valueEnd != -1) ? valueEnd : queryString.Length) - valueStart; 904if (queryString != null && queryString.Length > 0) 940if (title.Length > 0) 1051if (text != null && text.Length > 0) 1246int cb = value.Length; 1338if (postBackType != WmlPostFieldType.Submit || CurrentForm.Action.Length == 0) 1490bool shortID = clientID.Length < _maxShortNameLength; 1530int unnamedIdPrefixLength = unnamedIdPrefix.Length; 1531if (clientID.Length > unnamedIdPrefixLength &&
UI\MobileControls\Adapters\WmlObjectListAdapter.cs (7)
238String detailsCommandText = Control.DetailsCommandText.Length == 0 ? 241String softkeyLabel = detailsCommandText.Length <= Device.MaximumSoftkeyLabelLength ? 268String backCommandText = Control.BackCommandText.Length == 0 ? 271String softkeyLabel = backCommandText.Length <= Device.MaximumSoftkeyLabelLength ? 374return Int32.Parse(arg.Substring(_showMore.Length), CultureInfo.InvariantCulture); 451return Control.DefaultCommand.Length > 0; 461if (defaultCommand.Length > 0)
UI\MobileControls\Adapters\WmlPageAdapter.cs (4)
291if (stackTrace.Length > maximumStackTrace) 305while (lineBegin < stackTrace.Length) 310lineEnd = stackTrace.Length; 405if (charset != null && charset.Length > 0 &&
UI\MobileControls\Adapters\WmlPhoneCallAdapter.cs (5)
54char[] plainNumber = new char[originalNumber.Length]; // allocate enough buffer size 92text = (controlText == null || controlText.Length > 0) ? 102if (url.Length == 0) 110if (softkeyLabel.Length == 0) 117if (!implicitSoftkeyLabel && softkeyLabel.Length > 0)
UI\MobileControls\Adapters\WmlSelectionListAdapter.cs (2)
208(selectedItems[0] != null && selectedItems[0].Length == 0)) || 270if (Control.Form.Action.Length > 0 || !IsViewStateEnabled())
UI\MobileControls\Adapters\WmlTextBoxAdapter.cs (1)
119if (Control.Form.Action.Length > 0 || (!IsViewStateEnabled() && Control.Text != _staticValue))
UI\MobileControls\Adapters\WmlTextViewAdapter.cs (2)
81end = element.Text.Length; 85if (begin > 0 || end < text.Length)
UI\MobileControls\Adapters\WmlValidationSummaryAdapter.cs (3)
73if (Control.HeaderText.Length > 0) 81Debug.Assert(errorMessage != null && errorMessage.Length > 0, "Bad Error Messages"); 91_link.Text = Control.BackLabel.Length == 0 ? GetDefaultLabel(BackLabel) : Control.BackLabel;
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicCalendarAdapter.cs (4)
156if (controlId != null && controlId.Length != 0) { 308if (promptText == null || promptText.Length == 0) { 384_textBox.Size = numericDateFormat.Length; 385_textBox.MaxLength = numericDateFormat.Length;
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicCommandAdapter.cs (3)
43if (postX != null && postY != null && postX.Length > 0 && postY.Length > 0) 62imageUrl.Length > 0 &&
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicControlAdapter.cs (19)
36return(basepath == null || basepath.Length == 0 || basepath[0] == '/' || basepath[0] == '\\'); 97if (accessKey != null && accessKey.Length > 0) { 107else if (cssClass != null && cssClass.Length > 0) { 146if (accessKey != null && accessKey.Length > 0) { 155else if (cssClass != null && cssClass.Length > 0) { 158if (title != null && title.Length > 0) { 179if (target == null || target.Length == 0) { 200if (prefix[prefix.Length - 1] != '/') { 224String name = target.Substring(prefix.Length); 321if (tag == null || tag.Length == 0) { 441if (StyleSheetLocationAttributeValue != null && StyleSheetLocationAttributeValue.Length > 0) { 473classAttribute.Length > 0 && 492classAttribute.Length > 0 && 534classAttribute.Length > 0 && 589if (attributeValue != null && attributeValue.Length > 0) { 617classAttribute.Length > 0 && 668if (s != null && s.Length > 0) { 722int length = queryString.Length; 728processedString.Append(queryString.Substring(offset, queryString.Length - offset));
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicFormAdapter.cs (12)
42if(formsAuthCookieName != null && formsAuthCookieName.Length > 0) 52if(Control.Action.Length > 0) { 66Control.Action.Length == 0) { // VSWhidbey 411176: We don't include QueryStringText if Action is explicitly set 69if (queryStringText != null && queryStringText.Length > 0) { 117bool postBack = Page.ActiveForm.Action.Length == 0; 207if (cssClass != null && cssClass. Length > 0) { 295if((page > 1) || (text.Length > 0) || (page < pageCount)) { 308if (text.Length > 0) { 319if((page > 1) || (text.Length > 0) || (page < pageCount)) { 331cssClass.Length > 0) { 374if (Control.Action.Length > 0) { 385if (url.Length > 0) {
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicImageAdapter.cs (5)
43if(target != null && target.Length > 0) { 54if(controlIU == null || controlIU.Length == 0) { 61if(target != null && target.Length > 0) { 77if(source != null && source.Length > 0) { 84if (alternateText == null || alternateText.Length == 0) {
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicLinkAdapter.cs (1)
40writer.WriteEncodedText(controlText == null || controlText.Length == 0 ? Control.NavigateUrl : controlText);
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicObjectListAdapter.cs (15)
142return controlDefaultCommand != null && controlDefaultCommand.Length > 0; 192return Int32.Parse(arg.Substring(ShowMore.Length), CultureInfo.InvariantCulture); 262if (subCommandClass == null || subCommandClass.Length == 0) { 271String backCommandText = (controlBCT == null || controlBCT.Length == 0) ? 296if (labelClass == null || labelClass.Length == 0) { 300bool requiresLabelClassSpan = CssLocation == StyleSheetLocation.PhysicalFile && labelClass != null && labelClass.Length > 0; 347String backCommandText = controlBCT == null || controlBCT.Length == 0 ? 448if (labelClass == null || labelClass.Length == 0) { 452bool requiresLabelClassSpan = CssLocation == StyleSheetLocation.PhysicalFile && labelClass != null && labelClass.Length > 0; 498bool requiresItemClassSpan = CssLocation == StyleSheetLocation.PhysicalFile && itemClass != null && itemClass.Length > 0; 522String moreText = (controlMT == null || controlMT.Length == 0) ? 559if (subCommandClass == null || subCommandClass.Length == 0) { 581String moreText = (controlMT == null || controlMT.Length == 0) ? GetDefaultLabel(MoreLabel) : controlMT; 596if (labelClass == null || labelClass.Length == 0) { 602if (CssLocation == StyleSheetLocation.PhysicalFile && labelClass != null && labelClass.Length > 0) {
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicPageAdapter.cs (6)
130if (name == null || name.Length == 0) { 143int pageBeginPos = index + Constants.PagePrefix.Length; 148name.Length - pageBeginPos)); 234cssLocation.Length != 0) { 350if (Page.ActiveForm.Paginate && Page.ActiveForm.Action.Length > 0) { 507if (queryStringText != null && queryStringText.Length > 0) {
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicPhoneCallAdapter.cs (3)
46if (text == null || text.Length == 0) { 73else if (cssClass != null && cssClass.Length > 0) { 91if (url != null && url.Length > 0) {
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicSelectionListAdapter.cs (4)
104(selectedItems.Length == 1 && (selectedItems[0] == null || selectedItems[0].Length == 0))) { 188if (accessKey != null && accessKey.Length > 0) { 258if (controlFormAction == null || controlFormAction.Length == 0) { 273if (Control.IsMultiSelect || Control.Form.Action.Length > 0 || !IsViewStateEnabled()) {
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicTextBoxAdapter.cs (2)
59if (controlText != null && controlText.Length > 0 && !Control.Password) { 96if (Control.Form.Action.Length > 0 || (!IsViewStateEnabled() && Control.Text != _staticValue)) {
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicTextViewAdapter.cs (2)
70endSubstring = element.Text.Length; 73if (beginSubstring > 0 || endSubstring < text.Length) {
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicValidationSummaryAdapter.cs (3)
60if (Control.HeaderText.Length > 0) { 68Debug.Assert(errorMessage != null && errorMessage.Length > 0, "Bad Error Messages"); 79_link.Text = controlBackLabel == null || controlBackLabel.Length == 0 ? GetDefaultLabel(BackLabel) : controlBackLabel;
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicValidatorAdapter.cs (2)
42if (controlText != null & controlText.Length > 0) { 47else if (controlErrorMessage != null && controlErrorMessage.Length > 0) {
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlMobileTextWriter.cs (2)
377if (pair.Tag != null && pair.Tag.Length > 0) WriteEndTag (pair.Tag); 415if (bodyStyleClassDefinition != null && bodyStyleClassDefinition.Trim().Length > 0
UI\MobileControls\AdRotator.cs (2)
310if (baseUrl.Length == 0) 314if (baseUrl.Length == 0)
UI\MobileControls\BaseValidator.cs (1)
304if (controlToValidate.Length == 0)
UI\MobileControls\Command.cs (1)
53&& ImageUrl.Length != 0
UI\MobileControls\CompareValidator.cs (1)
148if (ControlToCompare.Length > 0)
UI\MobileControls\CompileLiteralTextParser.cs (1)
79if (element.Text == null || element.Text.Length != 0)
UI\MobileControls\CustomValidator.cs (1)
120if (controlToValidate.Length > 0)
UI\MobileControls\DataSourceHelper.cs (1)
62if ((dataMember == null) || (dataMember.Length == 0))
UI\MobileControls\Design\Adapters\DesignerAdapterUtil.cs (2)
160propertyName.Length != 0); 181propertyName.Length != 0);
UI\MobileControls\Design\Adapters\DesignerCommandAdapter.cs (2)
47if (Control.ImageUrl.Length == 0) 92int captionLength = controlText.Length;
UI\MobileControls\Design\Adapters\DesignerTextViewAdapter.cs (2)
92int len = text.Length, i; 217if (tagName.Trim().Length > 0)
UI\MobileControls\Design\Adapters\DesignerValidatorAdapter.cs (1)
63if (Control.Text.Trim().Length > 0)
UI\MobileControls\Design\AppliedDeviceFiltersDialog.cs (5)
265if( _cbAvailableFilters.Text.Length == 0 469|| name.Length == 0 479_cbAvailableFilters.Text.Length > 0; 577Debug.Assert(_tbArgument.Text.Length == 0, 713((name != null) && (name.Length > 0)),
UI\MobileControls\Design\BaseValidatorDesigner.cs (2)
88(originalText.Trim().Length == 0 && _baseValidator.Text.Trim().Length == 0));
UI\MobileControls\Design\CommandDesigner.cs (1)
77bool blankText = (originalText.Trim().Length == 0);
UI\MobileControls\Design\Converters\ChoiceConverter.cs (3)
103if (choice.Filter != null && choice.Filter.Length == 0) 221if (bestMatch == null || filterName.Length <= bestMatch.Length)
UI\MobileControls\Design\Converters\DataFieldConverter.cs (1)
124if (dataMember != null && dataMember.Length == 0)
UI\MobileControls\Design\Converters\FontNameConverter.cs (3)
125if (name.Trim().Length == 0) 143if (bestMatch == null || fontName.Length <= bestMatch.Length)
UI\MobileControls\Design\Converters\FormConverter.cs (1)
141candidate.ID.Length != 0)
UI\MobileControls\Design\Converters\StyleConverter.cs (1)
42if (style.Name != null && style.Name.Length > 0)
UI\MobileControls\Design\Converters\StyleReferenceConverter.cs (2)
93if (style.Name != null && style.Name.Length > 0) 112if (style.Name != null && style.Name.Length > 0)
UI\MobileControls\Design\Converters\ValidatedMobileControlConverter.cs (1)
144if (control.ID == null || control.ID.Length == 0)
UI\MobileControls\Design\DeviceFilterEditorDialog.cs (5)
389((filter.Compare != null) && (filter.Compare.Length > 0)), 390((filter.Argument != null) && (filter.Argument.Length > 0)), 391((filter.Type != null) && (filter.Type.Length > 0)), 392((filter.Method != null) && (filter.Method.Length > 0)), 511if(newLabel.Length == 0)
UI\MobileControls\Design\DeviceSpecificDesigner.cs (1)
172if (CurrentChoice.Filter.Length == 0)
UI\MobileControls\Design\ImageDesigner.cs (2)
43if (_baseUrl != null && _baseUrl.Length == 0) 172bool replaceUrl = (_image.ImageUrl.Length > 0);
UI\MobileControls\Design\LabelDesigner.cs (1)
80bool blankText = (originalText.Trim().Length == 0);
UI\MobileControls\Design\LinkDesigner.cs (1)
80bool blankText = (originalText.Trim().Length == 0);
UI\MobileControls\Design\ListComponentEditorPage.cs (1)
174if (e.Label.Length == 0)
UI\MobileControls\Design\ListDesigner.cs (1)
138if ((value == null) || (value.Length == 0))
UI\MobileControls\Design\ListGeneralPage.cs (3)
327if (_itemCountTextBox.Text.Length != 0) 342if (_itemsPerPageTextBox.Text.Length != 0) 383if (_rowsTextBox.Text.Length != 0)
UI\MobileControls\Design\MobileContainerDesigner.cs (1)
488Debug.Assert(tagPrefix != null && tagPrefix.Length > 0, "TagPrefix is invalid");
UI\MobileControls\Design\MobileControlPersister.cs (10)
68if ((tagPrefix != null) && (tagPrefix.Length != 0)) { 161if (persistName != null && persistName.Length > 0) 270if (innerPropsString.Length != 0) { 508if (prefix.Length != 0) 554if (prefix.Length != 0) 589(propType.IsArray && (persistValue.Length == 0))) 620if ((propName.Length == 0) || 876Debug.Assert((tagName != null) && (tagName.Length != 0)); 878if (tagName.Length == 0) 930if ((innerText != null) && (innerText.Length != 0))
UI\MobileControls\Design\MobileTemplatedControlDesigner.cs (4)
292if (CurrentChoice.Filter.Length == 0) 320(choice.Filter.Length == 0 && 861if ((templateContent != null) && (templateContent.Length != 0)) 1051if (CurrentChoice.Filter.Length == 0)
UI\MobileControls\Design\ObjectListDesigner.cs (1)
281if ((value == null) || (value.Length == 0))
UI\MobileControls\Design\ObjectListGeneralPage.cs (2)
201if (_txtItemCount.Text.Length != 0) 216if (_txtItemsPerPage.Text.Length != 0)
UI\MobileControls\Design\PhoneCallDesigner.cs (1)
81bool blankText = (originalText.Trim().Length == 0);
UI\MobileControls\Design\SelectionListDesigner.cs (1)
119if ((value == null) || (value.Length == 0))
UI\MobileControls\Design\StylesEditorDialog.cs (7)
588if (name.Length > 0) 701if (newValue.Length == 0) 1003while ((reference != null && reference.Length > 0) && found && !cycle) 1076while ((reference != null && reference.Length > 0) && found) 1104if (fontName.Length == 0) 1140if (fontName.Length == 0) 1237while ((reference != null && reference.Length > 0) && count > 0)
UI\MobileControls\Design\StyleSheetDesigner.cs (4)
495if (CurrentChoice.Filter.Length == 0) 571if (cycledStyles.Length > 0) 686while ((reference != null && reference.Length > 0) && count > 0) 812if (CurrentChoice.Filter.Length == 0)
UI\MobileControls\Design\TemplatingOptionsDialog.cs (8)
88if (null != currentDeviceSpecificID && currentDeviceSpecificID.Length > 0) 197if (choice.Filter.Length == 0) 215if (_designer.CurrentChoice.Filter.Length == 0) 271if (friendlySchema != null && friendlySchema.Length > 0 && 344if (choice.Xmlns != null && choice.Xmlns.Length > 0 && 362if (choice.Xmlns != null && choice.Xmlns.Length > 0 && 413(choice.Filter.Length == 0 && 522if (friendlySchema == null || friendlySchema.Length > 0 &&
UI\MobileControls\Design\TextViewDesigner.cs (1)
85bool blankText = (originalText.Trim().Length == 0);
UI\MobileControls\Design\Util\GroupLabel.cs (1)
44if (text.Length != 0)
UI\MobileControls\Design\Util\ImageCreator.cs (4)
62bool showMessage = message != null && message.Length != 0; 63bool showTitle = (title != null && title.Length != 0) 64|| (controlID != null && controlID.Length != 0); 122if(title != null && title.Length > 0)
UI\MobileControls\Design\Util\SimpleParser.cs (2)
126if (textPos == text.Length) 235if (textPos == text.Length)
UI\MobileControls\Design\Util\WebConfigManager.cs (2)
133childNode.Attributes["name"].Value.Length == 0) 369if(Name == null || Name.Length == 0)
UI\MobileControls\DeviceSpecificChoice.cs (3)
239else if (value.Length == 0) 262if (name.Length > 2 && 297if (_deviceFilter != null && _deviceFilter.Length == 0) {
UI\MobileControls\ErrorFormatterPage.cs (2)
108if (ErrorInfo.MiscTitle.Length > 0) 118if (ErrorInfo.File.Length > 0)
UI\MobileControls\FontInfo.cs (1)
133if (s.Length != 0)
UI\MobileControls\Form.cs (2)
146int length = eventArgument.Length; 631if (Action.Length == 0)
UI\MobileControls\IndividualDeviceConfig.cs (1)
311Debug.Assert(ParentConfigName.Length != 0 && ParentConfig == null);
UI\MobileControls\Link.cs (1)
95String targetID = target.Substring(prefix.Length);
UI\MobileControls\ListDataHelper.cs (4)
167_bindFromFields = (_dataTextField.Length > 0) || (_dataValueField.Length > 0); 188if (_dataTextField.Length > 0) 192if (_dataValueField.Length > 0)
UI\MobileControls\LiteralText.cs (5)
73int length = Text.Length; 129if (count > text.Length) 147if (stop < text.Length) 165return ((Text.Length / PagingUnitSize) + (((Text.Length % PagingUnitSize) > 0) ? 1 : 0));
UI\MobileControls\LiteralTextParser.cs (4)
162if (validText.Length == 0) 185int length = literalText.Length; 355_lastQueuedElement.Text.Length == 0) 661if (_lastQueuedElement.Text.Length == 0 || _lastQueuedElement.Text[0] != ' ')
UI\MobileControls\MobileCategoryAttribute.cs (1)
23private static readonly int _prefixLength = _categoryPrefix.Length;
UI\MobileControls\MobileControl.cs (7)
339(length = relativeUrl.Length) == 0 || 375if (baseUrl.Length == 0) 946int finish = text.Length; 947int length = text.Length; 984if (trimNewlines && text.Trim().Length == 0) 992if (text == null || text.Length == 0) 1084if (text == null || text.Length == 0)
UI\MobileControls\MobileControlsSectionHandler.cs (1)
159if (nameOfDeviceToInheritFrom != null && nameOfDeviceToInheritFrom.Length == 0) {
UI\MobileControls\MobileControlsSectionHelper.cs (1)
54if (nameOfDeviceToInheritFrom != null && nameOfDeviceToInheritFrom.Length == 0) {
UI\MobileControls\MobilePage.cs (9)
443if (virtualPath == null || virtualPath.Length == 0) 566int n = elementName.Length; 568for (i = 0; i < queryStringText.Length;) 577if (i+n < queryStringText.Length && queryStringText[i+n] == '=') 639if(fullQueryString != null && fullQueryString.Length > 0) 943HiddenVariables[key.Substring(HiddenVariablePrefix.Length)] = collection[i]; 1035if (_eventSource != null && _eventSource.Length > 0) 1461Encoding.Unicode.GetBytes(ViewStateUserKey,0, ViewStateUserKey.Length, macKeyModifier, 4); 1533controlId = controlId.Substring(0, name.Length - 2);
UI\MobileControls\ObjectList.cs (2)
484if (labelField.Length > 0) 494int length = tableFields.Length;
UI\MobileControls\ObjectListField.cs (2)
185if (dataField.Length == 0) 218if (dataFormatString.Length > 0)
UI\MobileControls\PagerStyle.cs (1)
135if (s.Length > 0)
UI\MobileControls\PhoneCall.cs (3)
69match.Length != value.Length) 154if (PhoneNumber.Length == 0) 168String targetID = target.Substring(prefix.Length);
UI\MobileControls\SessionViewState.cs (1)
150if (s.Length > 0)
UI\MobileControls\StyleSheet.cs (2)
140if (value.Name.Length == 0) { 239if (_externalStyleSheet == null && ReferencePath.Length > 0)
UI\MobileControls\TextView.cs (6)
185int elementLength = element.Text.Length; 198_pageEndOffset = GetElement(_pageEndElement).Text.Length; 213elementLength = element.Text.Length; 220_pageEndOffset = GetElement(_pageEndElement).Text.Length; 353_length += text.Length; 389if (text.Length > 0)
UI\MobileControls\ValidationSummary.cs (2)
158if (baseVal != null && baseVal.ErrorMessage.Length != 0) 202Debug.Assert(val.ErrorMessage.Length != 0, "Programmatic error: error message here shouldn't be empty!");
System.Web.Services (232)
System\Web\Services\Configuration\WsdlHelpGeneratorElement.cs (2)
52if (this.needToValidateHref && value.Length > 0) 81if (this.Href.Length == 0)
System\Web\Services\Description\HttpProtocolReflector.cs (1)
119if (name.Length == 0) name = Method.Name;
System\Web\Services\Description\MimeTextImporter.cs (4)
64string name = members.AddUnique(CodeIdentifier.MakeValid(match.Name.Length == 0 ? methodName + "Match" : match.Name), match); 66if (match.Pattern.Length == 0) throw new ArgumentException(Res.GetString(Res.WebTextMatchMissingPattern)); 105fieldTypeName = ImportContext.ClassNames.AddUnique(CodeIdentifier.MakeValid(match.Type.Length == 0 ? name : match.Type), match); 116if (match.Matches.Count == 0 && match.Type.Length > 0) {
System\Web\Services\Description\MimeXmlImporter.cs (1)
52if (mimeXmlBinding.Part == null || mimeXmlBinding.Part.Length == 0) {
System\Web\Services\Description\ProtocolImporter.cs (4)
647bool generateFixedUrlAssignment = (url != null && url.Length > 0); 648bool generateConfigUrlAssignment = appSettingUrlKey != null && appSettingUrlKey.Length > 0; 675if (appSettingBaseUrl == null || appSettingBaseUrl.Length == 0) { 681if (url == null || url.Length == 0)
System\Web\Services\Description\ProtocolReflector.cs (9)
197string messageName = XmlConvert.EncodeLocalName(methodAttr.MessageName.Length == 0 ? Method.Name : methodAttr.MessageName); 222string messageName = XmlConvert.EncodeLocalName(methodAttr.MessageName.Length == 0 ? Method.Name : methodAttr.MessageName); 280if (reflectedBinding.bindingAttr == null || (bindingName.Length == 0 && reflectedBinding.bindingAttr.Location.Length > 0)) { 285if (reflectedBinding.bindingAttr.Location.Length == 0) { 364if (bindingName.Length == 0) bindingName = Service.Name + ProtocolName; 365if (bindingNamespace.Length == 0) bindingNamespace = ServiceDescription.TargetNamespace; 368if (reflectedBinding.bindingAttr.Location.Length > 0) { 415if (methodAttr.Description != null && methodAttr.Description.Length > 0)
System\Web\Services\Description\SchemaCompiler.cs (4)
81if (ns == null || ns.Length == 0) { 99if (e.Name == null || e.Name.Length == 0) { 116if (a.Name == null || a.Name.Length == 0) { 149if (type.Name != null && type.Name.Length != 0) {
System\Web\Services\Description\ServiceDescription.cs (4)
440if (this.TargetNamespace != null && this.TargetNamespace.Length != 0) { 445if (tns != null && tns.Length > 0 && tns != this.TargetNamespace && tns != ServiceDescription.Namespace) { 451if (import.Namespace.Length > 0) { 1172if (messageName != null && messageName.Length > 0)
System\Web\Services\Description\ServiceDescriptionImporter.cs (1)
518if (ProtocolName.Length > 0) {
System\Web\Services\Description\ServiceDescriptionReflector.cs (4)
150if (name == null || name.Length == 0) 154if (serviceAttr.Description != null && serviceAttr.Description.Length > 0) 193if (serviceAttr.Description != null && serviceAttr.Description.Length > 0) 223if (messageName.Length == 0) messageName = method.Name;
System\Web\Services\Description\ServiceDescriptionSerializer.cs (80)
533if ((((global::System.String)o.@Encoding) != null) && (((global::System.String)o.@Encoding).Length != 0)) { 572if ((((global::System.String)o.@Encoding) != null) && (((global::System.String)o.@Encoding).Length != 0)) { 893if ((((global::System.String)o.@Namespace) != null) && (((global::System.String)o.@Namespace).Length != 0)) { 896if ((((global::System.String)o.@Encoding) != null) && (((global::System.String)o.@Encoding).Length != 0)) { 924if ((((global::System.String)o.@Namespace) != null) && (((global::System.String)o.@Namespace).Length != 0)) { 927if ((((global::System.String)o.@Encoding) != null) && (((global::System.String)o.@Encoding).Length != 0)) { 957if ((((global::System.String)o.@Encoding) != null) && (((global::System.String)o.@Encoding).Length != 0)) { 960if ((((global::System.String)o.@Namespace) != null) && (((global::System.String)o.@Namespace).Length != 0)) { 990if ((((global::System.String)o.@Encoding) != null) && (((global::System.String)o.@Encoding).Length != 0)) { 993if ((((global::System.String)o.@Namespace) != null) && (((global::System.String)o.@Namespace).Length != 0)) { 1022if ((((global::System.String)o.@Encoding) != null) && (((global::System.String)o.@Encoding).Length != 0)) { 1025if ((((global::System.String)o.@Namespace) != null) && (((global::System.String)o.@Namespace).Length != 0)) { 1055if ((((global::System.String)o.@Encoding) != null) && (((global::System.String)o.@Encoding).Length != 0)) { 1058if ((((global::System.String)o.@Namespace) != null) && (((global::System.String)o.@Namespace).Length != 0)) { 1441if ((((global::System.String)o.@ParameterOrderString) != null) && (((global::System.String)o.@ParameterOrderString).Length != 0)) { 2246if ((((global::System.String)o.@Name) != null) && (((global::System.String)o.@Name).Length != 0)) { 2362if ((((global::System.String)o.@XPath) != null) && (((global::System.String)o.@XPath).Length != 0)) { 4164((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 4248((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 4319((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 4547((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 4624((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 4708((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 4918((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 5754((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 6277((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 6350((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 6427((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 6495((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 6563((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 6628((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 6703((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 6764((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 6857((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 6955((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 7037((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 7102((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 7168((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 7233((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 7307((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 7399((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 7475((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 7561((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 7636((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 7748((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 7820((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 7892((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 7964((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 8036((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 8108((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 8180((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 8252((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 8324((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 8396((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 8468((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 8540((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 8608((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 8769((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 8859((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 8934((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 9003((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 9079((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 9171((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 9278((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 9354((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 9445((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 9518((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 9613((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 9677((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 9754((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 9834((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 9952((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 10029((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 10124((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 10218((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 10306((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 10375((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 10458((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 10526((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value); 10594((global::System.Xml.Serialization.XmlSerializerNamespaces)o.@Namespaces).Add(Reader.Name.Length == 5 ? "" : Reader.LocalName, Reader.Value);
System\Web\Services\Description\Soap12ProtocolImporter.cs (3)
50int iEnd = iStart + Soap12.Encoding.Length; 52if (iEnd == uriList.Length || uriList[iEnd] == ' ') 55} while (iStart < uriList.Length);
System\Web\Services\Description\SoapProtocolImporter.cs (5)
751if (wrapperNamesMatter && request.ElementName.Length > 0 && request.ElementName != uniqueMethodName) 759if (wrapperNamesMatter && response.ElementName.Length > 0 && response.ElementName != (uniqueMethodName + "Response")) 1096int iEnd = iStart + Soap.Encoding.Length; 1098if (iEnd == uriList.Length || uriList[iEnd] == ' ') 1101} while (iStart < uriList.Length);
System\Web\Services\Description\SoapProtocolReflector.cs (2)
176if (members.Count == 1 && members[0].Any && members[0].ElementName.Length == 0 && !wrapped) { 197if (member.TypeName == null || member.TypeName.Length == 0) {
System\Web\Services\Description\WebCodeGenerator.cs (1)
208if (baseClassName != null && baseClassName.Length > 0)
System\Web\Services\Description\WebServicesInteroperability.cs (13)
96if (soapBinding.Transport.Length == 0) { 213if (fault.Name == null || fault.Name.Length == 0) { 221if (fault.Namespace != null && fault.Namespace.Length > 0) { 292if (import.Location == null || import.Location.Length == 0) { 296if (ns.Length != 0) { 309if (schema.TargetNamespace == null || schema.TargetNamespace.Length == 0) { 338if (qname.Namespace == null || qname.Namespace.Length == 0) { 371if (exisiting.Length > 0) { 435if (!encodedBinding && (header.Part == null || header.Part.Length == 0)) { 442if (header.Fault.Part == null || header.Fault.Part.Length == 0) { 446if (header.Fault.Namespace != null && header.Fault.Namespace.Length > 0) { 457if (ns == null || ns.Length == 0) { 773if (violation.Recommendation != null && violation.Recommendation.Length > 0) {
System\Web\Services\Diagnostics\TraceUtility.cs (2)
275string format = e.ExpectedElements == null ? Res.WebUnknownElement : e.ExpectedElements.Length == 0 ? Res.WebUnknownElement1 : Res.WebUnknownElement2; 287string format = e.ExpectedAttributes == null ? Res.WebUnknownAttribute : e.ExpectedAttributes.Length == 0 ? Res.WebUnknownAttribute2 : Res.WebUnknownAttribute3;
System\Web\Services\Discovery\ContractReference.cs (2)
159if (fileName == null || fileName.Length == 0) 203if (external.SchemaLocation != null && external.SchemaLocation.Length > 0) {
System\Web\Services\Discovery\DiscoveryClientProtocol.cs (12)
318string allElse = path.Substring(0, path.Length - extension.Length); 346if (typeName == null || typeName.Length == 0) 352if (url == null || url.Length == 0) 356if (fileName == null || fileName.Length == 0) 453while (currentDir.Length > 0) { 454if (currentDir.Length <= fullPath.Length && string.Compare(currentDir, fullPath.Substring(0, currentDir.Length), StringComparison.OrdinalIgnoreCase) == 0) { 455answer += fullPath.Substring(currentDir.Length); 461if (currentDir.Length < 2) 464int lastSlash = currentDir.LastIndexOf('\\', currentDir.Length - 2);
System\Web\Services\Discovery\DiscoveryDocumentReference.cs (1)
237if (r.Url.Length == 0) {
System\Web\Services\Discovery\DiscoveryReference.cs (5)
78int lastSlash = url.LastIndexOf('/', url.Length - 1); 88if (url == null || url.Length == 0) 105StringBuilder sb = new StringBuilder(filename.Length); 106for (int i = 0; i < filename.Length; i++) { 112if (name.Length == 0)
System\Web\Services\Discovery\DiscoveryRequestHandler.cs (2)
88if ( strLocalPath.Length == 0 || // no subdir present, host only 138else if ( lastSlash == str.Length - 1 )
System\Web\Services\Discovery\DynamicPhysicalDiscoSearcher.cs (3)
77+ dirName.Substring(startDir.Length, dirName.Length - startDir.Length).Replace('\\', '/')
System\Web\Services\Discovery\DynamicVirtualDiscoSearcher.cs (6)
118string physicalDir = dir.Substring(rootPathAsdi.Length); 174if (hostname.Length == 0 || string.Compare(hostname, uri.Host, StringComparison.OrdinalIgnoreCase) == 0) 178if (ip.Length == 0 || string.Compare(ip, uri.Host, StringComparison.OrdinalIgnoreCase) == 0) 190+ dirName.Substring(rootPathAsdi.Length, dirName.Length - rootPathAsdi.Length)
System\Web\Services\Discovery\LinkGrep.cs (2)
77if (textpos == text.Length) 141if (textpos == text.Length)
System\Web\Services\Discovery\SchemaReference.cs (3)
111if (external.SchemaLocation == null || external.SchemaLocation.Length == 0 || external.Schema != null) 153if (fileName == null || fileName.Length == 0) { 209if (external.SchemaLocation != null && external.SchemaLocation.Length > 0) {
System\Web\Services\Protocols\DiscoveryServerProtocol.cs (1)
148if (schema.Id == null || schema.Id.Length == 0)
System\Web\Services\Protocols\DocumentationServerProtocol.cs (1)
130if (config.WsdlHelpGenerator.Href != null && config.WsdlHelpGenerator.Href.Length > 0)
System\Web\Services\Protocols\HttpServerProtocol.cs (1)
101if (method.name.Length == 0) method.name = method.methodInfo.Name;
System\Web\Services\Protocols\LogicalMethodInfo.cs (1)
557if (key.Length > 1024) {
System\Web\Services\Protocols\RemoteDebugger.cs (2)
73enabled = (stringBuffer != null && stringBuffer.Length > 0); 225if (bufferString != null && bufferString.Length != 0)
System\Web\Services\Protocols\RequestResponse.cs (5)
47if (charset != null && charset.Length > 0) 72if (charset != null && charset.Length > 0) 139if (content.Length > 0) 203int l = s.Length; 218if (entity.Length > 1 && entity[0] == '#')
System\Web\Services\Protocols\RuntimeUtils.cs (4)
38else if (e.ExpectedAttributes.Length == 0) 48if (element.NamespaceURI != null && element.NamespaceURI.Length > 0) { 50if (element.Prefix != null && element.Prefix.Length > 0) { 72else if (e.ExpectedElements.Length == 0)
System\Web\Services\Protocols\Scalars.cs (3)
131int l = s.Length; 235if (String.Compare(paramDecl, 0, paramName, 0, paramName.Length, StringComparison.OrdinalIgnoreCase) == 0) { 236int equals = paramDecl.IndexOf('=', paramName.Length);
System\Web\Services\Protocols\ServerProtocol.cs (6)
136if (text.Length == 0) text = e.GetType().Name; 146if (e.Message != null && e.Message.Length > 0) { 211int length = protocolTypeName.Length + url.Length + serverTypeName.Length + typeHandleString.Length;
System\Web\Services\Protocols\Soap11ServerProtocol.cs (4)
54methodUriString = methodUriString.Substring(1, methodUriString.Length - 2); 108if (code.Namespace != null && code.Namespace.Length > 0 && writer.LookupPrefix(code.Namespace) == null) 114if (soapException.Lang != null && soapException.Lang.Length != 0) { 121if (actor.Length > 0)
System\Web\Services\Protocols\Soap12ServerProtocol.cs (5)
52if (action != null && action.Length > 0) { 82if (action == null || action.Length == 0) { 139if (actor.Length > 0) 143if (role.Length > 0) 166if (code.Namespace != null && code.Namespace.Length > 0 && writer.LookupPrefix(code.Namespace) == null)
System\Web\Services\Protocols\SoapClientProtocol.cs (5)
530if (message.ContentEncoding != null && message.ContentEncoding.Length > 0) 535StringBuilder actionStringBuilder = new StringBuilder(soapAction.Length + 2); 649if (envelopeNs == null || envelopeNs.Length == 0) 725if (reader.NamespaceURI == Soap.Namespace || reader.NamespaceURI == Soap12.Namespace || reader.NamespaceURI == null || reader.NamespaceURI.Length == 0) { 814if (reader.NamespaceURI == Soap12.Namespace || reader.NamespaceURI == null || reader.NamespaceURI.Length == 0) {
System\Web\Services\Protocols\SoapReflector.cs (9)
225if (binding.Length > 0 && binding != method.Binding.Name) { 300if (methodAttribute.binding.Length > 0) { 309if (soapMethod.name.Length == 0) soapMethod.name = methodInfo.Name; 314requestElementName = methodAttribute.requestName.Length == 0 || !client ? methodInfo.Name : methodAttribute.requestName; 317requestElementName = methodAttribute.requestName.Length == 0 ? soapMethod.name : methodAttribute.requestName; 322if (soapMethod.binding != null && soapMethod.binding.Namespace != null && soapMethod.binding.Namespace.Length != 0) 336responseElementName = methodAttribute.responseName.Length == 0 ? soapMethod.name + "Response" : methodAttribute.responseName; 341if (soapMethod.binding != null && soapMethod.binding.Namespace != null && soapMethod.binding.Namespace.Length != 0) 571if (messageName.Length == 0) messageName = methodInfo.Name;
System\Web\Services\Protocols\SoapServerProtocol.cs (2)
682if (message.ContentEncoding != null && message.ContentEncoding.Length > 0) 784if (message.ContentEncoding != null && message.ContentEncoding.Length > 0) {
System\Web\Services\Protocols\SoapUnknownHeader.cs (4)
40if (actor != null && actor.Length != 0) { 53if (actor != null && actor.Length != 0) { 122if (value == null || value.Length == 0) 165if (element.Prefix.Length == 0 && element.NamespaceURI == ns) {
System\Web\Services\WebMethodAttribute.cs (1)
290if (binding.Name == null || binding.Name.Length == 0) {
System\Web\Services\WebServiceBindingAttribute.cs (2)
120if (binding.Length > 0 && methodInfo.Binding.Name != binding) 134if (webAttr == null && binding != null && binding.Length > 0)
System.Windows.Forms (399)
misc\DbgUtil.cs (3)
344fileName = fileName.Substring( backSlashIndex + 1, fileName.Length - backSlashIndex - 1); 352if( args.Length > 0 ) // remove last comma. 354args = args.Substring(0, args.Length - 2);
misc\DebugHandleTracker.cs (4)
378length = releventStack.Length; 387int stringLength = str.Length; 388int tokenLength = token.Length; 474length = releventStack.Length;
misc\GDI\UnsafeNativeMethods.cs (11)
387int byteCount = IntUnsafeNativeMethods.WideCharToMultiByte( IntNativeMethods.CP_ACP, 0, text, text.Length, null, 0, IntPtr.Zero, IntPtr.Zero ); 389IntUnsafeNativeMethods.WideCharToMultiByte( IntNativeMethods.CP_ACP, 0, text, text.Length, textBytes, textBytes.Length, IntPtr.Zero, IntPtr.Zero ); 397retVal = DrawTextW( hDC, text, text.Length, ref lpRect, nFormat ); 426int byteCount = IntUnsafeNativeMethods.WideCharToMultiByte(IntNativeMethods.CP_ACP, 0, text, text.Length, null, 0, IntPtr.Zero, IntPtr.Zero); 428IntUnsafeNativeMethods.WideCharToMultiByte(IntNativeMethods.CP_ACP, 0, text, text.Length, textBytes, textBytes.Length, IntPtr.Zero, IntPtr.Zero); 436retVal = DrawTextExW( hDC, text, text.Length, ref lpRect, nFormat, lpDTParams ); 456int byteCount = text.Length; 461byteCount = IntUnsafeNativeMethods.WideCharToMultiByte(IntNativeMethods.CP_ACP, 0, text, text.Length, null, 0, IntPtr.Zero, IntPtr.Zero); 463IntUnsafeNativeMethods.WideCharToMultiByte(IntNativeMethods.CP_ACP, 0, text, text.Length, textBytes, textBytes.Length, IntPtr.Zero, IntPtr.Zero); 466byteCount = Math.Min( text.Length, IntNativeMethods.MaxTextLengthInWin9x); 471retVal = GetTextExtentPoint32W(hDC, text, text.Length, size);
misc\GDI\WindowsFont.cs (1)
233if (familyName != null && familyName.Length > 1 && familyName[0] == '@')
parent\parent\parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (3)
81if (frameworkName == null || frameworkName.Length == 0) 100if (identifier.Length == 0) 133if (value.Length > 0 && (value[0] == c_versionValuePrefix || value[0] == 'V'))
parent\parent\parent\public\Internal\NDP\Inc\IsolationInterop.cs (1)
1524this.ValueSize = (Value != null) ? new IntPtr((Value.Length + 1) * 2) : IntPtr.Zero;
parent\parent\parent\public\Internal\NDP\Inc\mansign.cs (5)
382if (uriValue.Length == 0) { 644if (hash == null || hash.Length == 0) { 1010if (timeStampUrl != null && timeStampUrl.Length != 0 ) { 1134uint cbHex = (uint) hexString.Length / 2; 1136int i = hexString.Length - 2;
parent\parent\parent\public\Internal\NDP\Inc\mansign2.cs (5)
622if (uriValue.Length == 0) 1258if (hash == null || hash.Length == 0) 1753if (timeStampUrl != null && timeStampUrl.Length != 0) 1991uint cbHex = (uint)hexString.Length / 2; 1993int i = hexString.Length - 2;
winforms\Managed\System\Resources\ResXDataNode.cs (19)
125if(name.Length == 0) { 161if(name.Length == 0) { 238if(value.Length == 0) { 341if (raw.Length > lineWrap) { 342StringBuilder output = new StringBuilder(raw.Length + (raw.Length / lineWrap) * 3); // word wrap on lineWrap chars, \r\n 344for (; current < raw.Length - lineWrap; current+=lineWrap) { 351output.Append(raw, current, raw.Length - current); 437string typeName = (dataNodeInfo.TypeName == null || dataNodeInfo.TypeName.Length==0 ? MultitargetUtil.GetAssemblyQualifiedName(typeof(string), this.typeNameConverter) : dataNodeInfo.TypeName); 439if (mimeTypeName != null && mimeTypeName.Length > 0) { 481if (typeName != null && typeName.Length > 0) { 505else if (typeName != null && typeName.Length > 0) { 598if(typeName != null && typeName.Length >0) { 616if(result == null || result.Length==0) { 619if(nodeInfo.MimeType != null && nodeInfo.MimeType.Length > 0) { 713StringBuilder sb = new StringBuilder(text.Length); 714for (int i=0; i<text.Length; i++) { 884if (pos > 0 && pos < assemblyQualifiedTypeName.Length - 1) { 1007if (pos > 0 && pos < name.Length - 1) {
winforms\Managed\System\Resources\ResXFileRef.cs (8)
134for (i = 0; (i < path1.Length) && (i < path2.Length); ++i) { 147if ((i == path1.Length) && (i == path2.Length)) { 153for (; i < path1.Length; ++i) { 164if(basePath==null || basePath.Length == 0) { 251if(lastIndexOfQuote+2>stringValue.Length) 259if(nextSemiColumn+1>stringValue.Length)
winforms\Managed\System\Resources\ResXResourceWriter.cs (5)
719if (raw.Length > lineWrap) { 720StringBuilder output = new StringBuilder(raw.Length + (raw.Length / lineWrap) * 3); // word wrap on lineWrap chars, \r\n 722for (; current < raw.Length - lineWrap; current+=lineWrap) { 729output.Append(raw, current, raw.Length - current);
winforms\Managed\System\WinForms\AccessibleObject.cs (2)
437if (fileName != null && fileName.Length > 0) { 1879if (retval == null || retval.Length == 0) {
winforms\Managed\System\WinForms\Application.cs (7)
278if (companyName == null || companyName.Length == 0) { 287if (companyName == null || companyName.Length == 0) { 507if (productName == null || productName.Length == 0) { 516if (productName == null || productName.Length == 0) { 524if (lastDot != -1 && lastDot < ns.Length - 1) { 571if (productVersion == null || productVersion.Length == 0) { 580if (productVersion == null || productVersion.Length == 0) {
winforms\Managed\System\WinForms\AxHost.cs (2)
2305ret = (Text.Length != 0); 6823bw.Write(licenseKey.Length);
winforms\Managed\System\WinForms\Binding.cs (3)
508if (control != null && propertyName.Length > 0) { 1100return formatString != null && formatString.Length > 0; 1154return (control != null && propertyName.Length > 0 &&
winforms\Managed\System\WinForms\BindingContext.cs (1)
343if (dataMember.Length == 0) {
winforms\Managed\System\WinForms\BindingMemberInfo.cs (1)
65return (BindingPath.Length > 0 ? BindingPath + "." + BindingField : BindingField);
winforms\Managed\System\WinForms\BindingSource.cs (2)
1130int length = current.Length; 1143current = current.Substring(1, current.Length - 2);
winforms\Managed\System\WinForms\BindToObject.cs (2)
151if (dataMember.BindingField.Length == 0) { 246if (owner.BindingManagerBase.DataSource != null && fieldInfo == null && dataField.Length > 0) {
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (1)
1315if(imageSize == Size.Empty || text == null || text.Length == 0 || textImageRelation == TextImageRelation.Overlay) {
winforms\Managed\System\WinForms\ComboBox.cs (3)
1357SelectionLength = text.Length; 2241this.MatchingText.Length <= 1) { 2250this.MatchingText = this.MatchingText.Remove(this.MatchingText.Length - 1);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2EnumConverter.cs (1)
131return strValue != null && strValue.Length > 0;
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2ICategorizePropertiesHandler.cs (1)
87if (cat != null && cat.Length > 0) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IDispatchConverter.cs (1)
77if (text == null || text.Length == 0){
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (6)
742if (converterTypeName != null && converterTypeName.Length > 0) { 788if (editorTypeName != null && editorTypeName.Length > 0) { 1311while (errorInfo.Length > 0 && 1312errorInfo[errorInfo.Length -1] == '\n' || 1313errorInfo[errorInfo.Length -1] == '\r') { 1314errorInfo = errorInfo.Substring(0, errorInfo.Length-1);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (1)
118while (name != null && name.Length > 0 && name[0] == '_') {
winforms\Managed\System\WinForms\ContainerControl.cs (1)
768retval.Width = (int)Math.Round(((float)size.cx) / ((float)fontMeasureString.Length));
winforms\Managed\System\WinForms\Control.cs (21)
1253return accName != null && accName.Length > 0; 4557if (value.Length == 0) { 7698if (pos + 1 >= text.Length) 7701if (pos <= 0 || pos >= text.Length) 7864m.Result = (IntPtr)((value.Length + 1) * Marshal.SystemDefaultCharSize); 7868if (unchecked((int)(long)m.WParam) < value.Length + 1) { 8791if (text != null && text.Length != 0) { 8894if (text != null && text.Length == 0) text = null; 10605int bytesNeeded = UnsafeNativeMethods.WideCharToMultiByte(0 /*CP_ACP*/, 0, keyChar, keyChar.Length, null, 0, IntPtr.Zero, IntPtr.Zero); 10610UnsafeNativeMethods.WideCharToMultiByte(0 /*CP_ACP*/, 0, keyChar, keyChar.Length, mbcsBytes, mbcsBytes.Length, IntPtr.Zero, IntPtr.Zero); 10629keyChar.Length, 12469return Text.Length != 0; 16774StringBuilder sb = new StringBuilder(text.Length); 16775for (int i=0; i<text.Length; i++) { 16995int len = streamName.Length; 20153if (companyName == null || companyName.Length == 0) { 20160if (companyName == null || companyName.Length == 0) { 20195if (productName == null || productName.Length == 0) { 20202if (productName == null || productName.Length == 0) { 20240if (productVersion == null || productVersion.Length == 0) { 20249if (productVersion == null || productVersion.Length == 0) {
winforms\Managed\System\WinForms\ControlBindingsCollection.cs (2)
147if (binding.PropertyName.Length == 0) { 151if (binding != this[i] && this[i].PropertyName.Length > 0 &&
winforms\Managed\System\WinForms\DataGrid.cs (4)
1454if ((value == null || value == Convert.DBNull) && this.DataMember != null && this.DataMember.Length != 0 ) { 3266if (errString != null && errString.Length != 0) 3341if (((IDataErrorInfo)errObj).Error.Length != 0) 6009if (this.DataMember == null || this.DataMember.Length == 0)
winforms\Managed\System\WinForms\DataGridColumn.cs (1)
678return(headerName.Length != 0);
winforms\Managed\System\WinForms\DataGridTextBox.cs (4)
139if (SelectionStart + SelectionLength == Text.Length) 149(this.IsInEditOrNavigateMode && this.SelectionLength == Text.Length)) 171if (SelectionLength == Text.Length) 217SelectionStart = Text.Length;
winforms\Managed\System\WinForms\DataGridTextBoxColumn.cs (6)
209if (format.Length == 0) { 245if (!value && (format == null || format.Length == 0)) { 360while (newLineIndex != -1 && newLineIndex < valueString.Length) 429} else if (format != null && format.Length != 0 && this.parseMethod != null && this.FormatInfo != null) { 517int end = edit.Text.Length; 532else if (format != null && format.Length != 0 && (value is IFormattable)) {
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (3)
368if (cellStyle.WrapMode == DataGridViewTriState.True && formattedString.Length > 1 && 387if (cellStyle.WrapMode == DataGridViewTriState.True && formattedString.Length > 1 && 409if (cellStyle.WrapMode == DataGridViewTriState.True && formattedString.Length > 1)
winforms\Managed\System\WinForms\DataGridViewCell.cs (9)
1429int cb = s.Length; 1483int cb = s.Length; 2398if (cellStyle != null && cellStyle.Format.Length != 0) 2402else if (rowStyle != null && rowStyle.Format.Length != 0) 2406else if (this.DataGridView.RowsDefaultCellStyle.Format.Length != 0 && 2407(rowIndex % 2 == 0 || this.DataGridView.AlternatingRowsDefaultCellStyle.Format.Length == 0)) 2411else if (rowIndex % 2 == 1 && this.DataGridView.AlternatingRowsDefaultCellStyle.Format.Length != 0) 2415else if (columnStyle != null && columnStyle.Format.Length != 0) 4717if (toolTipText.Length > DATAGRIDVIEWCELL_maxToolTipLength)
winforms\Managed\System\WinForms\DataGridViewCellStyle.cs (2)
283if ((value != null && value.Length > 0) || this.Properties.ContainsObject(PropFormat)) 634if (dataGridViewCellStyle.Format.Length != 0)
winforms\Managed\System\WinForms\DataGridViewColumn.cs (1)
699if (columnStyle != null && columnStyle.Format.Length != 0)
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (2)
430if (cellStyle != null && cellStyle.Format.Length != 0) 434else if (columnHeadersStyle.Format.Length != 0)
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (4)
209Debug.Assert(this.DisplayMember != null && this.DisplayMember.Length > 0); 223Debug.Assert(this.ValueMember != null && this.ValueMember.Length > 0); 283if ((value != null && value.Length > 0) || this.Properties.ContainsObject(PropComboBoxCellDisplayMember)) 684if ((value != null && value.Length > 0) || this.Properties.ContainsObject(PropComboBoxCellValueMember))
winforms\Managed\System\WinForms\DataGridViewDataConnection.cs (1)
1641if (this.dataMember.Length != 0 && props[this.dataMember] != null)
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (1)
673if (cellStyle.WrapMode == DataGridViewTriState.True && formattedString.Length > 1)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (8)
2932if (cellStyle != null && cellStyle.Format.Length != 0) 2936else if (columnHeadersStyle.Format.Length != 0) 10628Debug.Assert(dataGridViewColumn.DataPropertyName.Length != 0, "this method should be called only for columns which have DataPropertyName set"); 13716if (dataGridViewColumn.DataPropertyName.Length != 0) 13725if (this.Columns[i].DataPropertyName.Length != 0) 13788if (this.DataSource != null && e.Column.DataPropertyName.Length != 0 && !this.dataGridViewOper[DATAGRIDVIEWOPER_inRefreshColumns]) 13792else if (this.DataSource != null && e.Column.DataPropertyName.Length == 0) 25609if (this.DataSource != null && dataGridViewCols[j].DataPropertyName.Length != 0)
winforms\Managed\System\WinForms\DataGridViewRow.cs (6)
788if (cellStyle != null && cellStyle.Format.Length != 0) 792else if (rowHeadersStyle.Format.Length != 0) 1013if (rowStyle != null && rowStyle.Format.Length != 0) 1017else if (rowsDefaultCellStyle.Format.Length != 0 && (rowIndex % 2 == 0 || alternatingRowsDefaultCellStyle.Format.Length == 0)) 1021else if (rowIndex % 2 == 1 && alternatingRowsDefaultCellStyle.Format.Length != 0)
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (2)
556if (cellStyle != null && cellStyle.Format.Length != 0) 560else if (rowHeadersStyle.Format.Length != 0)
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (1)
448if (cellStyle.WrapMode == DataGridViewTriState.True && formattedString.Length > 1)
winforms\Managed\System\WinForms\DataGridViewTextBoxEditingControl.cs (5)
162if ((this.RightToLeft == RightToLeft.No && !(this.SelectionLength == 0 && this.SelectionStart == this.Text.Length)) || 174(this.RightToLeft == RightToLeft.Yes && !(this.SelectionLength == 0 && this.SelectionStart == this.Text.Length))) 201if (this.SelectionLength != this.Text.Length) 217this.SelectionStart < this.Text.Length) 250this.SelectionStart = this.Text.Length;
winforms\Managed\System\WinForms\DataObject.cs (7)
1001sizeInBytes += (files[i].Length + 1) * 2; 1042UnsafeNativeMethods.CopyMemoryW(currentPtr, files[i], files[i].Length*2); 1043currentPtr = (IntPtr)((long)currentPtr + (files[i].Length * 2)); 1081int byteSize = (str.Length*2 + 2); 1095char[] chars = str.ToCharArray(0, str.Length); 1103int pinvokeSize = UnsafeNativeMethods.WideCharToMultiByte(0 /*CP_ACP*/, 0, str, str.Length, null, 0, IntPtr.Zero, IntPtr.Zero); 1106UnsafeNativeMethods.WideCharToMultiByte(0 /*CP_ACP*/, 0, str, str.Length, strBytes, strBytes.Length, IntPtr.Zero, IntPtr.Zero);
winforms\Managed\System\WinForms\DateTimePicker.cs (3)
974if (value == null || value.Length == 0) { 1772if ((baseShortcut == null || baseShortcut.Length == 0)) { 1788if (baseValue == null || baseValue.Length == 0) {
winforms\Managed\System\WinForms\DomainUpDown.cs (2)
347if (text.Length < 1) { 820if (baseName == null || baseName.Length == 0) {
winforms\Managed\System\WinForms\ErrorProvider.cs (4)
400return (dataMember != null && dataMember.Length != 0); 1434bool adding = error.Length == 0; 1436if (value.Length == 0) { 1590error.Length > 0) {
winforms\Managed\System\WinForms\FileDialog.cs (13)
177else if (value.Length == 0) 236if (fileNames[0].Length > 0) { 341if (value != null && value.Length > 0) { 383extensions.Add(ext.Substring(i + 1, ext.Length - (i + 1))); 709if (fileName.Length == 0) return new string[] { 712if (directory[directory.Length - 1] != '\\') { 717if (fileName[0] != '\\' && (fileName.Length <= 3 || 723} while (fileName.Length > 0); 828if (s == null || s.Length == 0) 841int length = s.Length; 881Debug.Assert(currentExtension.Length == 0 || currentExtension.StartsWith("."), 884string s = fileName.Substring(0, fileName.Length - currentExtension.Length);
winforms\Managed\System\WinForms\FolderBrowserDialog.cs (2)
127if (selectedPath == null || selectedPath.Length == 0) 338if (selectedPath.Length != 0)
winforms\Managed\System\WinForms\FontDialog.cs (1)
616if (lfReturned.lfFaceName != null && lfReturned.lfFaceName.Length > 0) {
winforms\Managed\System\WinForms\Form.cs (6)
2848if (oldText == null || (oldText.Length == 0)|| value == null || (value.Length == 0)) { 3886if (Text != null && Text.Length != 0) { 4211if (url.Length == 0) 4301if (hostName.Length > 0 && !siteList.Contains(hostName)) 5244int newTextEmpty = Text.Length == 0 ? 1 : 0;
winforms\Managed\System\WinForms\Formatter.cs (2)
371if (formattedNullValueStr.Length != valueStr.Length) {
winforms\Managed\System\WinForms\Help.cs (1)
109if (keyword != null && keyword.Length != 0) {
winforms\Managed\System\WinForms\HelpProvider.cs (5)
199if (helpString.Length > 0) { 210if (keyword.Length > 0) { 228if (helpString.Length > 0) { 267if (helpString.Length > 0) { 284if (keyword.Length > 0) {
winforms\Managed\System\WinForms\ImageKeyConverter.cs (2)
91if (destinationType == typeof(string) && value != null && value is string && ((string)value).Length == 0) { 163if ((imageKeys[i] != null) && (imageKeys[i].Length != 0))
winforms\Managed\System\WinForms\ImageList.cs (3)
1034if ((image != null) && (image.Name != null) && (image.Name.Length != 0)) { 1213if ((key == null) || (key.Length == 0)){ 1484if ((key == null) || (key.Length == 0)){
winforms\Managed\System\WinForms\InputLanguage.cs (3)
239Debug.Assert(encoding.Length == 8, "unexpected key in registry: hklm\\SYSTEM\\CurrentControlSet\\Control\\Keyboard Layouts\\" + encoding); 264Debug.Assert(encoding.Length == 8, "unexpected key in registry: hklm\\SYSTEM\\CurrentControlSet\\Control\\Keyboard Layouts\\" + encoding); 391return "0000000000000000".Substring(0, length - input.Length) + input;
winforms\Managed\System\WinForms\KeysConverter.cs (1)
156if (text.Length == 0) {
winforms\Managed\System\WinForms\LinkArea.cs (1)
139if (text.Length == 0) {
winforms\Managed\System\WinForms\LinkConverter.cs (1)
64if (text.Length == 0) {
winforms\Managed\System\WinForms\LinkLabel.cs (6)
612return index - numTextElements + text.Length; //pretend all the characters after are ASCII characters 616return sub.Length; 639if (Text.Length == 0) { 772regions[regions.Length - 1] = new CharacterRange(0, text.Length); 857return(0 <= start && start < Text.Length && 0 < length); 1137if (Text.Length == 0) {
winforms\Managed\System\WinForms\ListBox.cs (1)
2188string txt = (z.Length > 40) ? z.Substring(0, 40) : z;
winforms\Managed\System\WinForms\ListControl.cs (6)
348if (DisplayMember.Length == 0) 352if (this.dataManager != null && value != null && value.Length != 0) 485if (item != null && field.Length > 0) { 507return (displayMember.BindingField.Length > 0 ? false : true); 529int length = str.Length; 792if (dataManager != null && (displayMemberChanged || dataSourceChanged) && displayMember.BindingMember != null && displayMember.BindingMember.Length != 0) {
winforms\Managed\System\WinForms\ListView.cs (8)
444lvbkImage.cchImageMax = this.backgroundImageFileName.Length + 1; 3465lvgroup.cchHeader = header.Length; 4814lvbkImage.cchImageMax = this.backgroundImageFileName.Length + 1; 5207string txt = (z.Length > 40) ? z.Substring(0, 40) : z; 5216string txt = (z.Length > 40) ? z.Substring(0, 40) : z; 6064if (dispInfo.item.cchTextMax <= text.Length) { 6071Marshal.Copy(buff, 0, dispInfo.item.pszText, text.Length + 1); 6074Marshal.Copy(buff, 0, dispInfo.item.pszText, text.Length + 1);
winforms\Managed\System\WinForms\MaskedTextBox.cs (2)
1377return GetFormattedDisplayString().Length; 3008if (text.Length == 0)
winforms\Managed\System\WinForms\Menu.cs (3)
151if (value == null || value.Length == 0) { 670mi.Text.Length > 0 && 947if ((key == null) || (key.Length == 0)) {
winforms\Managed\System\WinForms\MenuItem.cs (3)
956info.dwTypeData = (data.caption.Length == 0 ? " " : data.caption); 1430info.dwTypeData = new string('\0', Text.Length + 2); 1432info.cch = info.dwTypeData.Length - 1;
winforms\Managed\System\WinForms\NativeMethods.cs (4)
3823cchWText = text.Length; 6058return s.Length; 6061if (s.Length == 0) { 6393System.Diagnostics.Debug.Assert(fileName != null && fileName.Length > 0, "Cannot get local path, fileName is not valid");
winforms\Managed\System\WinForms\NativeWindow.cs (1)
759if (cp.Caption != null && cp.Caption.Length > Int16.MaxValue) {
winforms\Managed\System\WinForms\NotifyIcon.cs (1)
300if (value != null && value.Length > 63) {
winforms\Managed\System\WinForms\NumericUpDown.cs (2)
606!(Text.Length == 1 && Text == "-")) { 785!(Text.Length == 1 && Text == "-"))) {
winforms\Managed\System\WinForms\OpenFileDialog.cs (1)
149if (filename == null || (filename.Length == 0))
winforms\Managed\System\WinForms\Padding.cs (1)
311if (valueStr.Length == 0) {
winforms\Managed\System\WinForms\PictureBox.cs (3)
569if (imageLocation == null || imageLocation.Length == 0) 636if (imageLocation == null || imageLocation.Length == 0) 1430if (ImageLocation != null && ImageLocation.Length != 0 && WaitOnLoad)
winforms\Managed\System\WinForms\PropertyGrid.cs (1)
2071if (name == null || name.Length == 0)
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (3)
2162if (strValue != null && strValue.Length > 0) { 2166if (strValue.Length > maximumLengthOfPropertyString) 2228strValue = new string(passwordReplaceChar, strValue.Length);
winforms\Managed\System\WinForms\PropertyGridInternal\GridToolTip.cs (2)
61if (value != null && value.Length > maximumToolTipLength) 80if (value == null || value.Length == 0){
winforms\Managed\System\WinForms\PropertyGridInternal\HotCommands.cs (2)
211links[i] = new Point(charLoc, name.Length); 213charLoc += name.Length;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyDescriptorGridEntry.cs (2)
241if (category == null || category.Length == 0) { 1250if (message == null || message.Length == 0) message = except.ToString();
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (7)
240return val != null && val.Length > 0; 523if (((text == null || text.Length == 0) && (originalTextValue == null || originalTextValue.Length == 0)) || 1810if (text != null && text.Length > 0 && String.Compare(text.Substring(0,1), letter, true, CultureInfo.InvariantCulture) == 0) { 4996while (exMessage == null || exMessage.Length == 0) 5078while (exMessage == null || exMessage.Length == 0) { 6008CreateNewLink.Links.Add(0, editor.Text.Length, editor);
winforms\Managed\System\WinForms\RelatedCurrencyManager.cs (1)
108if (name.Length > 0) {
winforms\Managed\System\WinForms\RelatedPropertyManager.cs (1)
44if (name.Length > 0) {
winforms\Managed\System\WinForms\RichTextBox.cs (14)
1200return SelectedText.Length; 2042string foundString = text.Substring(position, str.Length); 2047chrg.cpMax = position + str.Length; 2054for (searchingCursor = startIndex, foundCursor = position + startIndex; searchingCursor < str.Length; 2330if (index >= t.Length) { 2331index = Math.Max(t.Length - 1, 0); 2373if (index < 0 || index > Text.Length) { 2628if (textRtf.Length == 0) 2976if (str.Length == 0 ) { 3029byte[] bytes = new byte[SZ_RTF_TAG.Length]; 3030editStream.Read(bytes, (int)streamStart, SZ_RTF_TAG.Length); 3125if(!String.IsNullOrEmpty(result) && (result[result.Length-1] == '\0')) { 3126result = result.Substring(0, result.Length-1); 3372if (c.cpMax > Text.Length || c.cpMax-c.cpMin <= 0) {
winforms\Managed\System\WinForms\SelectionRangeConverter.cs (1)
62if (text.Length == 0) {
winforms\Managed\System\WinForms\SendKeys.cs (3)
389int keysLen = keys.Length; 490else if (keyName.Length == 1) { 874if (keys == null || keys.Length == 0) return;
winforms\Managed\System\WinForms\StatusBar.cs (4)
1001if (panel.Parent == this && panel.ToolTipText.Length > 0) { 1778if (tool != null && tool.text != null && tool.text.Length > 0) { 1794if (tool != null && tool.text != null && tool.text.Length > 0 && (int)tool.id >= 0) { 1799if (tool != null && tool.text != null && tool.text.Length > 0 && (int)tool.id >= 0) {
winforms\Managed\System\WinForms\StatusBarPanel.cs (2)
421if (value.Length == 0) { 462if (value.Length == 0) {
winforms\Managed\System\WinForms\TableLayoutPanelCellPosition.cs (1)
101if (text.Length == 0) {
winforms\Managed\System\WinForms\TableLayoutSettingsTypeConverter.cs (3)
197while (currentIndex < styleString.Length) { 213while ((nextIndex < styleString.Length) && (char.IsDigit(styleString[nextIndex]))) { 220while ((nextIndex < styleString.Length) && (!char.IsLetter(styleString[nextIndex]))) {
winforms\Managed\System\WinForms\TabPage.cs (4)
576tcitem.cchTextMax = text.Length; 594if (value == null || value.Length == 0) { 608for (int i = 0; i < value.Length; ++i) { 610if (i < value.Length - 1 && value[i + 1] == '&') {
winforms\Managed\System\WinForms\TextBoxBase.cs (21)
688while (lineStart < text.Length) { 690for (; lineEnd < text.Length; lineEnd++) { 700if (lineEnd < text.Length && text[lineEnd] == '\r') 702if (lineEnd < text.Length && text[lineEnd] == '\n') 709if (text.Length > 0 && (text[text.Length - 1] == '\r' || text[text.Length - 1] == '\n')) 1261return Text.Length; 1321if (value.Length == 0) { 1415if (text.Length > 0) { 1747return (index < 0 || index >= t.Length) ? (char)0 : t[index]; 1767if (index >= t.Length) { 1768index = Math.Max(t.Length - 1, 0); 1792if (index < 0 || index >= Text.Length) 1864UnsafeNativeMethods.ITextRange textRange = textDocument.Range(this.WindowText.Length - 1, this.WindowText.Length - 1); 2128if (start > str.Length) { 2129start = str.Length; 2134if (end > str.Length) { 2135end = str.Length; 2163if (txt.Length > 40) txt = txt.Substring(0, 40) + "...";
winforms\Managed\System\WinForms\ThreadExceptionDialog.cs (4)
164if (messageText.Length == 0) { 203if (name.EscapedCodeBase != null && name.EscapedCodeBase.Length > 0) { 261if (activeForm == null || activeForm.Text.Length == 0) { 430int i = s.Length;
winforms\Managed\System\WinForms\ToolBar.cs (1)
1364if (buttons[x].Text.Length > 0) {
winforms\Managed\System\WinForms\ToolBarButton.cs (4)
244if (value == null || value.Length == 0) { 693if (value == null || value.Length == 0) { 706for(int i=0; i < value.Length; ++i) { 708if (i < value.Length - 1 && value[i+1] == '&') {
winforms\Managed\System\WinForms\ToolStripItem.cs (4)
3730return (Image != null) && (ImageIndexer.ActualIndex >= 0) && (ImageIndexer.Key != null && ImageIndexer.Key.Length != 0); 3917if (Text != null && this.Text.Length != 0) { 4208if (baseName == null || baseName.Length == 0) { 4310if (fileName != null && fileName.Length > 0) {
winforms\Managed\System\WinForms\ToolStripItemCollection.cs (3)
84if ((key == null) || (key.Length == 0)){ 264if ((key == null) || (key.Length == 0)) { 390if ((key == null) || (key.Length == 0)){
winforms\Managed\System\WinForms\ToolTip.cs (1)
997&& caption.Length > 0;
winforms\Managed\System\WinForms\TreeViewImageKeyConverter.cs (1)
45if (strValue != null && (strValue.Length == 0)) {
winforms\Managed\System\WinForms\TrustManager.cs (2)
265if (strBrowserCommand.Length != 0) 709else if (uri.LocalPath.Length > 2 && (uri.LocalPath[1] == ':' || uri.LocalPath.StartsWith("\\\\")))
winforms\Managed\System\WinForms\TrustManagerPromptUI.cs (9)
466this.m_supportUrl.Length > 0) 468this.linkLblName.Links.Add(0, this.m_appName.Length, this.m_supportUrl); 483this.linkLblPublisher.Links.Add(0, this.linkLblPublisher.Text.Length); 490if (this.m_publisherName.Length > 0) 492this.linkLblPublisher.Links.Add(0, this.m_publisherName.Length); 580this.linkLblMoreInformation.Links.Add(new System.Windows.Forms.LinkLabel.Link(this.linkLblMoreInformation.Text.Length - strMoreInfo.Length, strMoreInfo.Length)); 702text.Length > ampIndex + 2 && text[ampIndex + 2] == ')')
winforms\Managed\System\WinForms\UnsafeNativeMethods.cs (3)
6613int count = Math.Min(s.Length, buffer.Length - offset); 7608if (path.Length != 0 && path.Length < length)
winforms\Managed\System\WinForms\UpDownBase.cs (1)
1823if (baseName == null || baseName.Length == 0) {
winforms\Managed\System\WinForms\VisualStyles\VisualStyleRenderer.cs (3)
497lastHResult = SafeNativeMethods.DrawThemeText( new HandleRef( this, Handle ), hdc, part, state, textToDraw, textToDraw.Length, (int) flags, disableFlag, new NativeMethods.COMRECT( bounds ) ); 878lastHResult = SafeNativeMethods.GetThemeTextExtent( new HandleRef( this, Handle ), hdc, part, state, textToDraw, textToDraw.Length, (int) flags, null, rect ); 903lastHResult = SafeNativeMethods.GetThemeTextExtent( new HandleRef( this, Handle ), hdc, part, state, textToDraw, textToDraw.Length, (int) flags, new NativeMethods.COMRECT( bounds ), rect );
winforms\Managed\System\WinForms\WebBrowser.cs (1)
349MemoryStream ms = new MemoryStream(value.Length);
winforms\Managed\System\WinForms\WinFormsUtils.cs (8)
72int textLength = text.Length; 178for(; index < text.Length; ++index) { 182if (index < text.Length) { 263int len = text.Length; 313for(; index < text.Length; ++index) { 317if (index < text.Length) { 353if (string1.Length != string2.Length) {
System.Windows.Forms.DataVisualization (384)
Common\Annotation\AnnotationBase.cs (8)
1252 if(_axisXName.Length == 0 && _axisX != null) 1325 if(_axisYName.Length == 0 && _axisY != null) 1369 if(_axisX == null && _axisXName.Length > 0) 1413 if(_axisY == null && _axisYName.Length > 0) 1454 if(_anchorDataPointName.Length == 0 && _anchorDataPoint != null) 1513 if(_anchorDataPoint == null && _anchorDataPointName.Length > 0) 3275if (Chart != null && dataPointName.Length > 0) 3308if (Chart != null && axisName.Length > 0)
Common\Annotation\AnnotationCollection.cs (1)
257 if(annotation.ClipToChartArea.Length > 0 &&
Common\Annotation\ImageAnnotation.cs (2)
555 if(this._imageName.Length == 0 && this.Chart.IsDesignMode() ) 691 if(this.Image.Length > 0)
Common\Annotation\TextAnnotation.cs (1)
947 if(GetGraphics() != null && this.Text.Trim().Length > 0)
Common\ChartTypes\AreaChart.cs (1)
327else if (point.BackImage.Length > 0 && point.BackImageWrapMode != ChartImageWrapMode.Unscaled && point.BackImageWrapMode != ChartImageWrapMode.Scaled)
Common\ChartTypes\BarChart.cs (17)
660 if(point.MarkerStyle != MarkerStyle.None || point.MarkerImage.Length > 0) 664 else if(ser.IsValueShownAsLabel || point.IsValueShownAsLabel || point.Label.Length > 0) 759 if(point.MarkerStyle != MarkerStyle.None || point.MarkerImage.Length > 0) 765 if(point.MarkerImage.Length == 0) 829if (point.Label.Length > 0 || 843 if( point.Label.Length == 0 ) 873if (valueLabelAttrib.Length > 0) 1033float spacing = valueTextSize.Width / text.Length / 2; 1579 if( point.IsValueShownAsLabel || point.Label.Length > 0 ) 1742 if(point.MarkerStyle != MarkerStyle.None || point.MarkerImage.Length > 0) 1748 if(point.MarkerImage.Length == 0) 1835if (ser.IsValueShownAsLabel || point.IsValueShownAsLabel || point.Label.Length > 0) 1847 if( point.Label.Length == 0 ) 1867 if(point.MarkerStyle != MarkerStyle.None || point.MarkerImage.Length > 0) 1873if (point.MarkerImage.Length == 0) 1899if (valueLabelAttrib != null && valueLabelAttrib.Length > 0) 2116sizeLabel.Width += sizeLabel.Width / text.Length;
Common\ChartTypes\BoxPlotChart.cs (12)
751 if(markerStyle.Length > 0 && String.Compare(markerStyle, "None", StringComparison.OrdinalIgnoreCase ) != 0) 854if(markerImage.Length > 0) 880if (ser.IsValueShownAsLabel || point.IsValueShownAsLabel || point.Label.Length > 0) 895 if( point.Label.Length == 0 ) 923if (text.Trim().Length != 0) 968sizeLabel.Width += sizeLabel.Width / text.Length; 1648 if(boxPercentile.Length == 0 && boxPoint.series != null && boxPoint.series.IsCustomPropertySet(CustomPropertyName.BoxPlotPercentile)) 1653 if(boxWhiskerPercentile.Length == 0 && boxPoint.series != null && boxPoint.series.IsCustomPropertySet(CustomPropertyName.BoxPlotWhiskerPercentile)) 1659if (boxPercentile.Length > 0) 1676if (boxWhiskerPercentile.Length > 0) 1709 if(showUnusualValues.Length == 0 && boxPoint.series != null && boxPoint.series.IsCustomPropertySet(CustomPropertyName.BoxPlotShowUnusualValues)) 1713 if(showUnusualValues.Length > 0)
Common\ChartTypes\ColumnChart.cs (7)
1136 pointMarkerImage.Length > 0) 1214if (point.IsValueShownAsLabel || point.Label.Length > 0) 1218if (point.Label.Length == 0) 1251sizeLabel.Width += sizeLabel.Width / text.Length; 1328if (point.IsValueShownAsLabel || point.Label.Length > 0) 1332if (point.Label.Length == 0) 1373sizeLabel.Width += sizeLabel.Width / text.Length;
Common\ChartTypes\ErrorBarChart.cs (10)
819 if(markerStyle.Length > 0 && String.Compare(markerStyle, "None", StringComparison.OrdinalIgnoreCase) != 0) 911if(markerImage.Length > 0) 937 if(ser.IsValueShownAsLabel || point.IsValueShownAsLabel || point.Label.Length > 0) 952if (point.Label.Length == 0) 980if (text.Trim().Length != 0) 1025sizeLabel.Width += sizeLabel.Width / text.Length; 1650 typeName = typeName.Substring(errorBarType.ToString().Length); 1651 if(typeName.Length > 0) 1658 typeName = typeName.Substring(1, typeName.Length - 2); 1661 if(typeName.Length > 0)
Common\ChartTypes\FunnelChart.cs (15)
1629 if(pointShowLabelAsValue || pointLabel.Length > 0) 1637 if( pointLabel.Length == 0 ) 1676 if(labelInfo.Text.Length > 0 && 2114 if(attrValue != null && attrValue.Length > 0) 2267if (attrValue != null && attrValue.Length > 0) 2304if (attrValue != null && attrValue.Length > 0) 2336 if(attrValue != null && attrValue.Length > 0) 2383if (attrValue != null && attrValue.Length > 0) 2403if (attrValue != null && attrValue.Length > 0) 2445if (attrValue != null && attrValue.Length > 0) 2491 if(attrValue != null && attrValue.Length > 0) 2518 if(attrValue != null && attrValue.Length > 0) 2544 if(attrValue != null && attrValue.Length > 0) 2571 if(attrValue != null && attrValue.Length > 0) 2720 if(attrValue != null && attrValue.Length > 0)
Common\ChartTypes\KagiChart.cs (3)
157 if(series.ChartArea.Length > 0 && 257 if(kagiSeries.ChartArea.Length > 0) 292attrValue = attrValue.Substring(0, attrValue.Length - 1);
Common\ChartTypes\LineChart.cs (4)
488 pointMarkerImage.Length > 0 || 491 point.Label.Length > 0 ) 698 ser.Points[0].MarkerImage.Length > 0 || 701 ser.Points[0].Label.Length > 0 )
Common\ChartTypes\PieChart.cs (9)
1090 if(text.Length == 0) 1262sizeLabel.Width += sizeLabel.Width / text.Length; 1403float spacing = valueTextSize.Width / text.Length / 2; 1729 if( pointLabel.Length == 0 && point.IsValueShownAsLabel ) 5434 if(text.Length == 0) 5501float spacing = valueTextSize.Width / text.Length / 2; 5578 sizeLabel.Width += sizeLabel.Width / text.Length; 5617 if( point.Label.Length == 0 ) 5644 if( point.Label.Length == 0 && point.IsValueShownAsLabel )
Common\ChartTypes\PointAndFigureChart.cs (4)
181 if(series.ChartArea.Length > 0 && 292 if(pointAndFigureSeries.ChartArea.Length > 0) 381attrValue = attrValue.Substring(0, attrValue.Length - 1); 725 pointAndFigureSeries.ChartArea.Length > 0)
Common\ChartTypes\PointChart.cs (13)
304 if( ShiftedSerName.Length == 0) 323 if( ShiftedSerName.Length > 0) 468 pointMarkerImage.Length > 0) 671 if((!point.IsEmpty && (ser.IsValueShownAsLabel || pointShowLabelAsValue || pointLabel.Length > 0)) || 672 (pointShowLabelAsValue || pointLabel.Length > 0)) 682if (pointLabel.Length == 0) 708float horizontalSpacing = sizeLabel.Width / text.Length; 714if (attrib == null || attrib.Length == 0) 719if (attrib != null && attrib.Length > 0) 831if (text.Trim().Length != 0) 1205 pointMarkerImage.Length > 0) 1422if (markerImage.Length > 0) // Get image size 1758 pointMarkerImage.Length > 0)
Common\ChartTypes\RadarChart.cs (10)
743 if(markerStyle != MarkerStyle.None || point.MarkerImage.Length > 0) 967if(markerImage.Length > 0) 1043 if((!point.IsEmpty && (ser.IsValueShownAsLabel || pointShowLabelAsValue || pointLabel.Length > 0)) || 1044 (pointShowLabelAsValue || pointLabel.Length > 0)) 1054if (pointLabel.Length == 0) 1077sizeLabel.Width += sizeLabel.Width / text.Length; 1082if (attrib == null || attrib.Length == 0) 1086if (attrib != null && attrib.Length > 0) 1199if (text.Trim().Length != 0) 1578 if(markerStyle != MarkerStyle.None || point.MarkerImage.Length > 0)
Common\ChartTypes\RangeChart.cs (1)
412 else if( point.BackImage.Length > 0 && point.BackImageWrapMode != ChartImageWrapMode.Unscaled && point.BackImageWrapMode != ChartImageWrapMode.Scaled)
Common\ChartTypes\RenkoChart.cs (3)
162 if(series.ChartArea.Length > 0 && 265if (renkoSeries.ChartArea.Length > 0) 308 attrValue = attrValue.Substring(0, attrValue.Length - 1);
Common\ChartTypes\StackedAreaChart.cs (12)
621else if (point.BackImage.Length > 0 && point.BackImageWrapMode != ChartImageWrapMode.Unscaled && point.BackImageWrapMode != ChartImageWrapMode.Scaled) 643if (point.Label.Length > 0 || point.IsValueShownAsLabel) 990 if(!point.IsEmpty && (ser.IsValueShownAsLabel || point.IsValueShownAsLabel || point.Label.Length > 0)) 1000if (point.Label.Length == 0) 1004if (this.hundredPercentStacked && point.LabelFormat.Length == 0) 1044sizeLabel.Width += sizeLabel.Width / text.Length; 1438 if( pointEx.dataPoint.Label.Length > 0 || 1475 if((!pointEx.dataPoint.IsEmpty && (pointEx.dataPoint.series.IsValueShownAsLabel || pointShowLabelAsValue || pointLabel.Length > 0)) || 1476 (pointShowLabelAsValue || pointLabel.Length > 0)) 1486if (pointLabel.Length == 0) 1490if (this.hundredPercentStacked && pointEx.dataPoint.LabelFormat.Length == 0) 1526sizeLabel.Width += sizeLabel.Width / text.Length;
Common\ChartTypes\StackedBarChart.cs (12)
1005 if(stackGroupName.Length > 0) 1049if (point.IsValueShownAsLabel || point.Label.Length > 0) 1053if (this.hundredPercentStacked && point.LabelFormat.Length == 0) 1060if (point.Label.Length == 0) 1085if (text.Trim().Length != 0) 1111if (valueLabelAttrib != null && valueLabelAttrib.Length > 0) 1182sizeLabel.Width += sizeLabel.Width / text.Length; 1807 if(ser.IsValueShownAsLabel || point.IsValueShownAsLabel || point.Label.Length > 0) 1820if (point.Label.Length == 0) 1824if (this.hundredPercentStacked && point.LabelFormat.Length == 0) 1858if (valueLabelAttrib != null && valueLabelAttrib.Length > 0) 2086sizeLabel.Width += sizeLabel.Width / text.Length;
Common\ChartTypes\StackedColumnChart.cs (11)
1011 if(stackGroupName.Length > 0) 1129if (point.IsValueShownAsLabel || point.Label.Length > 0) 1133if (point.Label.Length == 0) 1137if (this.hundredPercentStacked && point.LabelFormat.Length == 0) 1165if (text.Trim().Length != 0) 1239sizeLabel.Width += sizeLabel.Width / text.Length; 1716 if( point.IsValueShownAsLabel || point.Label.Length > 0 ) 1845if (point.IsValueShownAsLabel || point.Label.Length > 0) 1849if (point.Label.Length == 0) 1853if (this.hundredPercentStacked && point.LabelFormat.Length == 0) 1951sizeLabel.Width += sizeLabel.Width / text.Length;
Common\ChartTypes\StockChart.cs (19)
536 if(point.MarkerStyle != MarkerStyle.None || point.MarkerImage.Length > 0) 549if (point.MarkerImage.Length > 0) 683 if(styleType != null && styleType.Length > 0) 712 if(showOpenClose != null && showOpenClose.Length > 0) 751 if(attrValue != null && attrValue.Length > 0) 774 if(attrValue != null && attrValue.Length > 0) 937 if(ser.IsValueShownAsLabel || point.IsValueShownAsLabel || point.Label.Length > 0) 952if (point.Label.Length == 0) 997if (text.Trim().Length != 0) 1016if (point.MarkerImage.Length > 0) 1064sizeLabel.Width += sizeLabel.Width / text.Length; 1363 if(point.MarkerStyle != MarkerStyle.None || point.MarkerImage.Length > 0) 1376if (point.MarkerImage.Length > 0) 1508 if(styleType != null && styleType.Length > 0) 1537 if(showOpenClose != null && showOpenClose.Length > 0) 1576 if(attrValue != null && attrValue.Length > 0) 1599 if(attrValue != null && attrValue.Length > 0) 1883if (point.MarkerImage.Length > 0) 1907 pointMarkerImage.Length > 0)
Common\ChartTypes\ThreeLineBreakChart.cs (2)
163 if(series.ChartArea.Length > 0 && 267if (threeLineBreakSeries.ChartArea.Length > 0)
Common\Converters\CustomAttributesConverters.cs (2)
543 if(stringValue == null || stringValue.Length == 0) 884 if(this._displayName.Length > 0)
Common\Converters\DataManagerConverters.cs (2)
806 if(result.Length > 0) 826 if(colorNames.Length > 0)
Common\DataManager\DataPoint.cs (29)
186 else if(sortBy.Length == 2 && 301 if(dataPoint.AxisLabel.Length > 0 && series != null) 351 if(otherFields != null && otherFields.Length > 0) 375 if(bracketIndex > 0 && otherFieldNames[index][otherFieldNames[index].Length - 1] == '}') 485if (xField.Length > 0) 1167 if(fieldName != null && fieldName.Length > 0) 1205 if(fieldName != null && fieldName.Length > 0) 1241 if(fieldName != null && fieldName.Length > 0) 1296if (fieldName != null && fieldName.Length > 0) 1376 if(field != null && field.Length > 0) 1418 if(field != null && field.Length > 0) 1459 if(field != null && field.Length > 0) 1495if (field != null && field.Length > 0) 1966 if(stringValue.Length > 0) 2403 if(valueName.Length == 1) 2446 if(strOriginal == null || strOriginal.Length == 0) 2564int keyEndIndex = keyIndex + keyword.Length; 2565if (result.Length > keyEndIndex && result[keyEndIndex] == '{') 2603int keyEndIndex = keyStartIndex + KeywordName.CustomProperty.Length; 2606if (result.Length > keyEndIndex && result[keyEndIndex] == '(') 3357 if(value.Length > 0 && series != null) 4703 if(result.Length > 0) 4736 if(value.Length > 0) 4757 if(values[0].Length == 0) 6982 if(customAttribute.Length > 0) 6998 if(values[0].Length == 0) 7016 if(userDefinedCustomAttribute.Length > 0) 7041 if(val.Length > 0) 7044 if(properties.Length > 0)
Common\DataManager\DataSeries.cs (9)
1006 for (int index = 0; index < this.Name.Length; index++) 1094 if(strOriginal == null || strOriginal.Length == 0) 1215 int keyEndIndex = keyIndex + keyword.Length; 1219 if(result.Length > keyEndIndex + 1 && 1229 if(result.Length > keyEndIndex && result[keyEndIndex] == '{') 1334 int keyEndIndex = keyIndex + keyword.Length; 1336 if(result.Length > keyEndIndex && result[keyEndIndex] == '{') 1993 if(this._checkPointsNumber && this.ChartTypeName.Length > 0 && this.Common != null) 2430 if(_chartType != value && value.Length > 0)
Common\General\Axis.cs (16)
1743if (this.Title.Length > 0) 3391if (this.Title.Length > 0) 4673if (textRows[rowIndex].Length > longestLabelSize && textRows[rowIndex].Trim().IndexOf(' ') > 0) 4675longestLabelSize = textRows[rowIndex].Length; 4688for (index = 0; index < (newText.Length) / 2 - 1; index++) 4690if (newText[(newText.Length) / 2 - index] == ' ') 4693newText.Substring(0, (newText.Length) / 2 - index) + 4695newText.Substring((newText.Length) / 2 - index + 1); 4698else if (newText[(newText.Length) / 2 + index] == ' ') 4701newText.Substring(0, (newText.Length) / 2 + index) + 4703newText.Substring((newText.Length) / 2 + index + 1); 5316if (label.Image.Length > 0) 5471if (label.Text.Length > 0 && 5487if (label.Image.Length > 0) 5721if (label.Image.Length > 0) 5944 if(label.Image.Length > 0)
Common\General\AxisLabels.cs (7)
515 if( dataPoint.AxisLabel.Length > 0 ) 648 if( pointLabel.Length == 0 ) 747 if( pointLabel.Length > 15 && labValue < 0.000001) 752 if( pointLabel.Length == 0 ) 820 if( ser.Points[ 0 ].AxisLabel.Length > 0 && ser.Points[ ser.Points.Count - 1 ].AxisLabel.Length > 0 ) 909 if(point.AxisLabel.Length == 0 && nonZeroXValues)
Common\General\Chart.cs (21)
719if (series.YValueMembers.Length > 0) 736 if(series.XValueMember.Length > 0 || series.YValueMembers.Length > 0) 778 if(series.XValueMember.Length > 0 || series.YValueMembers.Length > 0) 786 if(series.YValueMembers.Length > 0) 820 while(yField.Length == 0 && fieldIndex < yFieldNames.Length) 841 if(series.XValueMember.Length > 0) 865 if(yFieldNames[i].Length > 0) 950 if(series.XSubAxisName.Length == 0) 1005 if(point.AxisLabel.Length == 0) 1240 if(xField.Length > 0) 1371if (xField != null && xField.Length > 0) 3745 if( series.ToolTip.Length > 0) 3752 if( series.LegendToolTip.Length > 0 || 3753 series.LabelToolTip.Length > 0) 3766 if( point.ToolTip.Length > 0) 3772 if( point.LegendToolTip.Length > 0 || 3773 point.LabelToolTip.Length > 0) 3788 if( legendItem.ToolTip.Length > 0 ) 3799 if( title.ToolTip.Length > 0 )
Common\General\ChartArea.cs (1)
2919 if(series.Points[sectorIndex].AxisLabel.Length > 0)
Common\General\ChartAreaAxes.cs (1)
1575 if(subAxisName.Length > 0)
Common\General\ChartGraphics.cs (11)
705 if(markerImage.Length > 0) 2127if (image.Length > 0) 3489 if( backImage.Length > 0 && backImageWrapMode != ChartImageWrapMode.Unscaled && backImageWrapMode != ChartImageWrapMode.Scaled) 3520 if( backImage.Length > 0 && (backImageWrapMode == ChartImageWrapMode.Unscaled || backImageWrapMode == ChartImageWrapMode.Scaled)) 4183 if( backImage.Length > 0 && backImageWrapMode != ChartImageWrapMode.Unscaled && backImageWrapMode != ChartImageWrapMode.Scaled) 4200 if( backImage.Length > 0 && (backImageWrapMode == ChartImageWrapMode.Unscaled || backImageWrapMode == ChartImageWrapMode.Scaled)) 4300 if( backImage.Length > 0 && backImageWrapMode != ChartImageWrapMode.Unscaled && backImageWrapMode != ChartImageWrapMode.Scaled) 4487 if( backImage.Length > 0 && backImageWrapMode != ChartImageWrapMode.Unscaled && backImageWrapMode != ChartImageWrapMode.Scaled) 4497 if( backImage.Length > 0 && (backImageWrapMode == ChartImageWrapMode.Unscaled || backImageWrapMode == ChartImageWrapMode.Scaled)) 4618 if( backImage.Length > 0 && backImageWrapMode != ChartImageWrapMode.Unscaled && backImageWrapMode != ChartImageWrapMode.Scaled) 5039 else if( backImage.Length > 0 && backImageWrapMode != ChartImageWrapMode.Unscaled && backImageWrapMode != ChartImageWrapMode.Scaled )
Common\General\ChartGraphics3D.cs (1)
3495 if(markerImage.Length > 0 ||
Common\General\ChartRenderingEngine.cs (2)
640 if(hRef.Length > 0 || tooltip.Length > 0)
Common\General\ChartSerializer.cs (2)
670 if(this.NonSerializableContent.Length != 0) 680 if(this.SerializableContent.Length != 0)
Common\General\DataManipulator.cs (2)
319 else if(series.Length > 0) 3149 if(formulaParts[0].Length == 0)
Common\General\FormulaData.cs (1)
625if (parts[1].Length == 0)
Common\General\Label.cs (1)
1156if (circAxis.Title.Length > 0)
Common\General\Legend.cs (19)
467 if(this.Title.Length > 0) 496 if(legendColumn.HeaderText.Length > 0) 934 if(this.Title.Length > 0) 946 if(legendColumn.HeaderText.Length > 0) 1889 if(legendColumn.HeaderText.Length > 0) 2098 if(series.ChartArea.Length > 0) 2182 if(item.Name.Length == 0) 2184 item.Name = point.ReplaceKeywords((point.Label.Length > 0) ? point.Label : point.AxisLabel); 2188 if(item.Name.Length == 0 && xValuesSet) 2201 if(item.Name.Length == 0) 2210 if(cell.Text.Length > 0) 2250if (series.LegendText.Length > 0) 2259 if(cell.Text.Length > 0) 3630 if(value.Length == 0) 3974 if(this.Title.Length > 0) 4006 if(legendColumn.HeaderText.Length > 0) 4267 if(this.Title.Length > 0 && 4733 if(this.DockedToChartArea.Length > 0 && 6126 if(this.SeriesName.Length > 0)
Common\General\LegendColumns.cs (11)
1505 if(this.ImageSize.IsEmpty && this.Image.Length > 0) 1705 if(this.ToolTip.Length > 0) 1731 if(this._url.Length > 0) 1757 if(this._mapAreaAttribute.Length > 0) 1783if (this._postbackValue.Length > 0) 1826 resultString.Length > recomendedTextLength) 1830 for(int charIndex = 0; charIndex < resultString.Length; charIndex++) 2089 if(this.Image.Length > 0) 2284 if(legendItem.Image.Length > 0) 2404 legendItem.markerImage.Length > 0) 2428 if(legendItem.markerImage.Length > 0)
Common\General\Selection.cs (36)
525 if(point.ToolTip.Length > 0 || 526 point.Url.Length > 0 || 527point.MapAreaAttributes.Length > 0 || 528point.PostBackValue.Length > 0 598 if(point.ToolTip.Length > 0 || 599 point.Url.Length > 0 || 600point.MapAreaAttributes.Length > 0 || 601point.PostBackValue.Length > 0 681 if(point.ToolTip.Length > 0 || 682 point.Url.Length > 0 || 683point.MapAreaAttributes.Length > 0 || 684point.PostBackValue.Length > 0) 753 if(point.ToolTip.Length > 0 || 754 point.Url.Length > 0 || 755point.MapAreaAttributes.Length > 0 || 756point.PostBackValue.Length > 0) 822 if(point.ToolTip.Length > 0 || 823 point.Url.Length > 0 || 824point.MapAreaAttributes.Length > 0 || 825point.PostBackValue.Length > 0 ) 911 if(toolTip.Length > 0 || 912 hRef.Length > 0 || 913mapAreaAttributes.Length > 0 || 914postBackValue.Length > 0) 983 if(toolTip.Length > 0 || 984 hRef.Length > 0 || 985mapAreaAttributes.Length > 0 || 986postBackValue.Length > 0) 1048if(toolTip.Length > 0 || 1049 hRef.Length > 0 || 1050 mapAreaAttributes.Length > 0 || 1051postBackValue.Length > 0) 2071if (region.SeriesName.Length > 0 && 2217if (region.SeriesName.Length > 0) 2272if ((title.Text.Length == 0 || title.ForeColor == Color.Transparent) && 2304if (seriesName.Length > 0)
Common\General\StripLine.cs (2)
619 if(this.Text.Length > 0) 640 if(this.Text.Length > 0)
Common\General\Title.cs (4)
420 if(value.Length == 0) 1212 this.BackImage.Length > 0 || 1277 if(this.DockedToChartArea.Length > 0 && 1725if (titleText.Length > 0)
Common\Utilities\KeywordsRegistry.cs (1)
478 if(this.KeywordAliases.Length > 0)
Common\Utilities\ValueConverter.cs (4)
75 if(convertionFormat != null && convertionFormat.Length > 0) 112 if(convertionFormat.Length == 0) 125 if(convertionFormat.Length == 0) 138 if(convertionFormat.Length == 0)
Common\Utilities\XmlSerializer.cs (22)
564 if(standardData.Length > charIndex) 575 if(standardData.Length > charIndex) 610 return (short)(hashCodeProvider.GetHashCode(str) + str.Length * 2); 749 if(itemTypeName.Length > 0) 761 if(itemName != null && itemName.Length > 0) 939 if(_serializableContent.Length > 0 || _nonSerializableContent.Length > 0) 1032 if(itemInfo.name.Length <= objectName.Length) 1034 if(objectName.Substring(0, itemInfo.name.Length) == itemInfo.name) 1045 if(itemInfo.name.Length <= objectName.Length) 1047 if(objectName.Substring(objectName.Length - itemInfo.name.Length, itemInfo.name.Length) == itemInfo.name) 1075if (typeConverterAttrib != null && typeConverterAttrib.ConverterTypeName.Length > 0) 1190 (this.SerializableContent.Length > 0 ) ? this.SerializableContent : "*.*"); 1218 if(content.Length > 0) 1235 if(classInfo.name.Length == 0) 1239 if(propertyInfo.name.Length == 0) 1278 else if(info.name[info.name.Length - 1] == '*') 2042 if(templateString != null && templateString.Length > 0)
System.Workflow.Activities (78)
Common\BasePropertyDescriptor.cs (2)
503propertyName = this.Name.Substring(parameterPrefix.Length); 548string propertyName = (displayName.StartsWith(parameterPrefix, StringComparison.Ordinal)) ? displayName.Substring(parameterPrefix.Length) : displayName;
Common\CompModHelpers.cs (12)
72keyPath = userRegistryKey.ToString().Substring(Registry.CurrentUser.ToString().Length + 1); 102fileName.Length != 0 && 103fileName.Length <= FILENAME_MAX && 267if (secondaryNs != null && secondaryNs.Length > 0) 269if (newNs != null && newNs.Length > 0) 388StringBuilder b = new StringBuilder(baseIdentifier.Length); 389for (int i = 0; i < baseIdentifier.Length; i++) 391if (Char.IsUpper(baseIdentifier[i]) && (i == 0 || i == baseIdentifier.Length - 1 || Char.IsUpper(baseIdentifier[i + 1]))) 1086if (nextActivityName.Length == 0) 1093if (nextActivityName.Length > 0) 1419if (nextActivityName.Length == 0) 1432if (nextActivityName.Length > 0)
Common\DelegateTypeInfo.cs (2)
85if (paramName == null || paramName.Length == 0) 97paramType = paramType.Assembly.GetType(paramType.FullName.Substring(0, paramType.FullName.Length - 1), true);
Common\TypeSystemHelpers.cs (3)
113parameters[loop] = parameters[loop].Substring(1, parameters[loop].Length - 2); 234thatToken = new byte[partValue.Length / 2]; 350if (elementDecorators.Length > 0)
Common\ValidationHelpers.cs (2)
57if (identifier == null || identifier.Length == 0) 81if (identifier == null || identifier.Length == 0)
CorrelationValidator.cs (7)
68if (((CallExternalMethodActivity)activity).MethodName == null || ((CallExternalMethodActivity)activity).MethodName.Length == 0) 88if (((HandleExternalEventActivity)activity).EventName == null || ((HandleExternalEventActivity)activity).EventName.Length == 0) 235if (((CallExternalMethodActivity)currentActivity).MethodName == null || ((CallExternalMethodActivity)currentActivity).MethodName.Length == 0) 246if (((HandleExternalEventActivity)currentActivity).EventName == null || ((HandleExternalEventActivity)currentActivity).EventName.Length == 0) 476if (String.IsNullOrEmpty(parameterAttribute.Name) || parameterAttribute.Name.Trim().Length == 0) 673if (String.IsNullOrEmpty(aliasAttribute.Name) || aliasAttribute.Name.Trim().Length == 0) 681if (String.IsNullOrEmpty(aliasAttribute.Path) || aliasAttribute.Path.Trim().Length == 0)
Designers\StateDesigner.cs (5)
2637if (value != null && value.Length > 0 && value.Contains(Path.DirectorySeparatorChar.ToString()) && Path.IsPathRooted(value)) 2668if (value != null && value.Length > 0 && value.Contains(Path.DirectorySeparatorChar.ToString()) && Path.IsPathRooted(value)) 2743if (path.Contains(Path.DirectorySeparatorChar.ToString()) && directory.Length > 0) 2764if (nameSpace != null && nameSpace.Length > 0 && 2765name != null && name.Length > 0)
Designers\WebServiceReceiveDesigner.cs (1)
104if (typeName != null && typeName.Length > 0)
EventDriven.cs (1)
86if (message.Length > 0)
InvokeWebService.cs (1)
448if (invokeWebService.MethodName == null || invokeWebService.MethodName.Length == 0)
LocalService\CorrelationResolver.cs (3)
34if (memberName.Length == 0) 47if (eventName.Length == 0) 162if (this.locationPath.Length != 0)
Role\ADRoleFactory.cs (1)
71s_configuration.RootPath.Length == 0)
Role\DirectoryGroupQuery.cs (1)
77for (int i = 0; i < propValue.Length; ++i)
Rules\CodeDomDecompiler.cs (2)
80for (int i = 0; i < strValue.Length; ++i) 85if ((char.IsHighSurrogate(c)) && (i + 1 < strValue.Length) && (char.IsLowSurrogate(strValue[i + 1])))
Rules\DeclarativeConditionsCollection.cs (1)
58if (item.Name != null && item.Name.Length >= 0 && this.Contains(item.Name))
Rules\Design\Dialogs\IntellisenseTextBox.cs (11)
125&& CurrentPrefix.Length == 0 159UpdateIntellisenceDropDown(this.Text.Substring(0, selectionStart - CurrentPrefix.Length)); 168if (this.Text.Length > 0) 176if (CurrentPrefix.Length <= 1) 182UpdateAutoCompleteSelection(CurrentPrefix.Substring(0, CurrentPrefix.Length - 1)); 317int prefixEnd = selectionStart - CurrentPrefix.Length; 320if (suffixStart >= this.Text.Length) 321suffixStart = this.Text.Length; 325string suffix = this.Text.Substring(suffixStart, this.Text.Length - suffixStart); 328this.SelectionStart = prefix.Length + fill.Length;
Rules\Design\Dialogs\RenameRuleObjectDialog.cs (1)
72if (newName.Trim().Length == 0)
Rules\Design\LogicalExpressionEditor.cs (2)
37if (conditionDeclaration == null || conditionDeclaration.ConditionName == null || conditionDeclaration.ConditionName.Length <= 0) 203if (ruleSetReference == null || ruleSetReference.RuleSetName == null || ruleSetReference.RuleSetName.Length <= 0)
Rules\Design\LogicalExpressionTypeConverter.cs (4)
122if ((ruleSetName == null) || (ruleSetName.TrimEnd().Length == 0)) 137if (ruleSetCollection != null && ruleSetName.Length != 0 && !ruleSetCollection.Contains(ruleSetName)) 271if ((conditionName == null) || (conditionName.TrimEnd().Length == 0)) 286if (conditionDefinitions != null && conditionName.Length != 0 && !conditionDefinitions.Contains(conditionName))
Rules\Executor.cs (9)
527string stripDependency = dependency.Substring(0, dependency.Length - 2); 529string stripSideEffect = sideEffect.Substring(0, sideEffect.Length - 1); 534if (stripDependency.Length < stripSideEffect.Length) 554string stripSideEffect = sideEffect.Substring(0, sideEffect.Length - 1); 557stripDependency = stripDependency.Substring(0, stripDependency.Length - 1); 574string stripDependency = dependency.Substring(0, dependency.Length - 2); 579if (stripDependency.Length < sideEffect.Length)
Rules\Parser\Intellisense.cs (1)
52if (token.TokenID == TokenID.Identifier && ((string)token.Value).Length == 1 && PrevToken().TokenID != TokenID.Dot)
Rules\Parser\Parser.cs (1)
949if (ident.Length == 1)
Rules\Parser\Scanner.cs (1)
126this.inputStringLength = inputString.Length;
Rules\RuleAttributes.cs (1)
198suffix = suffix.Substring(optionalPrefix.Length);
Rules\RuleSetCollection.cs (1)
38if (item.Name != null && item.Name.Length >= 0 && this.Contains(item.Name))
Rules\RuleValidation.cs (1)
3731arg.BaseType = arg.BaseType.Substring(1, arg.BaseType.Length - 2);
SR.cs (1)
45if (this.resourceSet.Length > 0)
System.Workflow.ComponentModel (220)
AuthoringOM\Activity.cs (11)
890if (path.Length != 0) 895if (path.Length == thisPath.Length) 897else if (thisPath.Length == 0 || path[thisPath.Length] == '.') 898resolvedActivity = this.TraverseDottedPath(path.Substring(thisPath.Length > 0 ? thisPath.Length + 1 : 0)); 973if (thisActivityDottedPath.Length > 0) 974relativeDottedPath = dottedPathFromRoot.Substring(thisActivityDottedPath.Length + 1); 2296Activity childActivity = (Activity)deserializedActivities[prefix.Length == 0 ? index.ToString(CultureInfo.InvariantCulture) : prefix + "." + index.ToString(CultureInfo.InvariantCulture)]; 2407if (activity != null && (activity.Name == null || activity.Name.Length == 0 || activity.Name == activity.GetType().Name))
AuthoringOM\Bind.cs (5)
257if (path.Length == 0) 315if (path.Length == 0) 1028if (path.Length == 0) 1220arg = argName.Substring(1, argName.Length - 2).Trim(); 1793this.pathLength = this.pathValue.Length;
AuthoringOM\Compiler\CompileXomlTask.cs (13)
472if (framework.Length > 0) 675if (ProjectDirectory == null || ProjectDirectory.Trim().Length == 0) 682if (ProjectExtension == null || ProjectExtension.Trim().Length == 0) 824if (this.KeyContainer != null && this.KeyContainer.Trim().Length > 0) 827if (this.KeyFile != null && this.KeyFile.Trim().Length > 0) 1134if (embeddedFileName == null || embeddedFileName.Length == 0) 1158if (name != null && name.Length > 0) 1163if (info.culture != null && info.culture.Length > 0) 1172if (manifestName.Length == 0) 1193if (info.culture != null && info.culture.Length > 0) 1207if (info.culture != null && info.culture.Length > 0) 1243if ((cultureName != null) && (cultureName.Length > 1)) 1252if (info.culture == null || info.culture.Length == 0)
AuthoringOM\Compiler\TypeSystem\AttributeInfo.cs (4)
112if ((argumentNames[loop] == null) || (argumentNames[loop].Length == 0)) 166returnValue = returnValue.Substring(0, returnValue.Length - 1); 169returnValue = returnValue.Substring(2, returnValue.Length - 2); 171returnValue = returnValue.Substring(1, returnValue.Length - 1);
AuthoringOM\Compiler\TypeSystem\CodeDomLoader.cs (1)
42if (codeNamespace.Name.Length > 0)
AuthoringOM\Compiler\TypeSystem\DesignTimeType.cs (6)
60if (namespaceName.Length == 0) 317return this.fullName.Substring(0, this.fullName.Length - Name.Length - 1); 1001return (this.fullName[this.fullName.Length - 1] == '&'); 1030return (this.fullName[this.fullName.Length - 1] == '*'); 1351if (name != null && name.Length != 0)
AuthoringOM\Compiler\TypeSystem\Helper.cs (2)
285if (typeName == null || typeName.Length == 0) 293typeName = typeName.Substring(1, typeName.Length - 1);
AuthoringOM\Compiler\TypeSystem\RTTypeWrapper.cs (2)
189return GetGenericTypeDefinition().FullName.Substring(Namespace.Length + 1); 191return FullName.Substring(Namespace.Length + 1);
AuthoringOM\Compiler\TypeSystem\TypeProvider.cs (4)
348for (int loop = 0; loop < elementDecorator.Length; loop++) 386if (typeName.Length > 0) 394if ((assemblyName.Length == 0) || (ParseHelpers.AssemblyNameEquals(assemblyLoader.AssemblyName, assemblyName))) 422if ((assemblyName.Length == 0) || (ParseHelpers.AssemblyNameEquals(assemblyLoader.AssemblyName, assemblyName)))
AuthoringOM\Compiler\Validation\BindValidator.cs (5)
137if ((bind.Path == null || bind.Path.Length == 0) && (validationContext.TargetType != null && !ActivityBindValidator.DoesTargetTypeMatch(validationContext.TargetType, fieldInfo.FieldType, validationContext.Access))) 334if ((bind.Path == null || bind.Path.Length == 0) && (validationContext.TargetType != null && !ActivityBindValidator.DoesTargetTypeMatch(validationContext.TargetType, propertyInfo.PropertyType, validationContext.Access))) 560if (message.Length > 0) 657path = (closingBracketIndex + 1 < indexerPart.Length) ? indexerPart.Substring(closingBracketIndex + 1) : string.Empty; 809else if (bind.Path == null || bind.Path.Length == 0)
AuthoringOM\Compiler\XomlCompiler.cs (3)
928if (clonedParams.CompilerOptions != null && clonedParams.CompilerOptions.Length > 0) 941while (end < source.Length) 979if (option.Length > 0 &&
AuthoringOM\Compiler\XomlCompilerError.cs (1)
96if (FileName.Length > 0)
AuthoringOM\Compiler\XomlCompilerHelpers.cs (13)
121fileName = fileName.Substring(0, fileName.Length - ".designer.cs".Length) + ".cs"; 123fileName = fileName.Substring(0, fileName.Length - ".designer.vb".Length) + ".vb"; 301int switchValueStart = switchPos + compilerSwitch.Length; 303while ((switchValueStart + switchValueLength < options.Length) && !char.IsWhiteSpace(options[switchValueStart + switchValueLength])) 315RemoveCompilerOptionSwitch(ref options, switchPos, compilerSwitch.Length + switchValueLength); 330else if ((startPos == 0) && (startPos + length + 1 < options.Length) && char.IsWhiteSpace(options[startPos + length + 1])) 386if (null != userAssembly && userAssembly.Length > 0) 462if ((libLibraryPaths != null) && (libLibraryPaths.Length > 0)) 507if (realFileName.Length != info.Name.Length) 614if ((identifier == null) || (identifier.Length == 0))
AuthoringOM\Compiler\XomlCompilerParameters.cs (2)
224int parentLength = parentDirectory.Length; 225if (path.Length == parentLength)
AuthoringOM\DependencyProperty.cs (2)
169if (name.Length == 0) 231if (name.Length == 0)
AuthoringOM\Design\ActivityDesigner.cs (14)
295if (value == null || value.Length == 0 || this.text == value) 768string activityName = (Activity.Name.Length > MaximumIdentifierLength) ? Activity.Name.Substring(0, MaximumIdentifierLength) + "..." : Activity.Name; 780tipText = (tipText.Length > MaximumDescriptionLength) ? tipText.Substring(0, MaximumDescriptionLength) + "..." : tipText; 781if (RulesText.Length > 0) 807ruleName = (ruleName.Length > MaximumIdentifierLength) ? ruleName.Substring(0, MaximumIdentifierLength) + "..." : ruleName; 810ruleDescription = (ruleDescription.Length > MaximumDescriptionLength) ? ruleDescription.Substring(0, MaximumDescriptionLength) + "..." : ruleDescription; 811if (ruleDescription.Length == 0) 815if (this.rulesText.Length > maxRulesLength) 819if (this.rulesText.Length > maxRulesLength) 1204if (defaultEventAttribute == null || defaultEventAttribute.Name == null || defaultEventAttribute.Name.Length == 0) 1561if (propName != null && propName.Length > 0) 1713requestedLineSize.Width /= Text.Length; 1714requestedLineSize.Width += ((requestedLineSize.Width % Text.Length) > 0) ? 1 : 0; 1715requestedLineSize.Width *= Math.Min(Text.Length, ActivityDesigner.MaximumCharsPerLine - 1);
AuthoringOM\Design\CommandSet.cs (1)
754filter += (filter.Length > 0) ? "|" + format.Description : format.Description;
AuthoringOM\Design\CompositeActivityDesigner.cs (3)
339requestedLineSize.Width /= Text.Length; 340requestedLineSize.Width += ((requestedLineSize.Width % Text.Length) > 0) ? 1 : 0; 341requestedLineSize.Width *= Math.Min(Text.Length, CompositeActivityDesigner.MaximumCharsPerLine - 1);
AuthoringOM\Design\CustomActivityDesigner.cs (1)
366if (typeName != null && typeName.Length > 0)
AuthoringOM\Design\DesignerHelpers.cs (4)
1446if (message == null || message.Length == 0) 1474if (path.Contains(Path.DirectorySeparatorChar.ToString()) && directory.Length > 0) 1495if (nameSpace != null && nameSpace.Length > 0 && 1496name != null && name.Length > 0)
AuthoringOM\Design\DesignerInterfaces.cs (2)
781if (text == null || text.Length == 0) 882if (text == null || text.Length == 0)
AuthoringOM\Design\DesignerView.cs (1)
58this.text = ((text.Length > MaxViewName)) ? text.Substring(0, MaxViewName) + "..." : text;
AuthoringOM\Design\DesignerWidgets.cs (6)
792if (itemHit != null && itemHit.Text != null && itemHit.Text.Length > 0) 805if (itemHit.Text != null && itemHit.Text.Length > 0) 815if (itemHit != null && itemHit.Text != null && itemHit.Text.Length > 0) 1807if (tabInfo.Text != null && tabInfo.Text.Length > 0) 1975if (itemInfo.Text != null && itemInfo.Text.Length > 0) 2761else if (this.items.Count == 0 && this.helpText.Length > 0)
AuthoringOM\Design\Dialogs\ActivityBindForm.cs (4)
372if (path == null || path.Length == 0) 383helpMessage = string.Format(CultureInfo.CurrentCulture, PropertyAssignableFormat, memberType, desiredType) + ((memberDescription.Length > 0) ? string.Format(CultureInfo.CurrentCulture, DescriptionFormat, memberDescription) : string.Empty); 933memberName = (index != -1 && (index + 1) < memberName.Length) ? memberName.Substring(index + 1) : memberName; 1289path = (path.Length == 0) ? memberNode.Text : memberNode.Text + "." + path;
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (5)
422if (this.themeNameTextBox.Text == null || this.themeNameTextBox.Text.Trim().Length == 0) 448if (fileName == null || fileName.Trim().Length == 0 || 449extension == null || extension.Trim().Length == 0) 480textBox.SelectionLength = (textBox.Text != null) ? textBox.Text.Length : 0; 515this.themeLocationTextBox.SelectionLength = (this.themeLocationTextBox.Text != null) ? this.themeLocationTextBox.Text.Length : 0;
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (7)
471if (type.Namespace != null && type.Namespace.Length > 0) 534this.typeTextBox.SelectionStart = this.typeTextBox.Text.Length; 930if (assemblyName.Length == 0) 957if (nsName.Length > 0) 1228keywords[1] = (selectedType.Namespace != null && selectedType.Namespace.Length > 0) ? selectedType.Namespace : TypeBrowserDialog.ResMgr.GetString("IDS_GLOBALNS"); 1254nStartSearch += keywords[i].Length; 1261this.SelectionLength = this.Text.Length;
AuthoringOM\Design\Dialogs\WorkflowPageSetupDialog.cs (3)
168if (userHeader.Length == 0) 204if (userFooter.Length == 0) 1150if (paperSize.PaperName != null && paperSize.PaperName.Length > 0)
AuthoringOM\Design\MessageFilters\DragDropManager.cs (3)
669if (image != null && description.Length > 0) 674Rectangle descriptionRectangle = (description.Length > 0) ? new Rectangle(Point.Empty, new Size(AmbientTheme.DragImageTextSize.Width, parentView.Font.Height + 2)) : Rectangle.Empty; 689if (description.Length > 0)
AuthoringOM\Design\MessageFilters\DynamicActionMessageFilter.cs (2)
189if (buttonContainsPoint && infoTip.Length == 0) 213if (infoTip.Length > 0)
AuthoringOM\Design\SequentialActivityDesigner.cs (2)
158if (this.HelpText.Length == 0 || ContainedDesigners.Count > 0 || !Expanded || connectors.Length == 0) 476if (this.HelpText.Length > 0)
AuthoringOM\Design\Themes.cs (16)
183if (this.filePath != null && this.filePath.Length > 0) 320Debug.Assert(path != null && path.Length > 0); 495if (themeFilePath == null || themeFilePath.Length == 0) 508if (directory.Length > 0 && !Directory.Exists(directory)) 645if (this.filePath.Length > 0) 709if (themeAttrib.Xml.Length > 0) 833Debug.Assert(item.ApplyTo != null && item.ApplyTo.Length > 0); 1074if (value != null && value.Length > 0 && value.Contains(Path.DirectorySeparatorChar.ToString()) && Path.IsPathRooted(value)) 1342if (this.designerImage == null && this.designerImagePath.Length > 0) 1647if (this.watermarkImage == null && this.watermarkImagePath.Length > 0) 2210if (value == null || value.Length == 0) 3051if (this.watermarkImage == null && this.watermarkImagePath.Length > 0) 3065Debug.Assert(this.fontName != null && this.fontName.Length > 0); 3066if (this.fontName == null || this.fontName.Length == 0) 3088Debug.Assert(this.fontName != null && this.fontName.Length > 0); 3089if (this.fontName == null || this.fontName.Length == 0)
AuthoringOM\Design\TypeConverters.cs (3)
65if (((string)value).Length == 0 || ((string)value) == SR.GetString(SR.NullConditionExpression)) 389activityID = activityID.Substring(activityIDMatch.Length); 390path = path.Substring(pathMatch.Length);
AuthoringOM\Design\WinOEToolBoxItem.cs (4)
38name = type.Name.Substring(0, type.Name.Length - ActivitySuffix.Length); 146displayName = displayName.Substring(0, displayName.Length - ActivitySuffix.Length);
AuthoringOM\Design\WorkflowLayouts.cs (2)
698if (this.printDocument.PageSetupData.HeaderTemplate.Length > 0) 702if (this.printDocument.PageSetupData.FooterTemplate.Length > 0)
AuthoringOM\Design\WorkflowPrinting.cs (2)
185if (this.pageSetupData.HeaderTemplate.Length > 0) 189if (this.pageSetupData.FooterTemplate.Length > 0)
AuthoringOM\Design\XomlDesignerLoader.cs (8)
271if (manifestResourceName.Length == 0) 883if (aliasPropertyNameAttribute != null && aliasPropertyNameAttribute.Name != null && aliasPropertyNameAttribute.Name.Length > 0) 896fullPropertyName = (fullPropertyName.Length > fullComponentName.Length) ? fullPropertyName.Substring(fullComponentName.Length + 1, fullPropertyName.Length - fullComponentName.Length - 1) + "." + propDesc.Name : string.Empty; 901if (actionPropertyName == null || actionPropertyName.Length == 0)
AuthoringOM\Fault.cs (1)
194else if (stringValue != null && stringValue.Length == 0)
AuthoringOM\Serializer\ActivityMarkupSerializer.cs (4)
64int newLineLength = newLine.Length; 130endColumn = linePosition + reader.Value.Length; 133endColumn = linePosition + reader.Name.Length - 1; 174activity.SetValue(ActivityMarkupSerializer.EndColumnProperty, (currentXoml.Length - lineStartIndex - 1));
AuthoringOM\Serializer\FormatterServicesNoSerializableCheck.cs (2)
190if (t2Name.Length == t1Name.Length && t2Name[0] == t1Name[0] && t1Name == t2Name)
AuthoringOM\Serializer\MarkupExtensionSerializer.cs (1)
189int length = value.Length;
AuthoringOM\Serializer\WorkflowMarkupSerializationManager.cs (4)
216if (clrNamespace.Length > 0) 224else if (assemblyName.Length == 0) 232if (assemblyName.Length > 0) 322if (assemblyName.Length > 0)
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (10)
1698if (dotNetnamespaceName.Length > 0) 2460return (attributeValue.Length > 0 && attributeValue.StartsWith("{", StringComparison.Ordinal) && !attributeValue.StartsWith("{}", StringComparison.Ordinal) && attributeValue.EndsWith("}", StringComparison.Ordinal)); 2473if (attrValue.Length == 0 || !attrValue.StartsWith("{", StringComparison.Ordinal) || !attrValue.EndsWith("}", StringComparison.Ordinal)) 2485string arguments = attrValue.Substring(argIndex + 1, attrValue.Length - (argIndex + 1)); 2663int length = args.Length; 2753if (collectionIndexer && i < args.Length - 1 && args[i + 1] == ']') 2848for (int i = 0; i < value.Length; i++) 2854builder = new StringBuilder(value.Length); 3125extensionName = extensionName.Substring(0, extensionName.Length - StandardXomlKeys.MarkupExtensionSuffix.Length);
AuthoringOM\Serializer\WorkflowMarkupSerializerMapping.cs (5)
266string clrNamespace = xmlNamespace.Substring(StandardXomlKeys.CLRNamespaceQualifier.Length).Trim(); 271assemblyName = (index + 1 < clrNamespace.Length) ? clrNamespace.Substring(index + 1).Trim() : String.Empty; 277assemblyName = assemblyName.Substring(StandardXomlKeys.AssemblyNameQualifier.Length); 307if (xmlnsDefinition.AssemblyName != null && xmlnsDefinition.AssemblyName.Trim().Length > 0) 352if (xmlNamespace.Length == 0)
AuthoringOM\SR.cs (1)
44if (this.resourceSet.Length > 0)
Shared\BasePropertyDescriptor.cs (2)
502propertyName = this.Name.Substring(parameterPrefix.Length); 547string propertyName = (displayName.StartsWith(parameterPrefix, StringComparison.Ordinal)) ? displayName.Substring(parameterPrefix.Length) : displayName;
Shared\CompModHelpers.cs (12)
70keyPath = userRegistryKey.ToString().Substring(Registry.CurrentUser.ToString().Length + 1); 100fileName.Length != 0 && 101fileName.Length <= FILENAME_MAX && 265if (secondaryNs != null && secondaryNs.Length > 0) 267if (newNs != null && newNs.Length > 0) 386StringBuilder b = new StringBuilder(baseIdentifier.Length); 387for (int i = 0; i < baseIdentifier.Length; i++) 389if (Char.IsUpper(baseIdentifier[i]) && (i == 0 || i == baseIdentifier.Length - 1 || Char.IsUpper(baseIdentifier[i + 1]))) 1084if (nextActivityName.Length == 0) 1091if (nextActivityName.Length > 0) 1417if (nextActivityName.Length == 0) 1430if (nextActivityName.Length > 0)
Shared\DelegateTypeInfo.cs (2)
84if (paramName == null || paramName.Length == 0) 96paramType = paramType.Assembly.GetType(paramType.FullName.Substring(0, paramType.FullName.Length - 1), true);
Shared\TypeSystemHelpers.cs (3)
112parameters[loop] = parameters[loop].Substring(1, parameters[loop].Length - 2); 233thatToken = new byte[partValue.Length / 2]; 349if (elementDecorators.Length > 0)
Shared\ValidationHelpers.cs (2)
56if (identifier == null || identifier.Length == 0) 80if (identifier == null || identifier.Length == 0)
Shared\XomlSerializationHelpers.cs (4)
179codeSegment.UserData[UserDataKeys.CodeSegment_ColumnNumber] = linePosition + reader.Name.Length - 1; 273if (filePath != null && filePath.Length > 0) 397codeNamespace.Name = codeNamespace.Name.Substring(rootNS.Length + 1); 424if (codeNamespace.Name == null || codeNamespace.Name.Length == 0)
System.Workflow.Runtime (28)
DebugEngine\DebugController.cs (1)
1031id = (id.Length > 0) ? iterationId + "." + id : iterationId;
System\Activities\Statements\InteropExecutor.cs (2)
468int suffixLength = Interop.InArgumentSuffix.Length; 475string truncatedName = input.Key.Substring(0, input.Key.Length - suffixLength);
Tracking.cs (2)
1235if (null != xaml && xaml.Length > 0) 1286if (null != xaml && xaml.Length > 0)
Tracking\PropertyHelper.cs (4)
56if ((null == names[i]) || (0 == names[i].Length)) 94if ((null != tmp) && (tmp.Length > 0)) 272if ((null == members) || (0 == members.Length) || (null == members[0].Name) || (0 == members[0].Name.Length)) 285for (int i = fullName.Length - 1; i > 0; i--)
Tracking\SqlTrackingService.cs (3)
1210if (null != xaml && xaml.Length > 0) 1245if (null != xaml && xaml.Length > 0) 2197if (s.Length == 1)
Tracking\TrackingExtract.cs (2)
85if ((null == _name) || (0 == _name.Trim().Length)) 151if ((null == _name) || (0 == _name.Trim().Length))
Tracking\TrackingProfileSerializer.cs (13)
93if ((null == version) || (0 == version.Trim().Length)) 264if ((null != type) && (type.Trim().Length > 0)) 395if ((null == location.ActivityType) && ((null == location.ActivityTypeName) || (0 == location.ActivityTypeName.Trim().Length)) && (null == location.ArgumentType) && ((null == location.ArgumentTypeName) || (0 == location.ArgumentTypeName.Trim().Length))) 409if ((null != type) && (type.Trim().Length > 0)) 430if ((null != type) && (type.Trim().Length > 0)) 516if ((null != status) && (status.Trim().Length > 0)) 607if ((null != op) && (op.Trim().Length > 0)) 1092if ((null == loc.ActivityType) && ((null == loc.ActivityTypeName) || (0 == loc.ActivityTypeName.Trim().Length))) 1120if ((null == loc.ActivityType) && ((null == loc.ActivityTypeName) || (0 == loc.ActivityTypeName.Trim().Length))) 1123if ((null == loc.ArgumentType) && ((null == loc.ArgumentTypeName) || (0 == loc.ArgumentTypeName.Trim().Length))) 1242if ((null == condition.Member) || (0 == condition.Member.Trim().Length)) 1274if ((null == s) || (s.Length > 0))
WorkflowExecutor.cs (1)
181Debug.Assert(invokeActivityID != null && invokeActivityID.Length > 0);
System.WorkflowServices (8)
SR.cs (1)
69if (this.resourceSet.Length > 0)
System\Workflow\Activities\ContractType.cs (4)
151return this.fullName.Substring(0, this.fullName.Length - Name.Length - 1); 527return (this.name[this.name.Length - 1] == '*'); 880if (name != null && name.Length != 0)
System\Workflow\Activities\TypedOperationInfo.cs (1)
262if ((argumentNames[index] == null) || (argumentNames[index].Length == 0))
System\Workflow\Activities\ValidationHelper.cs (2)
24if (value.Length == 0) 31for (int i = 0; i < value.Length; i++)
System.Xml (1038)
parent\parent\parent\parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (3)
81if (frameworkName == null || frameworkName.Length == 0) 100if (identifier.Length == 0) 133if (value.Length > 0 && (value[0] == c_versionValuePrefix || value[0] == 'V'))
System\Xml\Base64Decoder.cs (2)
88if ( str.Length - startPos < len ) { 131for ( int i = 0; i < CharsBase64.Length; i++ ) {
System\Xml\BinaryXml\XmlBinaryReader.cs (15)
108if (prefix.Length == 0) 1618if (nsdecl.prefix.Length > 0 || nsdecl.uri.Length > 0) 1702if (5 < prefixStr.Length) { 1703if (6 == prefixStr.Length || ':' != prefixStr[5]) 2162if (prefix.Length != 0) { 2164if (this.attributes[i].name.prefix.Length != 0) 2199if (decl.prefix.Length == 0) 2310else if (n.prefix.Length != 0) { 2311if (n.namespaceUri.Length == 0) 2315else if (n.namespaceUri.Length != 0) { 2424sb = new StringBuilder(value.Length + value.Length / 2); 2481if (this.qnameOther.localname.Length != 0) 3575if ( qname.prefix.Length == 0 )
System\Xml\BinHexDecoder.cs (1)
83if ( str.Length - startPos < len ) {
System\Xml\Cache\XPathDocumentBuilder.cs (2)
141Debug.Assert(prefix != null && localName != null && ns != null && localName.Length != 0 && baseUri != null); 810if (text.Length != 0) {
System\Xml\Cache\XPathDocumentNavigator.cs (3)
114if (s.Length == 0) { 669if (name == null || name.Length == 0) 689if (name == null || name.Length == 0)
System\Xml\Cache\XPathNode.cs (2)
94if (Prefix.Length == 0) { 218return NodeType == XPathNodeType.Namespace && localName.Length == 3 && localName == "xml";
System\Xml\Cache\XPathNodeInfoAtom.cs (3)
134for (int i = 0; i < this.localName.Length; i++) 294if (this.localName.Length != 0) { 299if (this.prefix.Length != 0) {
System\Xml\Core\CharEntityEncoderFallback.cs (4)
131if (charEntityIndex == charEntity.Length) 139Debug.Assert( charEntityIndex < charEntity.Length ); 151Debug.Assert(charEntityIndex <= charEntity.Length); 170return charEntity.Length - charEntityIndex;
System\Xml\Core\HtmlEncodedRawTextWriter.cs (18)
108Debug.Assert( name != null && name.Length > 0 ); 149Debug.Assert( localName != null && localName.Length != 0 && prefix != null && ns != null ); 153if ( ns.Length == 0 ) { 154Debug.Assert( prefix.Length == 0 ); 187if ( ns.Length == 0 ) { 188Debug.Assert( prefix.Length == 0 ); 208if ( ns.Length == 0 ) { 209Debug.Assert( prefix.Length == 0 ); 326Debug.Assert( localName != null && localName.Length != 0 && prefix != null && ns != null ); 328if ( ns.Length == 0 ) { 329Debug.Assert( prefix.Length == 0 ); 383Debug.Assert( target != null && target.Length != 0 && text != null ); 408char * pSrcEnd = pSrc + text.Length; 801Debug.Assert( localName != null && localName.Length != 0 && prefix != null && ns != null ); 807if ( ns.Length == 0 ) { 808Debug.Assert( prefix.Length == 0 ); 828if ( prefix.Length != 0 ) { 856Debug.Assert( localName != null && localName.Length != 0 && prefix != null && ns != null );
System\Xml\Core\HtmlUtf8RawTextWriter.cs (18)
108Debug.Assert( name != null && name.Length > 0 ); 149Debug.Assert( localName != null && localName.Length != 0 && prefix != null && ns != null ); 153if ( ns.Length == 0 ) { 154Debug.Assert( prefix.Length == 0 ); 187if ( ns.Length == 0 ) { 188Debug.Assert( prefix.Length == 0 ); 208if ( ns.Length == 0 ) { 209Debug.Assert( prefix.Length == 0 ); 326Debug.Assert( localName != null && localName.Length != 0 && prefix != null && ns != null ); 328if ( ns.Length == 0 ) { 329Debug.Assert( prefix.Length == 0 ); 383Debug.Assert( target != null && target.Length != 0 && text != null ); 408char * pSrcEnd = pSrc + text.Length; 801Debug.Assert( localName != null && localName.Length != 0 && prefix != null && ns != null ); 807if ( ns.Length == 0 ) { 808Debug.Assert( prefix.Length == 0 ); 828if ( prefix.Length != 0 ) { 856Debug.Assert( localName != null && localName.Length != 0 && prefix != null && ns != null );
System\Xml\Core\IncrementalReadDecoders.cs (1)
83Debug.Assert( str.Length - startPos >= len );
System\Xml\Core\QueryOutputWriter.cs (1)
147prefix.Length != 0 ? prefix + ":" + localName : localName,
System\Xml\Core\QueryOutputWriterV1.cs (1)
133prefix.Length != 0 ? prefix + ":" + localName : localName,
System\Xml\Core\ReadContentAsBinaryHelper.cs (1)
357int decodedCharsCount = decoder.Decode( value, valueOffset, value.Length - valueOffset );
System\Xml\Core\ReadContentAsBinaryHelperAsync.cs (1)
281int decodedCharsCount = decoder.Decode( value, valueOffset, value.Length - valueOffset );
System\Xml\Core\ReadOnlyTernaryTree.cs (1)
97if (stringPos == stringToFind.Length) {
System\Xml\Core\SecureStringHasher.cs (2)
54return hashCodeDelegate(key, key.Length, hashCodeRandomizer); 61for ( int i = 0; i < key.Length; i++ ) {
System\Xml\Core\ValidatingReaderNodeData.cs (1)
70if (prefix.Length == 0 ) {
System\Xml\Core\XmlAutoDetectWriter.cs (2)
84if (ns.Length == 0 && IsHtmlTag(localName)) 312if (tagName.Length != 4)
System\Xml\Core\XmlCharCheckingReader.cs (1)
542if ( prefix.Length > 0 ) {
System\Xml\Core\XmlCharCheckingWriter.cs (16)
127if ( localName == null || localName.Length == 0 ) { 132if ( prefix != null && prefix.Length > 0 ) { 141if ( localName == null || localName.Length == 0 ) { 146if ( prefix != null && prefix.Length > 0 ) { 268if ( name == null || name.Length == 0 ) { 303if ( ncname.Length == 0 ) { 307if ( len != ncname.Length ) { 313if ( name.Length == 0 ) { 318if ( len != name.Length ) { 332for ( i = 0; i < str.Length; i++ ) { 342sb = new StringBuilder( str.Length + 5 ); 347if ( i + 1 < str.Length && str[i+1] == '\n' ) { 353sb = new StringBuilder( str.Length + 5 ); 363sb = new StringBuilder( str.Length + 5 ); 453for ( i = 0; i < text.Length; i++ ) { 459sb = new StringBuilder( text.Length + 5 );
System\Xml\Core\XmlCharCheckingWriterAsync.cs (5)
46if ( localName == null || localName.Length == 0 ) { 51if ( prefix != null && prefix.Length > 0 ) { 60if ( localName == null || localName.Length == 0 ) { 65if ( prefix != null && prefix.Length > 0 ) { 186if ( name == null || name.Length == 0 ) {
System\Xml\Core\XmlEncodedRawTextWriter.cs (24)
261Debug.Assert( name != null && name.Length > 0 ); 296Debug.Assert( localName != null && localName.Length > 0 ); 302if ( prefix != null && prefix.Length != 0 ) { 325Debug.Assert( localName != null && localName.Length > 0 ); 335if ( prefix != null && prefix.Length != 0) { 353Debug.Assert( localName != null && localName.Length > 0 ); 361if ( prefix != null && prefix.Length != 0) { 371Debug.Assert( localName != null && localName.Length > 0 ); 380if ( prefix != null && prefix.Length > 0 ) { 422if ( prefix.Length == 0 ) { 500Debug.Assert( name != null && name.Length > 0 ); 509if ( text.Length > 0 ) { 520Debug.Assert( name != null && name.Length > 0 ); 566char * pSrcEnd = pSrc + ws.Length; 584char * pSrcEnd = pSrc + text.Length; 654WriteRawWithCharChecking( pSrcBegin, pSrcBegin + data.Length ); 1013RawText( pSrcBegin, pSrcBegin + s.Length ); 1146if ( text.Length == 0 ) { 1158char * pSrcEnd = pSrcBegin + text.Length; 1265if ( text.Length == 0 ) { 1279char * pSrcEnd = pSrcBegin + text.Length; 1586for ( int i = 0; i < chars.Length; i++ ) { 1600if ( i + 1 < chars.Length ) { 1679Debug.Assert( localName != null && localName.Length != 0 && prefix != null && ns != null );
System\Xml\Core\XmlEncodedRawTextWriterAsync.cs (22)
68Debug.Assert( name != null && name.Length > 0 ); 104Debug.Assert( localName != null && localName.Length > 0 ); 110if (prefix != null && prefix.Length != 0) { 127Debug.Assert(localName != null && localName.Length > 0); 137if (prefix != null && prefix.Length != 0) { 158Debug.Assert( localName != null && localName.Length > 0 ); 166if (prefix != null && prefix.Length != 0) { 177Debug.Assert( localName != null && localName.Length > 0 ); 186if (prefix != null && prefix.Length > 0) { 236if ( prefix.Length == 0 ) { 320Debug.Assert( name != null && name.Length > 0 ); 329if ( text.Length > 0 ) { 341Debug.Assert( name != null && name.Length > 0 ); 729int leftCount = text.Length; 916int leftCount = text.Length; 1023int leftCount = text.Length; 1191int leftCount = text.Length; 1339if ( text.Length == 0 ) { 1348int leftCount = text.Length; 1494if ( text.Length == 0 ) { 1503int leftCount = text.Length; 1538Debug.Assert( localName != null && localName.Length != 0 && prefix != null && ns != null );
System\Xml\Core\XmlRawWriter.cs (1)
267if ( prefix.Length != 0 ) {
System\Xml\Core\XmlRawWriterAsync.cs (1)
209if ( prefix.Length != 0 ) {
System\Xml\Core\XmlReader.cs (9)
116if (Prefix.Length == 0) { 872if (name == null || name.Length == 0) { 889if (localName == null || localName.Length == 0) { 911if (name == null || name.Length == 0) { 945if (localName == null || localName.Length == 0) { 983if (name == null || name.Length == 0) { 1006if (localName == null || localName.Length == 0) { 1347if (localName == null || localName.Length == 0) { 1403if (value.Length == 0) {
System\Xml\Core\XmlReaderAsync.cs (1)
322if (value.Length == 0) {
System\Xml\Core\XmlReaderSettings.cs (1)
381if (inputUri.Length == 0) {
System\Xml\Core\XmlSubtreeReader.cs (8)
707if ( nsIncReadOffset == curNode.value.Length ) { 711nsIncReadOffset += binDecoder.Decode( curNode.value, nsIncReadOffset, curNode.value.Length - nsIncReadOffset ); 826if ( nsIncReadOffset == curNode.value.Length ) { 830nsIncReadOffset += binDecoder.Decode( curNode.value, nsIncReadOffset, curNode.value.Length - nsIncReadOffset ); 932int copyCount = curNode.value.Length - nsIncReadOffset; 1052if ( prefix.Length == 0 ) { 1062else if ( prefix.Length != 0 && nsManager.LookupNamespace( prefix ) != ns ) { 1095if ( prefix.Length == 0 ) {
System\Xml\Core\XmlSubtreeReaderAsync.cs (5)
231if ( nsIncReadOffset == curNode.value.Length ) { 235nsIncReadOffset += binDecoder.Decode( curNode.value, nsIncReadOffset, curNode.value.Length - nsIncReadOffset ); 350if ( nsIncReadOffset == curNode.value.Length ) { 354nsIncReadOffset += binDecoder.Decode( curNode.value, nsIncReadOffset, curNode.value.Length - nsIncReadOffset ); 450int copyCount = curNode.value.Length - nsIncReadOffset;
System\Xml\Core\XmlTextEncoder.cs (2)
234int len = text.Length; 351int len = text.Length;
System\Xml\Core\XmlTextReader.cs (1)
234if ( ns != null && ns.Length == 0 ) {
System\Xml\Core\XmlTextReaderImpl.cs (37)
501if ( url == null || url.Length == 0 ) { 537if ( context == null || context.BaseURI == null || context.BaseURI.Length == 0 ) { 600if ( url.Length == 0 ) { 630if ( context.BaseURI != null && context.BaseURI.Length > 0 && 632if ( baseUriStr.Length > 0 ) { 715if ( context.BaseURI != null && context.BaseURI.Length > 0 && 717if ( baseUriStr.Length > 0 ) { 2205if ( ps.baseUriStr.Length > 0 && ps.baseUri == null && xmlResolver != null ) { 2392Debug.Assert( ( systemId != null && systemId.Length > 0 ) || ( publicId != null && publicId.Length > 0 ) ); 2423RegisterConsumedCharacters(internalDtd.Length, false); 2720int len = str.Length; 2722str.CopyTo( 0, ps.chars, 0, str.Length ); 2816Debug.Assert( url != null && url.Length > 0 ); 3984if ( prefixLen == lastPrefix.Length && XmlConvert.StrEqual( chars, startPos, prefixLen, lastPrefix ) ) { 4109string qname = ( prefix.Length == 0 ) ? defaultAttributeInfo.LocalName : ( prefix + ':' + defaultAttributeInfo.LocalName ); 4128int prefLen = startTagNode.prefix.Length; 4129int locLen = startTagNode.localName.Length; 4139if ( startTagNode.prefix.Length == 0 ) { 4499if ( attr.prefix.Length == 0 ) { 4549if ( curNode.prefix.Length == 0 ) { 4560if ( at.type == XmlNodeType.Attribute && at.prefix.Length > 0 ) { 4616if ( ns.Length == 0 ) { 5632curNode.lineInfo.linePos += curNode.localName.Length; 6928if ( prefixLen == lastPrefix.Length && XmlConvert.StrEqual( ps.chars, startPos, prefixLen, lastPrefix ) ) { 7026if ( uri.Length == 0 && prefix.Length > 0 ) { 7241RegisterConsumedCharacters(entity.Text.Length, true); 7895if ( Ref.Equal( nodes[i].localName, name ) && nodes[i].prefix.Length == 0 ) { 8204if ( defAttrInfo.Prefix.Length > 0 ) { 8252if ( prefix.Length == 0 && ns.Length > 0 ) { 8284NodeData attr = AddAttribute( localName, prefix, prefix.Length > 0 ? null : localName ); 8295if ( attr.prefix.Length == 0 ) { 8302if ( nodes[index].prefix.Length == 0 ) { 8539Debug.Assert(endPos < str.Length); 8578int len = value.Length;
System\Xml\Core\XmlTextReaderImplAsync.cs (11)
789Debug.Assert( ( systemId != null && systemId.Length > 0 ) || ( publicId != null && publicId.Length > 0 ) ); 1818if (prefixLen == lastPrefix.Length && XmlConvert.StrEqual(chars, startPos, prefixLen, lastPrefix)) { 1908int prefLen = startTagNode.prefix.Length; 1909int locLen = startTagNode.localName.Length; 1927int prefLen = startTagNode.prefix.Length; 1928int locLen = startTagNode.localName.Length; 1940int prefLen = startTagNode.prefix.Length; 1941int locLen = startTagNode.localName.Length; 1945if (startTagNode.prefix.Length == 0) { 2385if ( attr.prefix.Length == 0 ) {
System\Xml\Core\XmlTextReaderImplHelpers.cs (5)
493Debug.Assert( localName.Length > 0 ); 536sb.Append( value, valueOffset, value.Length - valueOffset ); 553int copyCount = value.Length - valueOffset; 569return decoder.Decode( value, valueOffset, value.Length - valueOffset ); 597if ( prefix.Length == 0 ) {
System\Xml\Core\XmlTextWriter.cs (25)
430if (prefix != null && prefix.Length != 0 && (LookupNamespace(prefix) == -1)) { 444else if (prefix.Length == 0) { 448if (ns.Length == 0) { 456if (prefix != null && prefix.Length != 0) { 463if ((ns != null && ns.Length != 0) || (prefix != null && prefix.Length != 0)) { 494if (prefix != null && prefix.Length == 0) { 521if (localName == null || localName.Length == 0) { 546else if (ns.Length == 0) { 568if (prefix != null && prefix.Length != 0) { 574if ((ns != null && ns.Length != 0) || (prefix != null && prefix.Length != 0)) { 634if (null != text && (text.IndexOf("--", StringComparison.Ordinal)>=0 || (text.Length != 0 && text[text.Length-1] == '-'))) { 715if (null != text && text.Length != 0 ) { 874if (ns != null && ns.Length != 0 && ns != stack[top].defaultNs) { 883if (prefix.Length != 0) { 889else if (ns != null && ns.Length != 0) { 902if (ns == null || ns.Length == 0) { 942if (name == null || name.Length == 0) { 1213if (prefix.Length != 0 && ns.Length == 0) { 1359if (name == null || name.Length == 0) { 1363int nameLength = name.Length; 1434if (prefix != null && prefix.Length == 3) {
System\Xml\Core\XmlUtf8RawTextWriter.cs (24)
217Debug.Assert( name != null && name.Length > 0 ); 250Debug.Assert( localName != null && localName.Length > 0 ); 254if ( prefix != null && prefix.Length != 0 ) { 277Debug.Assert( localName != null && localName.Length > 0 ); 285if ( prefix != null && prefix.Length != 0) { 303Debug.Assert( localName != null && localName.Length > 0 ); 309if ( prefix != null && prefix.Length != 0) { 319Debug.Assert( localName != null && localName.Length > 0 ); 326if ( prefix != null && prefix.Length > 0 ) { 366if ( prefix.Length == 0 ) { 440Debug.Assert( name != null && name.Length > 0 ); 447if ( text.Length > 0 ) { 458Debug.Assert( name != null && name.Length > 0 ); 499char * pSrcEnd = pSrc + ws.Length; 516char * pSrcEnd = pSrc + text.Length; 580WriteRawWithCharChecking( pSrcBegin, pSrcBegin + data.Length ); 873RawText( pSrcBegin, pSrcBegin + s.Length ); 1006if ( text.Length == 0 ) { 1018char * pSrcEnd = pSrcBegin + text.Length; 1125if ( text.Length == 0 ) { 1139char * pSrcEnd = pSrcBegin + text.Length; 1486for ( int i = 0; i < chars.Length; i++ ) { 1500if ( i + 1 < chars.Length ) { 1575Debug.Assert( localName != null && localName.Length != 0 && prefix != null && ns != null );
System\Xml\Core\XmlUtf8RawTextWriterAsync.cs (22)
66Debug.Assert( name != null && name.Length > 0 ); 100Debug.Assert( localName != null && localName.Length > 0 ); 105if (prefix != null && prefix.Length != 0) { 123Debug.Assert( localName != null && localName.Length > 0 ); 131if (prefix != null && prefix.Length != 0) { 151Debug.Assert( localName != null && localName.Length > 0 ); 157if (prefix != null && prefix.Length != 0) { 168Debug.Assert(localName != null && localName.Length > 0); 175if (prefix != null && prefix.Length > 0) { 222if ( prefix.Length == 0 ) { 302Debug.Assert( name != null && name.Length > 0 ); 309if ( text.Length > 0 ) { 321Debug.Assert( name != null && name.Length > 0 ); 647int leftCount = text.Length; 833int leftCount = text.Length; 940int leftCount = text.Length; 1108int leftCount = text.Length; 1256if ( text.Length == 0 ) { 1265int leftCount = text.Length; 1411if ( text.Length == 0 ) { 1420int leftCount = text.Length; 1455Debug.Assert( localName != null && localName.Length != 0 && prefix != null && ns != null );
System\Xml\Core\XmlValidatingReader.cs (1)
174if ( ns != null && ns.Length == 0 ) {
System\Xml\Core\XmlValidatingReaderImpl.cs (4)
159if ( coreReader.BaseURI.Length > 0 ) { 177if ( coreReader.BaseURI.Length > 0 ) { 848if ( parserContext.DocTypeName == null || parserContext.DocTypeName.Length == 0 ) { 894if ( outerReader.BaseURI.Length > 0 ) {
System\Xml\Core\XmlValidatingReaderImplAsync.cs (1)
216if ( parserContext.DocTypeName == null || parserContext.DocTypeName.Length == 0 ) {
System\Xml\Core\XmlWellFormedWriter.cs (28)
355if (name == null || name.Length == 0) { 409if (localName == null || localName.Length == 0) { 425else if (prefix.Length > 0) { 430if (ns == null || (ns != null && ns.Length == 0)) { 437Debug.Assert(prefix.Length == 0); 559if (localName == null || localName.Length == 0) { 584if (prefix != null && prefix.Length > 0) { 592if (prefix.Length == 0) { 594if (namespaceName.Length > 0 && namespaceName != XmlReservedNs.NsXmlNs) { 601else if (namespaceName.Length > 0) { 603if (prefix == null || prefix.Length == 0) { 611if (namespaceName.Length > 0 && namespaceName != XmlReservedNs.NsXmlNs) { 619if (namespaceName.Length > 0 && namespaceName != XmlReservedNs.NsXml) { 635if (namespaceName.Length == 0) { 647if (prefix.Length != 0) { 698if (value.Length == 0) { 792if (name == null || name.Length == 0) { 803if (name.Length == 3 && string.Compare(name, "xml", StringComparison.OrdinalIgnoreCase) == 0) { 833if (name == null || name.Length == 0) { 1134if (localName == null || localName.Length == 0) { 1141if (ns != null && ns.Length != 0) { 1154if (prefix.Length != 0) { 1471throw DupAttrException((prefix.Length == 0) ? string.Empty : "xmlns", (prefix.Length == 0) ? "xmlns" : prefix); 1506if (prefix.Length > 0 && prefix[0] == 'x') { 1587if (prefix.Length > 0) { 1775Debug.Assert(ncname != null && ncname.Length > 0); 1778int endPos = ncname.Length;
System\Xml\Core\XmlWellFormedWriterAsync.cs (22)
52if (name == null || name.Length == 0) { 147if (localName == null || localName.Length == 0) { 177else if (prefix.Length > 0) { 182if (ns == null || (ns != null && ns.Length == 0)) { 189Debug.Assert(prefix.Length == 0); 362if (localName == null || localName.Length == 0) { 401if (prefix != null && prefix.Length > 0) { 409if (prefix.Length == 0) { 411if (namespaceName.Length > 0 && namespaceName != XmlReservedNs.NsXmlNs) { 418else if (namespaceName.Length > 0) { 420if (prefix == null || prefix.Length == 0) { 428if (namespaceName.Length > 0 && namespaceName != XmlReservedNs.NsXmlNs) { 436if (namespaceName.Length > 0 && namespaceName != XmlReservedNs.NsXml) { 452if (namespaceName.Length == 0) { 464if (prefix.Length != 0) { 553if (value.Length == 0) { 643if (name == null || name.Length == 0) { 654if (name.Length == 3 && string.Compare(name, "xml", StringComparison.OrdinalIgnoreCase) == 0) { 684if (name == null || name.Length == 0) { 948if (localName == null || localName.Length == 0) { 955if (ns != null && ns.Length != 0) { 968if (prefix.Length != 0) {
System\Xml\Core\XmlWellFormedWriterHelpers.cs (3)
94if (prefix.Length == 0) { 368if (((string)item.data).Length == 0) { 402if (((string)item.data).Length == 0) {
System\Xml\Core\XmlWellFormedWriterHelpersAsync.cs (1)
32if (prefix.Length == 0) {
System\Xml\Core\XmlWriter.cs (6)
229if (name == null || name.Length == 0) { 243if (ns != null && ns.Length > 0) { 249if (prefix.Length > 0) 550if (null != value && 0 != value.Length) { 559if (null != value && 0 != value.Length) { 587if (prefix.Length == 0) {
System\Xml\Core\XmlWriterAsync.cs (4)
185if (name == null || name.Length == 0) { 199if (ns != null && ns.Length > 0) { 497if (null != value && 0 != value.Length) { 514if (prefix.Length == 0) {
System\Xml\Core\XsdCachingReader.cs (1)
626if ( Ref.Equal(attribute.LocalName, name) && attribute.Prefix.Length == 0 ) {
System\Xml\Core\XsdValidatingReader.cs (4)
230if (prefix != null && prefix.Length != 0) { 1648nsManager.AddNamespace(coreReader.Prefix.Length == 0 ? string.Empty : coreReader.LocalName, coreReader.Value); 1734if (attrPrefix.Length == 0) { //empty prefix, not qualified 1769if (attrPrefix.Length == 0) {
System\Xml\Core\XsdValidatingReaderAsync.cs (1)
495nsManager.AddNamespace(coreReader.Prefix.Length == 0 ? string.Empty : coreReader.LocalName, coreReader.Value);
System\Xml\Dom\DocumentSchemaValidator.cs (4)
173if (attr.Prefix.Length == 0) { 327nsManager.AddNamespace(attr.Prefix.Length == 0 ? string.Empty : attr.LocalName, attr.Value); 426if (defaultPrefix.Length != 0) { //Locate first non-empty prefix 629nsManager.AddNamespace(attr.Prefix.Length == 0 ? string.Empty : attr.LocalName, attr.Value);
System\Xml\Dom\DocumentXmlWriter.cs (2)
216if (prefix.Length == 0) { 367throw new XmlException(Res.Xml_DupAttributeName, attr.Prefix.Length == 0 ? attr.LocalName : string.Concat(attr.Prefix, ":", attr.LocalName));
System\Xml\Dom\DocumentXPathNavigator.cs (6)
322&& name.Length != 0) { 358&& name.Length != 0) { 1207if ( localNameAtom.Length == 0 ) { 1525string prefix = attribute.Prefix.Length == 0 ? string.Empty : attribute.LocalName; 1968Debug.Assert( localNameAtom.Length > 0 ); // Use DocumentXPathNodeIterator_ElemChildren_NoLocalName class for special magic value of localNameAtom 1994Debug.Assert( localNameAtom.Length > 0 ); // Use DocumentXPathNodeIterator_ElemChildren_AndSelf_NoLocalName if localName == String.Empty
System\Xml\Dom\XmlAttribute.cs (2)
28if (name.LocalName.Length == 0) 337if (name.Prefix.Length == 0 && name.LocalName == "xmlns") return string.Empty;
System\Xml\Dom\XmlCharacterData.cs (8)
63return data.Length; 71int len = data != null ? data.Length : 0; 85int capacity = data != null ? data.Length : 0; 86if (strData != null) capacity += strData.Length; 102int capacity = data != null ? data.Length : 0; 103if (strData != null) capacity += strData.Length; 119int len = data != null ? data.Length : 0; 144int len = data != null ? data.Length : 0;
System\Xml\Dom\XmlDeclaration.cs (6)
25if( ( standalone != null ) && ( standalone.Length > 0 ) ) 53else if ( value.Length == 0 || value == YES || value == NO ) 71if ( Encoding.Length > 0 ) { 76if ( Standalone.Length > 0 ) { 150return ver.Length >= 3 && ver[0] == '1' && ver[1] == '.' && XmlCharType.IsOnlyDigits(ver, 2, ver.Length - 2);
System\Xml\Dom\XmlDocument.cs (10)
130if (endPos < name.Length) { 137Debug.Assert( (prefix == null) ? (n.Prefix.Length == 0) : (prefix == n.Prefix) ); 139Debug.Assert( (namespaceURI == null) ? (n.NamespaceURI.Length == 0) : (n.NamespaceURI == namespaceURI) ); 145Debug.Assert(n == null || ((prefix == null) ? (n.Prefix.Length == 0) : (prefix == n.Prefix))); 147Debug.Assert(n == null || ((namespaceURI == null) ? (n.NamespaceURI.Length == 0) : (n.NamespaceURI == namespaceURI))); 153Debug.Assert( (prefix == null) ? (xmlName.Prefix.Length == 0) : (prefix == xmlName.Prefix) ); 155Debug.Assert( (namespaceURI == null) ? (xmlName.NamespaceURI.Length == 0) : (xmlName.NamespaceURI == namespaceURI) ); 500if ( prefix == strXmlns || ( prefix.Length == 0 && localName == strXmlns ) ) { 1136if ( value.Length > 0 ) { 1208if( Standalone.Length == 0 )
System\Xml\Dom\XmlDomTextWriter.cs (4)
34if( ( ns.Length == 0 ) && ( prefix.Length != 0 ) ) 43if( ( ns.Length == 0 ) && ( prefix.Length != 0 ) )
System\Xml\Dom\XmlElement.cs (1)
29if (name.LocalName.Length == 0)
System\Xml\Dom\XmlEntityReference.cs (3)
40if ( name.Length > 0 && name[0] == '#' ) { 165if ( nCount > 0 && nCount < baseURI.Length ) 178if ( ent.SystemId != null && ent.SystemId.Length > 0 )
System\Xml\Dom\XmlLoader.cs (2)
621else if ( !bHasDefXmlnsAttr && attr.Prefix.Length == 0 && attr.LocalName == doc.strXmlns ) { 723else if ( attr.Prefix.Length == 0 && attr.LocalName == doc.strXmlns ) {
System\Xml\Dom\XmlName.cs (3)
75if ( prefix.Length > 0 ) { 76if ( localName.Length > 0 ) { 146for (int i = name.Length - 1; i >= 0; i--) {
System\Xml\Dom\XmlNode.cs (4)
928if (prefix.Length == 0) { 931if (attr.Prefix.Length == 0) { 995if (attr.Prefix.Length == 0) { 1075if (-1 == colonPos || 0 == colonPos || name.Length-1 == colonPos) {
System\Xml\Dom\XmlNodeReader.cs (13)
324if ( strTemp != null && strTemp.Length != 0 ) { 330if ( strTemp != null && strTemp.Length != 0 ) { 336if ( strTemp != null && strTemp.Length != 0 ) { 456return (ns.Length == 0) ? GetDeclarationAttr( (XmlDeclaration)curNode, name ) : null; 458return (ns.Length == 0) ? GetDocumentTypeAttr( (XmlDocumentType)curNode, name ) : null; 559if( ns.Length == 0 ) 583else if ( nt == XmlNodeType.XmlDeclaration && namespaceURI.Length == 0 ) { 588} else if ( nt == XmlNodeType.DocumentType && namespaceURI.Length == 0 ) { 747if ( prefix.Length == 0 ) 770if ( prefix.Length == 0 ) { 814if ( a.Prefix.Length == 0 && a.LocalName == "xmlns" ) { 852if ( a.LocalName == "xmlns" && a.Prefix.Length == 0 ) { 1491if (ns != null && ns.Length == 0) {
System\Xml\NameTable.cs (4)
77int len = key.Length; 132if ( value.Length == 0 ) { 214if ( str1.Length != str2Length ) { 218for ( int i = 0; i < str1.Length; i++ ) {
System\Xml\Schema\Asttree.cs (6)
164if ( !((URN == null) || (URN.Length == 0))) { 169else if ((thisURN.Length != 0) && (thisURN != URN)) { 173if ((thisname.Length != 0) && (thisname != name)) { 483if ((xPath == null) || (xPath.Length == 0)) { 601if (axis.Prefix.Length != 0) { // (1) (4) 607} else if (axis.Name.Length != 0) { // (2)
System\Xml\Schema\BaseProcessor.cs (1)
60if (qname.Name.Length == 0) {
System\Xml\Schema\BaseValidator.cs (1)
184if (textString.Length == 0) {
System\Xml\Schema\Chameleonkey.cs (3)
35if (chameleonLocation.OriginalString.Length == 0) { 61Debug.Assert((chameleonLocation.OriginalString.Length == 0 && originalSchema != null) 62|| (chameleonLocation.OriginalString.Length != 0 && originalSchema == null));
System\Xml\Schema\ContentValidator.cs (3)
1479if (s.Length != 0) { 1609if (s.Length != 0) { 1877if (s.Length != 0) {
System\Xml\Schema\DataTypeImplementation.cs (6)
1708if (s == null || s.Length == 0) { 1737if (s == null || s.Length == 0) { 1775if (s == null || s.Length == 0) { 2491if (s == null || s.Length == 0) { 2808if (s == null || s.Length == 0) { 3468if (s == null || s.Length == 0) {
System\Xml\Schema\DtdParser.cs (23)
286if ( docTypeName == null || docTypeName.Length == 0 ) { 303if ( systemId != null && systemId.Length > 0 ) { 311if ( publicId != null && publicId.Length > 0 ) { 319if ( internalSubset != null && internalSubset.Length > 0 ) { 463if ( systemId != null && systemId.Length > 0 ) { 475if ( systemId != null && systemId.Length > 0 ) { 650if ( attrDef != null && attrDef.Prefix.Length > 0 && attrDef.Prefix.Equals( "xml" ) && attrDef.Name.Name == "space" ) { 672if (attrDef.Prefix.Length > 0 && attrDef.Prefix.Equals("xml")) { 892SendValidationEvent( curPos - name.Name.Length, XmlSeverityType.Error, Res.Sch_DupElementDecl, GetNameString() ); 1286entity.DeclaredURI = ( externalDtdBaseUri.Length == 0 ) ? documentBaseUri : externalDtdBaseUri; 1377SendValidationEvent( curPos - notationName.Name.Length, XmlSeverityType.Error, Res.Sch_DupNotation, notationName.Name ); 1409UndeclaredNotation un = new UndeclaredNotation(notationName, LineNo, LinePos - notationName.Length); 1524Throw( curPos - systemId.Length - 1, Res.Xml_FragmentId, new string[] { systemId.Substring( systemId.IndexOf( '#' ) ), systemId } ); 1539ThrowInvalidChar( curPos - 1 - publicId.Length + i, publicId, i ); 3099Throw( curPos - entityName.Name.Length - 1, Res.Xml_InvalidParEntityRef ); 3107Throw( curPos - entityName.Name.Length - 1, paramEntity ? Res.Xml_RecursiveParEntity : Res.Xml_RecursiveGenEntity, entityName.Name ); 3120if ( entity.Text.Length == 0 ) { 3186SendValidationEvent( curPos - entityName.Name.Length - 1, XmlSeverityType.Error, Res.Xml_UndeclaredParEntity, entityName.Name ); 3194SendValidationEvent( curPos - entityName.Name.Length - 1, XmlSeverityType.Error, Res.Xml_UndeclaredEntity, entityName.Name ); 3199Throw( curPos - entityName.Name.Length - 1, Res.Xml_UndeclaredEntity, entityName.Name ); 3206Throw( curPos - entityName.Name.Length - 1, Res.Xml_UnparsedEntityRef, entityName.Name ); 3210Throw( curPos - entityName.Name.Length - 1, Res.Xml_ExternalEntityInAttValue, entityName.Name ); 3345int len = value.Length;
System\Xml\Schema\DtdParserAsync.cs (12)
108if ( systemId != null && systemId.Length > 0 ) { 120if ( systemId != null && systemId.Length > 0 ) { 295if ( attrDef != null && attrDef.Prefix.Length > 0 && attrDef.Prefix.Equals( "xml" ) && attrDef.Name.Name == "space" ) { 317if (attrDef.Prefix.Length > 0 && attrDef.Prefix.Equals("xml")) { 537SendValidationEvent( curPos - name.Name.Length, XmlSeverityType.Error, Res.Sch_DupElementDecl, GetNameString() ); 910entity.DeclaredURI = ( externalDtdBaseUri.Length == 0 ) ? documentBaseUri : externalDtdBaseUri; 1003SendValidationEvent( curPos - notationName.Name.Length, XmlSeverityType.Error, Res.Sch_DupNotation, notationName.Name ); 1138Throw( curPos - systemId.Length - 1, Res.Xml_FragmentId, new string[] { systemId.Substring( systemId.IndexOf( '#' ) ), systemId } ); 1153ThrowInvalidChar( curPos - 1 - publicId.Length + i, publicId, i ); 2465Throw( curPos - entityName.Name.Length - 1, Res.Xml_InvalidParEntityRef ); 2473Throw( curPos - entityName.Name.Length - 1, paramEntity ? Res.Xml_RecursiveParEntity : Res.Xml_RecursiveGenEntity, entityName.Name ); 2489if ( entity.Text.Length == 0 ) {
System\Xml\Schema\FacetChecker.cs (4)
584int length = pattern.Length; 1128int length = value.Length; 1204if (s == null || s.Length == 0) { 1245int length = strValue.Length;
System\Xml\Schema\Inference\Infer.cs (62)
272if (ns.Length != 0) { //Do not add xmlns="" 344if (childURI.Length == 0) 360if (childURI.Length != 0) 364if (prefix.Length != 0 && String.Compare(prefix, "xml", StringComparison.OrdinalIgnoreCase) != 0) 376if (childURI.Length != 0) // 485if (childURI.Length != 0) 500Debug.Assert(targetNS == null || targetNS.Length > 0 , "targetns for schema is empty"); 556if (prefix.Length!=0) 1055if (childURI.Length == 0) 1421if (attr.RefName.Name.Length == 0) { //If the attribute is not present in this instance, make it optional 1740if (s.Length==0) return TF_string; 1767if (i==s.Length) 1786i++; if (i==s.Length) return TF_decimal | TF_float | TF_double | TF_string; //"9999.9" was matched 1799i++; if (i==s.Length) return TF_string; 1812i++; if (i==s.Length) return TF_string; //".9999e+" was matched 1818i++; if (i==s.Length) return TF_float | TF_double | TF_string; //".9999e+99" was matched 1825i++; if (i==s.Length) return TF_string; 1841i++; if (i==s.Length) return TF_string; 1855i++; if (i==s.Length) return TF_string; 1866i++; if (i==s.Length) return TF_string; //"P999" was matched 1883if (i==s.Length) 1899i++; if (i==s.Length) return TF_string; //"P999Y9" was matched 1914if (i==s.Length) 1930i++; if (i==s.Length) return TF_string; //"P999Y999M9" was matched 1943if (i==s.Length) 1956i++; if (i==s.Length) return TF_string; //"P999Y999M9999DT" was matched 1962i++; if (i==s.Length) return TF_string; //"___T9" was matched 1981if (i==s.Length) 1991i++; if (i==s.Length) return TF_string; //"___T999H9" was matched 2008if (i==s.Length) 2018i++; if (i==s.Length) return TF_string; //"___T999H999M9" was matched 2033if (i==s.Length) 2043i++; if (i==s.Length) return TF_string; //"___T999H999M999.9" was matched 2056if (i==s.Length) 2065if (i==s.Length) 2096if (i==s.Length) 2125if (i==s.Length) 2150if (i==s.Length) 2178i++; if (i==s.Length) return TF_string; //"9999-" 2181i++; if (i==s.Length) return TF_string; //"9999-9" 2185if (i==s.Length) 2205i++; if (i==s.Length) return TF_string; //"9999-99-" 2208i++; if (i==s.Length) return TF_string; //"9999-99-9" 2211i++; if (i==s.Length) return DateTime(s, bDate, bTime); //"9999-99-99" 2231if (i==s.Length) 2246i++; if (i==s.Length) return TF_string; 2249i++; if (i==s.Length) return TF_string; 2252i++; if (i==s.Length) return TF_string; 2256i++; if (i==s.Length) return TF_string; 2259i++; if (i==s.Length) return TF_string; 2263if (i==s.Length) 2277i++; if (i==s.Length) return TF_string; 2280i++; if (i==s.Length) return TF_string; 2283i++; if (i==s.Length) return TF_string; 2287i++; if (i==s.Length) return TF_string; 2290i++; if (i==s.Length) return TF_string; 2293i++; if (i==s.Length) return TF_string; 2296i++; if (i==s.Length) return TF_string; 2299i++; if (i==s.Length) return TF_string; 2302i++; if (i==s.Length) return DateTime(s, bDate, bTime); 2317i++; if (i==s.Length) return TF_string; 2321i++; if (i==s.Length) return DateTime(s, bDate, bTime);
System\Xml\Schema\NamespaceList.cs (3)
32if (namespaces == "##any" || namespaces.Length == 0) { 92return ns != targetNamespace && ns.Length != 0; 123else if (s.Length == 0) {
System\Xml\Schema\Parser.cs (5)
168namespaceManager.AddNamespace(reader.Prefix.Length == 0 ? string.Empty : reader.LocalName, reader.Value); 311annotationNSManager.AddNamespace(r.Prefix.Length == 0 ? string.Empty : reader.LocalName, reader.Value); 323else if (ns.Length == 0) { //string.Empty prefix is mapped to string.Empty NS by default 332if (r.Prefix.Length != 0) { 352if (prefix.Length == 0) {
System\Xml\Schema\Preprocessor.cs (8)
109else if (targetNamespace != null && targetNamespace.Length != 0) { //if schema.TargetNamespace == null & targetNamespace != null, we will force the schema components into targetNamespace 470if (tns.Length == 0) { 525if (importNS.Length == 0) { 556else if (targetNamespace != null && targetNamespace.Length != 0) { //Chameleon redefine 1702if (name == null || name.Length == 0) { 1708if (len != name.Length) { // If the string is not a valid NCName, then throw or return false 1722if (currentSchema.IsChameleon && value.Namespace.Length == 0) { 1740if (location.Length == 0) {
System\Xml\Schema\SchemaCollectionpreProcessor.cs (5)
259if (tns.Length == 0) { 285else if (schema.TargetNamespace == null && targetNamespace != null && targetNamespace.Length == 0) { // no namespace schema 343if (ns.Length == 0) { 1385if (name == null || name.Length == 0) { 1391if (len != name.Length) { // If the string is not a valid NCName, then throw or return false
System\Xml\Schema\SchemaInfo.cs (1)
180if (!ed.ContentValidator.IsOpen || qname.Namespace.Length == 0) {
System\Xml\Schema\SchemaNamespacemanager.cs (1)
33return prefix.Length == 0 ? string.Empty : null;
System\Xml\Schema\XdrBuilder.cs (10)
441if (prefixValue.Length != 0) { 492Uri ruri = xmlResolver.ResolveUri(_baseUri, uri.Substring(x_schema.Length)); 518return uri.Length >= x_schema.Length && 5190 == string.Compare(uri, 0, x_schema, 0, x_schema.Length, StringComparison.Ordinal) && 623if (gname.Namespace.Length == 0) { 700if (s.Length == 0) { 1145if (prefix.Length == 0) 1152else if (prefix.Length != 0) { 1345ns.Length != 0 &&
System\Xml\Schema\XdrValidator.cs (6)
176nsManager.AddNamespace(reader.Prefix.Length == 0 ? string.Empty : reader.LocalName, reader.Value); 278string url = uri.Substring(x_schema.Length); 391if (value.Length == 0) { 415if(value.Length > decl.MaxLength) { 420if(value.Length < decl.MinLength) { 474if (value.Length == 0) {
System\Xml\Schema\XmlAtomicValue.cs (1)
339if (len == 0 || len != value.Length) {
System\Xml\Schema\XmlSchema.cs (1)
201if (targetNs != null && targetNs.Length != 0) {
System\Xml\Schema\XmlSchemaAny.cs (1)
51if (ns == null || ns.Length == 0) {
System\Xml\Schema\XmlSchemaCollection.cs (1)
104if (uri == null || uri.Length == 0)
System\Xml\Schema\XmlSchemaDataType.cs (3)
312if (uri.Length > 5 && uri.StartsWith("uuid:", StringComparison.Ordinal)) { 315else if (uri.Length > 9 && uri.StartsWith("urn:uuid:", StringComparison.Ordinal)) { 321canonicalUri = nameTable.Add(uri.Substring(0, offset) + uri.Substring(offset, uri.Length - offset).ToUpper(CultureInfo.InvariantCulture));
System\Xml\Schema\XmlSchemaElement.cs (1)
280get { return defaultValue != null && defaultValue.Length > 0; }
System\Xml\Schema\XmlSchemaParticle.cs (1)
147return new XmlQualifiedName("*", ns.Length == 0 ? "##any" : ns);
System\Xml\Schema\XmlSchemaSet.cs (9)
280if (schemaUri == null || schemaUri.Length == 0) { 862if (schemaUri == null || schemaUri.OriginalString.Length == 0) { 1084if (schemas.ContainsKey(currentSchema.SchemaId) || (baseUri != null && baseUri.OriginalString.Length != 0 && schemaLocations[baseUri] != null)) { 1089if (baseUri != null && baseUri.OriginalString.Length != 0) { 1187if (schemas.ContainsKey(schema.SchemaId) && (targetNamespace.Length == 0 || targetNamespace == schema.TargetNamespace)) { //schema is present in set 1199else if (targetNamespace.Length != 0 && targetNamespace != schema.TargetNamespace) { 1215if (schemaUri == null || schemaUri.OriginalString.Length == 0) { 1248if (reprocessList[i].BaseUri != null && reprocessList[i].BaseUri.OriginalString.Length != 0) { 1296if (qname.Name.Length == 0) {
System\Xml\Schema\XmlSchemaValidator.cs (12)
503&& attQName.Namespace.Length != 0 902if (attributeNS.Length > 0) { 904if (defaultPrefix == null || defaultPrefix.Length == 0) { 1213if (stringValue.Length == 0 && currentElementDecl.DefaultValueTyped != null) { //default value maybe present 1279if (typeName.Length == 0) { 1531if (elementValue.Length == 0) { 1799if (defaultPrefix.Length != 0) { //Locate first non-empty prefix 1975if (typedValue != null && stringValue.Length != 0) { 2234if (name.Namespace.Length != 0) { 2265if (name.Namespace.Length != 0) { 2293return (ns.Length != 0) ? string.Concat(ns, ":", localName) : localName; 2301if (ns.Length != 0) {
System\Xml\Schema\XmlValueConverter.cs (2)
554if (name.Namespace.Length == 0) { 785return (prefix.Length != 0) ? string.Concat(prefix, ":", qname.Name) : qname.Name;
System\Xml\Schema\XsdBuilder.cs (2)
732if ((ns != this.schemaNames.NsXs) && (ns.Length != 0)) { 2311if (r == (int)XmlSchemaDerivationMethod.All && value.Length > HashAllLength) { //#all is not allowed with other values
System\Xml\Schema\XsdDateTime.cs (23)
89static readonly int Lzyyyy = "yyyy".Length; 90static readonly int Lzyyyy_ = "yyyy-".Length; 91static readonly int Lzyyyy_MM = "yyyy-MM".Length; 92static readonly int Lzyyyy_MM_ = "yyyy-MM-".Length; 93static readonly int Lzyyyy_MM_dd = "yyyy-MM-dd".Length; 94static readonly int Lzyyyy_MM_ddT = "yyyy-MM-ddT".Length; 95static readonly int LzHH = "HH".Length; 96static readonly int LzHH_ = "HH:".Length; 97static readonly int LzHH_mm = "HH:mm".Length; 98static readonly int LzHH_mm_ = "HH:mm:".Length; 99static readonly int LzHH_mm_ss = "HH:mm:ss".Length; 100static readonly int Lz_ = "-".Length; 101static readonly int Lz_zz = "-zz".Length; 102static readonly int Lz_zz_ = "-zz:".Length; 103static readonly int Lz_zz_zz = "-zz:zz".Length; 104static readonly int Lz__ = "--".Length; 105static readonly int Lz__mm = "--MM".Length; 106static readonly int Lz__mm_ = "--MM-".Length; 107static readonly int Lz__mm__ = "--MM--".Length; 108static readonly int Lz__mm_dd = "--MM-dd".Length; 109static readonly int Lz___ = "---".Length; 110static readonly int Lz___dd = "---dd".Length; 696this.length = text.Length;
System\Xml\Schema\XsdDuration.cs (2)
457length = s.Length; 624int offsetEnd = s.Length;
System\Xml\Schema\XsdValidator.cs (4)
246nsManager.AddNamespace(reader.Prefix.Length == 0 ? string.Empty : reader.LocalName, reader.Value); 290if(!(stringValue.Length == 0 && context.ElementDecl.DefaultValueTyped != null)) { 424&& attQName.Namespace.Length != 0 878if(reader.TypedValueObject != null && stringValue.Length != 0) {
System\Xml\Serialization\CodeExporter.cs (2)
237if (name == null || name.Length == 0) { 245if (ns != null && ns.Length != 0) {
System\Xml\Serialization\CodeIdentifier.cs (11)
39if (identifier.Length <= 2) 53if (identifier.Length <= 2) 67for (int i = 0; i < identifier.Length && builder.Length < MaxIdentifierLength; i++) { 81if (identifier.Length > 30) { 197if (ns != null && ns.Length > 0) { 221if (identifier == null || identifier.Length == 0) 227identifier = identifier.Substring(0, identifier.Length - 2); 229if (identifier.Length > 0) { 240if (identifier == null || identifier.Length == 0) return identifier; 250separator += names[i].Length; 254if (sb.Length != originalIdentifier.Length)
System\Xml\Serialization\CodeIdentifiers.cs (1)
101if (identifier.Length > CodeIdentifier.MaxIdentifierLength) {
System\Xml\Serialization\Compilation.cs (2)
219else if (assemblyAttribute.CodeBase != null && assemblyAttribute.CodeBase.Length > 0) { 550if (encodingStyle != null && encodingStyle.Length > 0) {
System\Xml\Serialization\Compiler.cs (6)
127if (baseDir != null && baseDir.Length > 0) { 152return parent.Name + ".XmlSerializers" + (ns == null || ns.Length == 0 ? "" : "." + ns.GetHashCode()); 178if (parent != null && (parameters.OutputAssembly == null || parameters.OutputAssembly.Length ==0)) { 186if (parameters.CompilerOptions == null || parameters.CompilerOptions.Length == 0) 221if (user == null || user.Length == 0) { 241if (options == null || options.Length == 0)
System\Xml\Serialization\Mappings.cs (7)
92if (name == null || name.Length == 0) return name; 97if (name == null || name.Length == 0) return name; 102if (colon == 0 || colon == name.Length - 1) 205Name = Name.Substring("xml:".Length); 288get { return typeName == null || typeName.Length == 0; } 996if (s.TargetNamespace != null && s.TargetNamespace.Length > 0) { 1189if (schema.Id == null || schema.Id.Length == 0) throw new InvalidOperationException(Res.GetString(Res.XmlSerializableNameMissing1, type.FullName));
System\Xml\Serialization\SchemaObjectWriter.cs (6)
137if (value == null || value.Length == 0) 141if (ns != null && ns.Length != 0) 215if (s.Length == 0) { 256if (o.QualifiedName != null && !o.QualifiedName.IsEmpty && o.QualifiedName.Namespace != null && o.QualifiedName.Namespace.Length != 0) { 822if (o.QualifiedName != null && !o.QualifiedName.IsEmpty && o.QualifiedName.Namespace != null && o.QualifiedName.Namespace.Length != 0) { 829if (o.Name != null && o.Name.Length != 0) {
System\Xml\Serialization\SoapCodeExporter.cs (1)
137if (baseName != null && baseName.Length > 0) {
System\Xml\Serialization\SoapReflectionImporter.cs (8)
151element.Name = elementName == null || elementName.Length == 0 ? elementName : XmlConvert.EncodeLocalName(elementName); 184if (dataType.Length > 0) { 503if (dataType.Length > 0) { 561constant.XmlName = a.SoapEnum.Name.Length == 0 ? model.Name : a.SoapEnum.Name; 649attribute.Name = Accessor.EscapeQName(a.SoapAttribute == null || a.SoapAttribute.AttributeName.Length == 0 ? accessorName : a.SoapAttribute.AttributeName); 663element.Name = XmlConvert.EncodeLocalName(a.SoapElement == null || a.SoapElement.ElementName.Length == 0 ? accessorName : a.SoapElement.ElementName); 704if (typeDesc.IsPrimitive && typeDesc.DataType != null && typeDesc.DataType.Name != null && typeDesc.DataType.Name.Length > 0) 710if (a.SoapType != null && a.SoapType.TypeName.Length > 0)
System\Xml\Serialization\SoapSchemaExporter.cs (2)
106schema.TargetNamespace = ns == null || ns.Length == 0 ? null : ns; 124if (ns != null && ns.Length > 0 && FindImport(schema, ns) == null) {
System\Xml\Serialization\SoapSchemaImporter.cs (3)
165if (element.Name.Length == 0) { 605if (dataType.Name != null && dataType.Name.Length != 0) { 617if (dataType.Name != null && dataType.Name.Length != 0) {
System\Xml\Serialization\XmlAttributes.cs (1)
111if ((any.Name == null || any.Name.Length == 0) && any.NamespaceSpecified && any.Namespace == null) {
System\Xml\Serialization\XmlCodeExporter.cs (6)
208if (values[i].Length == 0) continue; 298if (vals[i] != null && vals[i].Length > 0) count++; 304if (vals[i] != null && vals[i].Length > 0) { 510if (baseName != null && baseName.Length > 0) { 792if (form == XmlSchemaForm.Unqualified && ns != null && ns.Length == 0) { 817if (name != null && name.Length > 0) {
System\Xml\Serialization\Xmlcustomformatter.cs (2)
375if (value.Length == 0) 392else if (validate && parts[i].Length > 0)
System\Xml\Serialization\XmlReflectionImporter.cs (28)
197element.Name = elementName == null || elementName.Length == 0 ? elementName : XmlConvert.EncodeLocalName(elementName); 249if (root.ElementName.Length > 0) 278if (accessor.Any && accessor.Name.Length == 0) 350if (dataType.Length > 0) { 629if (typeName == null || typeName.Length == 0) 838if (typeDesc.IsPrimitive && typeDesc.DataType != null && typeDesc.DataType.Name != null && typeDesc.DataType.Name.Length > 0) 845if (a.XmlType != null && a.XmlType.TypeName.Length > 0) 1015if (dataType.Length > 0) { 1170if (structAttrs.XmlRoot.ElementName.Length > 0) 1183if (xmlElement.ElementName.Length == 0) 1308arrayItemElement.Name = xmlArrayItem.ElementName.Length == 0 ? arrayItemElement.Mapping.DefaultElementName : XmlConvert.EncodeLocalName(xmlArrayItem.ElementName); 1382attribute.Name = Accessor.EscapeQName(a.XmlAttribute.AttributeName.Length == 0 ? accessorName : a.XmlAttribute.AttributeName); 1429element.Name = XmlConvert.EncodeLocalName(xmlElement.ElementName.Length == 0 ? accessorName : xmlElement.ElementName); 1433element.Name = xmlElement.ElementName.Length == 0 ? element.Mapping.DefaultElementName : XmlConvert.EncodeLocalName(xmlElement.ElementName); 1461string anyName = xmlAnyElement.Name.Length == 0 ? xmlAnyElement.Name : XmlConvert.EncodeLocalName(xmlAnyElement.Name); 1478if (element.Name.Length > 0) 1511arrayElement.Name = XmlConvert.EncodeLocalName(a.XmlArray.ElementName.Length == 0 ? accessorName : a.XmlArray.ElementName); 1544attribute.Name = Accessor.EscapeQName(a.XmlAttribute.AttributeName.Length == 0 ? accessorName : a.XmlAttribute.AttributeName); 1582element.Name = XmlConvert.EncodeLocalName(xmlElement.ElementName.Length == 0 ? accessorName : xmlElement.ElementName); 1641element.Name = XmlConvert.EncodeLocalName(xmlElement.ElementName.Length == 0 ? accessorName : xmlElement.ElementName); 1644element.Name = xmlElement.ElementName.Length == 0 ? element.Mapping.DefaultElementName : XmlConvert.EncodeLocalName(xmlElement.ElementName); 1674string anyName = xmlAnyElement.Name.Length == 0 ? xmlAnyElement.Name : XmlConvert.EncodeLocalName(xmlAnyElement.Name); 1694if (element.Name.Length > 0) 1737if (element.Any && element.Name.Length == 0) { 1739if (xmlName.Substring(0, xmlName.Length-1) == anyNs) { 1759if (element.Any && element.Name.Length == 0) { 1764string id = element.Namespace != null && element.Namespace.Length > 0 ? element.Namespace + ":" + element.Name : element.Name; 1964if (typeName.Length == 0)
System\Xml\Serialization\XmlSchemaExporter.cs (9)
61if (type != null && type.Name != null && type.Name.Length > 0) { 173if (members.Count == 1 && members[0].Any && members[0].ElementName.Length == 0) { 231if (accessor.Any && accessor.Name.Length == 0) 304if (ns != null && ns.Length > 0) 312if (ns1 == null || ns1.Length == 0) 313return (ns2 == null || ns2.Length == 0); 423if (serializableMapping.NamespaceList.Length > 0) 720if (accessor.Any && accessor.Name.Length == 0) { 724if (accessor.Namespace != null && accessor.Namespace.Length > 0 && accessor.Namespace != ns)
System\Xml\Serialization\XmlSchemaImporter.cs (22)
300if (element.Name.Length == 0) { 305if (identifier.Length == 0) 394if (typeName != null && typeName.Length > 0) { 504if (mapping != null && type.Name != null && type.Name.Length != 0) 580string typeName = type.Name == null || type.Name.Length == 0 ? GenerateUniqueTypeName(identifier, typeNs) : GenerateUniqueTypeName(identifier); 583structMapping.TypeName = type.Name == null || type.Name.Length == 0 ? null : identifier; 1041if (identifier.Length == 0) 1214arrayMapping.TypeName = (type.Name == null || type.Name.Length == 0) ? "ArrayOf" + CodeIdentifier.MakePascal(arrayMapping.TypeDesc.Name) : type.Name; 1230arrayMapping.TypeName = (type.Name == null || type.Name.Length == 0) ? "ArrayOf" + CodeIdentifier.MakePascal(itemAccessor.Mapping.TypeDesc.Name) : type.Name; 1241if (type.Name != null && type.Name.Length != 0) 1495if (attribute.Name.Length == 0) throw new InvalidOperationException(Res.GetString(Res.XmlAttributeHasNoName)); 1496if (identifier.Length == 0) 1608if (dataType.Name != null && dataType.Name.Length > 0) 1691if (dataType.Name != null && dataType.Name.Length != 0) { 1737if (dataType.Name != null && dataType.Name.Length != 0) { 1808if (ns == null || ns.Length == 0) { 1813return element.QualifiedName.Namespace == null || element.QualifiedName.Namespace.Length == 0 ? XmlSchemaForm.Unqualified : XmlSchemaForm.Qualified; 1825if (typeName != null && typeName.Length > 0) { 1837if (typeName != null && typeName.Length > 0) { 1849if (typeName != null && typeName.Length > 0) { 1865if (ns == null || ns.Length == 0) { 1870return attribute.QualifiedName.Namespace == null || attribute.QualifiedName.Namespace.Length == 0 ? XmlSchemaForm.Unqualified : XmlSchemaForm.Qualified;
System\Xml\Serialization\XmlSchemas.cs (4)
483if (type.Name != null && type.Name.Length != 0) { 499if (ns == null || ns.Length == 0) { 517if (e.Name == null || e.Name.Length == 0) { 534if (a.Name == null || a.Name.Length == 0) {
System\Xml\Serialization\XmlSerializationReader.cs (27)
772if (name.Length == 5) return true; 955if (value.Length == 0) { 1025if (itemType != null && itemType.Length > 0) 1031if (arraySize != null && arraySize.Length > 0) 1039if (dimensions[i].Length > 0) { 1122if (prefix == null || prefix.Length == 0) { 1341if (value == null || value.Length == 0) 1526if (arrayInfo.qname.Length > 0) { 1617if (r.NamespaceURI.Length != 0){ 2394if (mapping.Elements[j].Any && mapping.Elements[j].Name.Length == 0) { 3113if (mapping.Elements[j].Any && (mapping.Elements[j].Name == null || mapping.Elements[j].Name.Length == 0)) { 3302if (member.Mapping.CheckSpecified == SpecifiedAccessor.ReadWrite && member.CheckSpecifiedSource != null && member.CheckSpecifiedSource.Length > 0) { 3400if (name != null && name.Length > 0) { 3590if (member.Mapping.CheckSpecified == SpecifiedAccessor.ReadWrite && member.CheckSpecifiedSource != null && member.CheckSpecifiedSource.Length > 0) { 3662if (member.Source[member.Source.Length - 1] == '(' || member.Source[member.Source.Length - 1] == '{') { 3666if (member.Source[member.Source.Length - 1] == '{') 3715if (e.Any && (e.Name == null || e.Name.Length == 0)) continue; 3729bool checkType = (checkTypeHrefsSource != null && checkTypeHrefsSource.Length > 0); 3862if (element.Any && element.Name.Length == 0) { 3881bool checkType = checkTypeSource != null && checkTypeSource.Length > 0; 3907if (!isSequence && e.Any && (e.Name == null || e.Name.Length == 0)) continue; 4141if (source[source.Length - 1] != '(' && source[source.Length - 1] != '{') 4148if (source[source.Length - 1] == '(' ) 4150else if( source[source.Length - 1] == '{') 4248if (checkSpecified != null && checkSpecified.Length > 0) {
System\Xml\Serialization\XmlSerializationReaderILGen.cs (11)
485if (mapping.Elements[j].Any && mapping.Elements[j].Name.Length == 0) { 1587if (mapping.Elements[j].Any && (mapping.Elements[j].Name == null || mapping.Elements[j].Name.Length == 0)) { 2172if (member.Mapping.CheckSpecified == SpecifiedAccessor.ReadWrite && member.CheckSpecifiedSource != null && member.CheckSpecifiedSource.Length > 0) { 2207if (member.Source[member.Source.Length - 1] == '(' || member.Source[member.Source.Length - 1] == '{') { 2265if (e.Any && (e.Name == null || e.Name.Length == 0)) continue; 2486if (element.Any && element.Name.Length == 0) { 2526if (!isSequence && e.Any && (e.Name == null || e.Name.Length == 0)) continue; 2985if (checkSpecified != null && checkSpecified.Length > 0) { 3557ilg.LoadArrayElement(idsLoc, Int32.Parse(source.Substring(14, source.Length - 16), CultureInfo.InvariantCulture)); 3571ilg.LoadArrayElement(idsLoc, Int32.Parse(id.Substring(4, id.Length - 5), CultureInfo.InvariantCulture));
System\Xml\Serialization\XmlSerializationWriter.cs (39)
362if (ns == null || ns.Length == 0) return name; 373else if (prefix.Length == 0) { 429if (alias.Length > 0 && aliasNs == ns) 431if (alias.Length == 0) { 432if (aliasNs == null || aliasNs.Length == 0) 440if (writePrefixed && prefix == null && ns != null && ns.Length > 0) { 442if (prefix == null || prefix.Length == 0) { 449if (needEmptyDefaultNamespace && prefix == null && ns != null && ns.Length != 0) 455if (alias.Length == 0 && (aliasNs == null || aliasNs.Length == 0)) 457if (aliasNs == null || aliasNs.Length == 0) { 458if (alias.Length > 0) 465if (prefix == null && alias.Length == 0) 477int prefixLength = prefix.Length; 481if (alias.Length > prefixLength) { 483int nameLength = name.Length; 484if (name.Length > prefixLength && name.Length <= prefixLength + MaxInt32.Length && name.StartsWith(prefix, StringComparison.Ordinal)) { 486for (int j = prefixLength; j < name.Length; j++) { 517if (name == null || name.Length == 0) 531if (name == null || name.Length == 0) 545if (name == null || name.Length == 0) 691if (node is XmlElement && name != null && name.Length > 0) { 842if (prefix == null || prefix.Length == 0) 868if (prefix == null || prefix.Length == 0) 1034if (value.Namespace == null || value.Namespace.Length == 0) { 1112if (soap12 && name != null && name.Length > 0) 1227WriteStartElement(name.Length == 0 ? entry.typeName : name, ns == null ? entry.typeNs : ns, null, true); 1273string oldPrefix = (ns == null || ns.Length == 0) ? null : Writer.LookupPrefix(ns); 1494if (values[i] == null || values[i].Length == 0) 2536if (element.Name != null && element.Name.Length > 0) 2748string ns = element.Any && element.Name.Length == 0 ? null : (element.Form == XmlSchemaForm.Qualified ? (writeAccessor ? element.Namespace : element.Mapping.Namespace) : ""); 3009if (value is string && ((string)value).Length == 0) { 3195if (element.Any && element.Name.Length == 0) { 3219if (enumValue == null || enumValue.Length == 0) { 3220if (element.Any && element.Name.Length == 0) { 3698if (cast != null && cast.Length > 0) { 3720if (arg == null || arg.Length == 0) {
System\Xml\Serialization\XmlSerializationWriterILGen.cs (7)
190if (values[i] == null || values[i].Length == 0) 1545if (element.Name != null && element.Name.Length > 0) 1847string ns = element.Any && element.Name.Length == 0 ? null : (element.Form == XmlSchemaForm.Qualified ? (writeAccessor ? element.Namespace : element.Mapping.Namespace) : ""); 2021if (value is string && ((string)value).Length == 0) { 2178if (element.Any && element.Name.Length == 0) { 2198if (enumValue == null || enumValue.Length == 0) { 2199if (element.Any && element.Name.Length == 0) {
System\Xml\Serialization\XmlSerializer.cs (2)
328if (encodingStyle != null && encodingStyle.Length > 0) { 404if (encodingStyle != null && encodingStyle.Length > 0) {
System\Xml\Serialization\XmlSerializerNamespaces.cs (2)
57if (prefix != null && prefix.Length > 0) 60if (ns != null && ns.Length > 0)
System\Xml\ValidateNames.cs (41)
49Debug.Assert(s != null && offset <= s.Length); 53while (i < s.Length) { 86Debug.Assert(s != null && offset <= s.Length); 90while (i < s.Length) { 110return endPos > 0 && endPos == s.Length; 128Debug.Assert(s != null && offset <= s.Length); 132if (i < s.Length) { 146while (i < s.Length) { 167return endPos > 0 && endPos == s.Length; 184Debug.Assert(s != null && offset <= s.Length); 188if (i < s.Length) { 202while (i < s.Length) { 241if (len == 0 || len != s.Length) { 272if (offset < s.Length && s[offset] == ':') { 295if (len == 0 || len != s.Length) { 320if (s.Length != 0 && s[0] == '*') { 332if (len < s.Length && s[len] == ':') { 337if (offset < s.Length && s[offset] == '*') { 361if (len == 0 || len != s.Length) { 376if (offsetStartChar >= s.Length) 383Debug.Assert(offsetBadChar < s.Length); 406if (offsetStartChar >= s.Length) 409Debug.Assert(offsetBadChar < s.Length); 425if (s.Length < 3) 478if (prefix.Length != 0) 483if (localName.Length != 0) 495if (localName.Length == 0) { 503if (ns.Length == 0 && localName.Equals("xmlns")) { 511if (localName.Length == 0 || (localName.Length == 3 && StartsWithXml(localName))) { 519if (localName.Length != 0) { 534if (ns.Length == 0) { 536if (prefix.Length != 0) { 543if (prefix.Length == 0 && nodeKind == XPathNodeType.Attribute) { 570if (prefix.Length != 0 || ns.Length != 0) { 578if (prefix.Length != 0 || ns.Length != 0) { 593return (prefix.Length != 0) ? prefix + ":" + localName : localName; 609else if (0 == colonPos || (name.Length-1) == colonPos) { 619lname = name.Substring(colonPos, name.Length - colonPos);
System\Xml\XmlCharType.cs (6)
683for ( int i = 0; i < str.Length; i++ ) { 697for ( int i = 0; i < str.Length; i++ ) { 699if ( i + 1 >= str.Length || !(XmlCharType.IsHighSurrogate(str[i]) && XmlCharType.IsLowSurrogate(str[i+1]))) { 713Debug.Assert(startPos + len <= str.Length); 714Debug.Assert(startPos <= str.Length); 739for ( int i = 0; i < str.Length; i++ ) {
System\Xml\XmlComplianceUtil.cs (2)
20int len = value.Length; 87int len = value.Length;
System\Xml\XmlConvert.cs (31)
84if (name == null || name.Length == 0) 89int length = name.Length; 183int length = name.Length; 323if (name.Length == 0) { 330if (endPos != name.Length) { 340if (name == null || name.Length == 0) { 345if (endPos != name.Length) { 361if (name == null || name.Length == 0) { 368if (endPos != name.Length) { 387if (name.Length == 0) { 393if (end != name.Length) { 405if (len == 0 || len != name.Length) { 417if (token == null || token.Length == 0) { 420if (token[0] == ' ' || token[token.Length - 1] == ' ' || token.IndexOfAny(crt) != -1 || token.IndexOf(" ", StringComparison.Ordinal) != -1) { 427if (token == null || token.Length == 0) { 430if (token[0] == ' ' || token[token.Length - 1] == ' ' || token.IndexOfAny(crt) != -1 || token.IndexOf(" ", StringComparison.Ordinal) != -1) { 450if (name.Length == 0) { 456if (endPos != name.Length) { 464if (name == null || name.Length == 0) { 468if (endPos != name.Length) { 848if (s.Length != 1) { 1108if (str.Length != 0 && str[0] != '+') { 1370if (s != null && s.Length > 0) { //string.Empty is a valid uri but not " " 1372if (s.Length == 0 || s.IndexOf("##", StringComparison.Ordinal) != -1) { 1387if (s != null && s.Length > 0) { //string.Empty is a valid uri but not " " 1389if (s.Length == 0 || s.IndexOf("##", StringComparison.Ordinal) != -1) { 1402if ( strLen1 != str2.Length ) { 1465if ( data == null || data.Length == 0 ) { 1470int len = data.Length; 1547while ( i < value.Length ) { 1551sb = new StringBuilder( value.Length + 4 );
System\Xml\XmlException.cs (1)
236return BuildCharExceptionArgs(data[invCharIndex], invCharIndex + 1 < data.Length ? data[invCharIndex + 1] : '\0');
System\Xml\XmlNamespacemanager.cs (4)
235if ( uri.Length > 0 || prefix.Length > 0 || scope == XmlNamespaceScope.Local ) { 298if ( prefix.Length > 0 || nsdecls[thisDecl].uri.Length > 0 ) {
System\Xml\XmlQualifiedName.cs (7)
92hash = hashCodeDelegate(Name, Name.Length, 0); 106get { return Name.Length == 0 && Namespace.Length == 0; } 114return Namespace.Length == 0 ? Name : string.Concat(Namespace, ":" , Name); 162return ns == null || ns.Length == 0 ? name : ns + ":" + name; 234if (ns.Length != 0) { 251if (prefix.Length != 0) {
System\Xml\XmlResolver.cs (3)
49if ( baseUri == null || ( !baseUri.IsAbsoluteUri && baseUri.OriginalString.Length == 0 ) ) { 52if ( !uri.IsAbsoluteUri && uri.OriginalString.Length > 0 ) { 59if (relativeUri == null || relativeUri.Length == 0) {
System\Xml\XmlSecureResolver.cs (2)
46if (securityUrl != null && securityUrl.Length > 0) { 57if (uncDir != null && uncDir.Length != 0) {
System\Xml\XPath\Internal\BaseAxisQuery.cs (6)
42this.nameTest = prefix.Length != 0 || name.Length != 0; 85if (name.Equals(e.LocalName) || name.Length == 0) { 110if (name.Length != 0) { 113if (prefix.Length != 0) { 124w.WriteAttributeString("name", Prefix.Length != 0 ? Prefix + ':' + Name : Name);
System\Xml\XPath\Internal\BooleanFunctions.cs (4)
51return str.Length > 0; 75(lang.Length == str.Length || lang[str.Length] == '-')
System\Xml\XPath\Internal\CompiledXPathExpr.cs (1)
102if (prefix.Length == 0) {
System\Xml\XPath\Internal\DescendantBaseQuery.cs (1)
57w.WriteAttributeString("name", Prefix.Length != 0 ? Prefix + ':' + Name : Name);
System\Xml\XPath\Internal\ExtensionQuery.cs (1)
110protected string QName { get { return prefix.Length != 0 ? prefix + ":" + name : name; } }
System\Xml\XPath\Internal\FilterQuery.cs (2)
62if (value is string ) return ((string)value).Length != 0; 127return (((string)cond.Evaluate(new XPathSingletonIterator(current, /*moved:*/true))).Length != 0) ? context : null;
System\Xml\XPath\Internal\FunctionQuery.cs (2)
77if (name != "key" && prefix.Length != 0) { 103w.WriteAttributeString("name", prefix.Length != 0 ? prefix + ':' + name : name);
System\Xml\XPath\Internal\NamespaceQuery.cs (2)
53if (e.Value.Length == 0) { 54Debug.Assert(e.LocalName.Length == 0, "Only xmlns='' can have empty string as a value");
System\Xml\XPath\Internal\QueryBuilder.cs (4)
58if (root.Prefix.Length > 0) { 164if ((root.NodeType == XPathNodeType.All || root.NodeType == XPathNodeType.Element || root.NodeType == XPathNodeType.Attribute) && root.Prefix.Length == 0) { 365if (! allowCurrent && root.Name == "current" && root.Prefix.Length == 0) { 368if (! allowKey && root.Name == "key" && root.Prefix.Length == 0) {
System\Xml\XPath\Internal\StringFunctions.cs (13)
114return s1.Length >= s2.Length && string.CompareOrdinal(s1, 0, s2, 0, s2.Length) == 0; 128if (s2.Length == 0) { return s2; } 136if (s2.Length == 0) { return s1; } 138return (idx < 0) ? string.Empty : s1.Substring(idx + s2.Length); 145if (Double.IsNaN(num) || str1.Length <= num) { 161double maxlength = str1.Length - num; 175return argList[0].Evaluate(nodeIterator).ToString().Length; 177return nodeIterator.Current.Value.Length; 192while (count < str1.Length) { 211while (count < str1.Length) { 214if (index < str3.Length) {
System\Xml\XPath\Internal\VariableQuery.cs (1)
63w.WriteAttributeString("name", prefix.Length != 0 ? prefix + ':' + name : name);
System\Xml\XPath\Internal\XPathAncestorQuery.cs (1)
64w.WriteAttributeString("name", Prefix.Length != 0 ? Prefix + ':' + Name : Name);
System\Xml\XPath\Internal\XPathAxisIterator.cs (1)
76(name.Length == 0 || name == nav.LocalName) &&
System\Xml\XPath\Internal\XPathParser.cs (4)
201scaner.Prefix.Length == 0 && ( 462if (prefix.Length == 0) { 574if (this.scanner.Prefix.Length == 0) { 668this.scanner.Prefix.Length == 0 &&
System\Xml\XPath\Internal\XPathScanner.cs (2)
43Debug.Assert(0 <= xpathExprIndex && xpathExprIndex <= xpathExpr.Length); 44if (xpathExprIndex < xpathExpr.Length) {
System\Xml\XPath\XPathDocument.cs (1)
193if (reader.Prefix.Length == 0) {
System\Xml\XPath\XPathNavigator.cs (7)
377if (prefix.Length == 0) 446if (prefix.Length != 0 || ns.Length != 0 || scope == XmlNamespaceScope.Local) 1174if (LocalName.Length == 0) 1256if (value.Length != 0) { 1803if (reader.Prefix.Length == 0) { 1859if (reader.Prefix.Length == 0) {
System\Xml\XPath\XPathNavigatorReader.cs (5)
195if (this.nav.NodeType == XPathNodeType.Namespace && this.nav.LocalName.Length == 0) 207if (this.nav.NodeType == XPathNodeType.Namespace && this.nav.LocalName.Length != 0) 378if ( 0 == prefix.Length ) { 621if ( ( IsXmlnsNoPrefix = ( 0 == prefix.Length && localname == "xmlns" ) ) 632else if ( 0 == prefix.Length ) {
System.Xml.Linq (64)
System\Xml\Linq\XLinq.cs (56)
76if (ns.NamespaceName.Length == 0) return localName; 91if (expandedName.Length == 0) throw new ArgumentException(Res.GetString(Res.Argument_InvalidExpandedName, expandedName)); 94if (i <= 1 || i == expandedName.Length - 1) throw new ArgumentException(Res.GetString(Res.Argument_InvalidExpandedName, expandedName)); 95return XNamespace.Get(expandedName, 1, i - 1).GetName(expandedName, i + 1, expandedName.Length - i - 1); 276return GetName(localName, 0, localName.Length); 327return Get(namespaceName, 0, namespaceName.Length); 416Debug.Assert(index >= 0 && index <= localName.Length, "Caller should have checked that index was in bounds"); 417Debug.Assert(count >= 0 && index + count <= localName.Length, "Caller should have checked that count was in bounds"); 433Debug.Assert(index >= 0 && index <= namespaceName.Length, "Caller should have checked that index was in bounds"); 434Debug.Assert(count >= 0 && index + count <= namespaceName.Length, "Caller should have checked that count was in bounds"); 450if (count == xmlPrefixNamespace.Length && string.CompareOrdinal(namespaceName, index, xmlPrefixNamespace, 0, count) == 0) return Xml; 451if (count == xmlnsPrefixNamespace.Length && string.CompareOrdinal(namespaceName, index, xmlnsPrefixNamespace, 0, count) == 0) return Xmlns; 775hashCode = ComputeHashCode(key, 0, key.Length); 803while (!FindEntry(hashCode, key, 0, key.Length, ref entryIndex)) { 872if (count == keyCompare.Length && string.CompareOrdinal(key, index, keyCompare, 0, count) == 0) { 2358if (s.Length == 0) return null; 2636if (s.Length > 0) { 2779if (s.Length > 0) { 2796else if (s.Length > 0) { 2813else if (s.Length > 0) { 2917if (text.Length > 0) { 2929if (s != null && s.Length > 0) { 3039e.AppendAttributeSkipNotify(new XAttribute(aCache.Get(r.Prefix.Length == 0 ? string.Empty : r.NamespaceURI).GetName(r.LocalName), r.Value)); 3113XAttribute a = new XAttribute(aCache.Get(r.Prefix.Length == 0 ? string.Empty : r.NamespaceURI).GetName(r.LocalName), r.Value); 3295if (text.Length > 0) { 3313else if (text.Length > 0) { 3368if (text.Length > 0) { 3785if (prefix.Length == 0) throw new ArgumentException(Res.GetString(Res.Argument_InvalidPrefix, prefix)); 3811if (a.Name.NamespaceName.Length != 0 && 5071if (baseUri != null && baseUri.Length != 0) { 5084XAttribute a = new XAttribute(XNamespace.Get(r.Prefix.Length == 0 ? string.Empty : r.NamespaceURI).GetName(r.LocalName), r.Value); 5187if (namespaceName.Length == 0) return string.Empty; 5204resolver.AddFirst(a.Name.NamespaceName.Length == 0 ? string.Empty : a.Name.LocalName, XNamespace.Get(a.Value)); 5218resolver.Add(a.Name.NamespaceName.Length == 0 ? string.Empty : a.Name.LocalName, XNamespace.Get(a.Value)); 5245writer.WriteAttributeString(GetPrefixOfNamespace(ns, false), localName, namespaceName.Length == 0 && localName == "xmlns" ? XNamespace.xmlnsPrefixNamespace : namespaceName, a.Value); 5319if (rover != null && rover.ns == ns && (allowDefaultNamespace || rover.prefix.Length > 0)) return rover.prefix; 5334else if (d.prefix.Length > 0) { 5718if (baseUri != null && baseUri.Length != 0) { 6599if (namespaceName.Length == 0) { 7134if (namespaceName.Length == 0) return string.Empty; 7145if (value.Length == 0) { 7173else if (namespaceName.Length == 0 && name.LocalName == "xmlns") { 7419writer.WriteAttributeString(GetPrefixOfNamespace(ns, false), localName, namespaceName.Length == 0 && localName == "xmlns" ? XNamespace.xmlnsPrefixNamespace : namespaceName, a.Value); 7428if (namespaceName.Length == 0) return string.Empty; 7440resolver.Add(a.Name.NamespaceName.Length == 0 ? string.Empty : a.Name.LocalName, XNamespace.Get(a.Value)); 7992attrName = XNamespace.Get(prefix.Length == 0 ? string.Empty : namespaceName).GetName(localName); 8242if (prefix.Length == 0) { 8264if (namespaceName.Length == 0 && a.Name.LocalName == "xmlns") { 8464if (namespaceName != null && namespaceName.Length == 0) { 8522XNamespace ns = prefix.Length == 0 ? e.GetDefaultNamespace() : e.GetNamespaceOfPrefix(prefix); 8567if (namespaceName != null && namespaceName.Length == 0) { 8980if (qualifiedName != null && qualifiedName.Length != 0) { 8982if (i != 0 && i != qualifiedName.Length - 1) { 8990localName = qualifiedName.Substring(i + 1, qualifiedName.Length - i - 1); 9027if (s.Length > 0) { 9044if (s.Length > 0) {
System\Xml\Linq\XNodeNavigator.cs (6)
104if (s.Length != 0 && (c.parent != null || c is XElement)) { 130if (parent != null && a.Name.NamespaceName.Length == 0) { 145if (prefix.Length == 0) { 349if (s.Length != 0) { 396if (s.Length != 0 && (c.parent != null || c is XElement)) { 445if (localName != null && localName.Length == 0) {
System\Xml\Linq\XNodeValidator.cs (2)
283if (s.Length > 0) { 294if (s != null && s.Length > 0) {
UIAutomationClient (6)
MS\Internal\Automation\CacheHelper.cs (1)
111if (index != response.TreeStructure.Length)
MS\Internal\Automation\ProxyManager.cs (1)
739if( pi.ClassName != null && pi.ClassName.Length > 0 && pi.ClassName[ 0 ] == '#' )
MS\Internal\Automation\WindowShowOrOpenTracker.cs (1)
86if (String.Compare(str, 0, _wcpClassName, 0, _wcpClassName.Length, StringComparison.OrdinalIgnoreCase) == 0)
System\Windows\Automation\Automation.cs (2)
124return full.Substring(0, full.Length - 8); // Slice away "Property" suffix 138return full.Substring(0, full.Length - 26); // Slice away "InvokePatternIdentifiers.Pattern" to get just "Invoke"
System\Windows\Automation\Text\TextRange.cs (1)
232Misc.ValidateArgument(text.Length != 0, SRID.TextMustNotBeNullOrEmpty);
UIAutomationClientsideProviders (29)
MS\Internal\AutomationProxies\Misc.cs (1)
57if (iPosShortCut < 0 || iPosShortCut + 1 >= s.Length)
MS\Internal\AutomationProxies\ProxySimple.cs (1)
264return _sAutomationId.Length > 0 ? _sAutomationId : null;
MS\Internal\AutomationProxies\WindowsEditBox.cs (2)
331if (result != -1 && result < str.Length) 927return Misc.GetTextExtentPoint32(hdc, text, text.Length, out size);
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (10)
141End = Math.Min(Math.Max(End, Start + 1), text.Length); 175End = Math.Min(Math.Max(End, Start + 1), text.Length); 218if (text.Length == 0) 239return i >= 0 ? new WindowsEditBoxRange(_provider, Start + i, Start + i + text.Length) : null; 571return index <= 0 || index >= text.Length || (text[index - 1]=='\n') && (text[index]!='\n'); 585if (index <= 0 || index >= text.Length) 876for (moved = 0; moved < count && index < text.Length; moved++) 917for (moved = 0; moved < count && index < text.Length; moved++) 1030((lineMax > 1 && _provider.LineIndex(1) == _lineSeparator.Length) 1045index = _provider.LineIndex(line + actualCount) - _lineSeparator.Length;
MS\Internal\AutomationProxies\WindowsListViewItemCheckBox.cs (1)
118return name.Length < Misc.MaxLengthNameProperty ? name : name.Substring(0, Misc.MaxLengthNameProperty);
MS\Internal\AutomationProxies\WindowsListViewSubItem.cs (1)
208return name.Length < Misc.MaxLengthNameProperty ? name : name.Substring(0, Misc.MaxLengthNameProperty);
MS\Internal\AutomationProxies\WindowsMenu.cs (10)
1382if (pos > 0 && pos + keywordsAccelerators[i].Length == menuText.Length && (menuText[pos - 1] == '\a' || menuText[pos - 1] == '\t')) 1570if (iPosShortCut < 0 || iPosShortCut + 1 >= s.Length) 2455int cMenuChars = menuText.Length; 2460int cKeyChars = sKeyword.Length; 2487int cChars = menuText.Length; 2716System.Diagnostics.Debug.Assert (name.Length > hotKeyStart + 1, "Unexpected end of string"); 2796if (pos > 0 && pos + keywordsAccelerators[i].Length == menuText.Length && (menuText[pos - 1] == '\a' || menuText[pos - 1] == '\t')) 2942return _sAutomationId.Length > 0 ? _sAutomationId : null;
MS\Internal\AutomationProxies\WindowsRichEdit.cs (1)
206if (result < str.Length)
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (2)
144if (text.Length == 0) 267Debug.Assert(text == null || text.Length == maxLength);
WindowsBase (108)
Base\MS\Internal\AvTrace.cs (1)
422int lengthMinus1 = s.Length - 1;
Base\MS\Internal\ContentType.cs (9)
96if (IsLinearWhiteSpaceChar(contentType[0]) || IsLinearWhiteSpaceChar(contentType[contentType.Length - 1])) 399Debug.Assert(!IsLinearWhiteSpaceChar(contentType[0]) && !IsLinearWhiteSpaceChar(contentType[contentType.Length - 1])); 456if (parameterAndValue.Length == 1) 468if (equalSignIndex <= 0 || equalSignIndex == (parameterAndValue.Length - 1)) 519length = s.Length; 559for (int i = 0; i < token.Length; i++) 585if (parameterValue.Length >= 2 && 588ValidateQuotedText(parameterValue.Substring(1, parameterValue.Length-2)); 603for (int i = 0; i < quotedText.Length; i++)
Base\MS\Internal\IO\Packaging\CompoundFile\CompoundFileStorageReference.cs (1)
138if (fullName == null || fullName.Length == 0)
Base\MS\Internal\IO\Packaging\CompoundFile\CompoundFileStreamReference.cs (3)
77if ((storageName == null) || (storageName.Length == 0)) 82StringBuilder sb = new StringBuilder(storageName, storageName.Length + 1 + streamName.Length);
Base\MS\Internal\IO\Packaging\CompoundFile\ContainerUtilities.cs (7)
143strByteLen = outputString.Length * 2; 236if (inString.Length != (bytesRead / 2)) 363if ((null == backSlashPath) || (0 == backSlashPath.Length)) 368Char.IsWhiteSpace(backSlashPath[backSlashPath.Length - 1])) 380if (0 == arrayElement.Length) 441if (result.Length > 0) 478if (testString.Length == 0)
Base\MS\Internal\IO\Packaging\CompoundFile\RightsManagementEncryptionTransform.cs (3)
1106StringBuilder userName = new StringBuilder(9 /* for Windows: or Passport: */ + user.Name.Length); 1144if (colonIndex < 1 || colonIndex >= typePrefixedUserName.Length - 1) 1422private static readonly int LicenseStreamNamePrefixLength = LicenseStreamNamePrefix.Length;
Base\MS\Internal\IO\Packaging\CustomSignedXml.cs (2)
131if ((reference.Uri.Length > 0) && (reference.Uri[0] == '#')) 190while ((temp != null) && (temp.NamespaceURI.Length == 0))
Base\MS\Internal\IO\Packaging\PartBasedPackageProperties.cs (1)
707|| String.CompareOrdinal(name, typeValue.Substring(index + 1, typeValue.Length - index - 1)) != 0)
Base\MS\Internal\IO\Packaging\PieceNameHelper.cs (3)
329if (parseResults.PrefixName.Length == 0) 356int position = path.Length; 381int queryPosition = query.Length;
Base\MS\Internal\IO\Packaging\StorageBasedPackageProperties.cs (1)
584int nLen = ansiString.Length;
Base\MS\Internal\IO\Packaging\XmlDigitalSignatureProcessor.cs (1)
500if ((transformName.Length == 0)
Base\MS\Internal\IO\Packaging\XmlSignatureManifest.cs (9)
181if (hashAlgorithm == null || hashAlgorithm.Length == 0) 356if ((transformName != null) && (transformName.Length > 0)) 440if (id != null && id.Length > 0) 454if (type != null && type.Length > 0) 608if ((query.Length > _contentTypeQueryStringPrefix.Length) && (query.StartsWith(_contentTypeQueryStringPrefix, StringComparison.Ordinal))) 611contentType = new ContentType(query.Substring(_contentTypeQueryStringPrefix.Length)); 627if (contentType.ToString().Length <= 0) 721transformName.Length == 0 ||
Base\MS\Internal\IO\Zip\ZipIOBlockManager.cs (2)
538if (zipFileName.Length > ZipIOBlockManager.MaxFileNameSize) 545if (zipFileName.Length < 1)//it must be at least one character
Base\MS\Internal\IO\Zip\ZipIOCentralDirectoryBlock.cs (1)
464fileHeader.FileName.Length;
Base\MS\Internal\IO\Zip\ZipIOCentralDirectoryFileHeader.cs (1)
395_fileNameLength = (UInt16)fileBlock.FileName.Length; // this is safe cast as file name is always validate for size
Base\MS\Internal\Security\RightsManagement\ClientSession.cs (1)
564if (clientLicensorCertificate.Length == 0)
Base\System\IO\Packaging\CompoundFile\FormatVersion.cs (1)
88if (featureId.Length == 0)
Base\System\IO\Packaging\CompoundFile\StreamInfo.cs (1)
470if( 0 == dataSpace.Length )
Base\System\IO\Packaging\Package.cs (6)
1182&& normalizedPartName.Length > precedingPartName.Length 1183&& normalizedPartName[precedingPartName.Length] == PackUriHelper.ForwardSlashChar) || 1186&& followingPartName.Length > normalizedPartName.Length 1187&& followingPartName[normalizedPartName.Length] == PackUriHelper.ForwardSlashChar))
Base\System\IO\Packaging\PackUriHelper.cs (26)
126if (packageUri.Fragment.Length != 0) 459Debug.Assert((partName.Length - file.Length) > 0, 463partName = partName.Substring(0, partName.Length - file.Length); 517Debug.Assert((path.Length - partNameWithoutExtension.Length - _relationshipPartExtensionName.Length - 1) > 0, 521path = path.Substring(0, path.Length - partNameWithoutExtension.Length - _relationshipPartExtensionName.Length - 1); 523Debug.Assert((path.Length - _relationshipPartSegmentName.Length) > 0, 526path = path.Substring(0, path.Length - _relationshipPartSegmentName.Length); // Removing rels segment 630Debug.Assert(partUriString != null && partUriString.Length == 0); 635Debug.Assert(partUriString != null && partUriString.Length > 0); 869if (partName.Length > 0) 871if (partName[partName.Length - 1] == '/') 892if (partName.Length > 1) 957if (partName.Length == 0 || ((partName.Length == 1) && (partName[0] == '/'))) 1124if (_partUriExtension.Length > 0) 1191Debug.Assert(partUriString != null && partUriString.Length > 0); 1247(segments[segments.Length - 1].Length > _relationshipPartExtensionName.Length))
Base\System\IO\Packaging\ZipPackage.cs (4)
479Debug.Assert(opcName != null && opcName.Length > 0); 958|| extension.Length == 0 1210if (zipFileInfo.Name.Length == ContentTypeFileName.Length)
Base\System\Security\RightsManagement\User.cs (1)
62if (name.Trim().Length == 0)
Base\System\Windows\DependencyProperty.cs (1)
249if (name.Length == 0)
Base\System\Windows\Input\KeyConverter.cs (2)
137if (strKey != null && (strKey.Length != 0 || strKey == String.Empty)) 154if (keyToken.Length == 1 && Char.IsLetterOrDigit(keyToken[0]))
Base\System\Windows\Input\ModifierKeysConverter.cs (4)
127if (strModifiers.Length > 0) 135if (strModifiers.Length > 0) 143if (strModifiers.Length > 0) 158if (modifiersToken.Length != 0)
Base\System\Windows\Markup\RuntimeIdentifierPropertyAttribute.cs (1)
113for (int i = 0; i < name.Length; i++)
Base\System\Windows\Markup\TypeConverterHelper.cs (1)
94"Get" + methodInfo.Name.Substring("Set".Length),
Base\System\Windows\Markup\XmlCompatibilityReader.cs (1)
971int length = pair.Length;
Shared\MS\Internal\Invariant.cs (1)
333enabled = dbgManagedDebuggerValue != null && dbgManagedDebuggerValue.Length > 0;
Shared\MS\Internal\IO\Packaging\PackagingUtilities.cs (1)
77if (encoding != null && encoding.Length > 0)
Shared\MS\Internal\ResourceIDHelper.cs (1)
72resourceID = sourcePath.Substring(basePath.Length);
Shared\MS\Internal\TextServicesLoader.cs (3)
246if (subKeyName.Length != CLSIDLength) 274if (subKeyName.Length != LANGIDLength) 287if (subKeyName.Length != CLSIDLength)
Shared\MS\Internal\TokenizerHelper.cs (2)
95_strLen = str == null ? 0 : str.Length; 348if ((numberFormat.NumberDecimalSeparator.Length > 0) && (numericSeparator == numberFormat.NumberDecimalSeparator[0]))
Shared\MS\Utility\TraceProvider.cs (2)
285dataDescriptor->Size = (uint)((sRet.Length + 1) * 2); 412dataDescriptor->Size = (uint)((sRet.Length + 1) * 2);
Shared\MS\Win32\HwndWrapper.cs (2)
113if(null != AppDomain.CurrentDomain.FriendlyName && 128 <= AppDomain.CurrentDomain.FriendlyName.Length) 119if(null != Thread.CurrentThread.Name && 64 <= Thread.CurrentThread.Name.Length)
Shared\MS\Win32\NativeMethodsCLR.cs (1)
6277int count = Math.Min(s.Length, buffer.Length - offset);
WsatConfig (12)
CommandLine\OptionUsage.cs (9)
270while (index < text.Length) 289while (index < text.Length) 370while ((index < text.Length) && char.IsWhiteSpace(text[index])) 386index += Environment.NewLine.Length; 433for (int end = index; end < text.Length; end++) 438return text.Length - index; 444if ((index + Environment.NewLine.Length) > text.Length) 449for (int i = 0; i < Environment.NewLine.Length; i++)
Configuration\CertificateManager.cs (2)
136if (string.IsNullOrEmpty(constraint) || constraint.Length < 3) 149subjectName = constraint.Substring(separatorIndex + 1, constraint.Length - separatorIndex - 1);
Configuration\ClusterRegistryConfigurationProvider.cs (1)
246len += s.Length;
WsatUI (2)
Configuration\ClusterRegistryConfigurationProvider.cs (1)
246len += s.Length;
Configuration\ETWWsatTraceSession.cs (1)
184if (logFileName.Length >= SafeNativeMethods.MaxTraceFileNameLen)
XamlBuildTask (9)
Microsoft\Build\Tasks\Xaml\XamlBuildTaskServices.cs (9)
337nsIndex = ClrNamespaceUriNamespacePart.Length; 346int start = ClrNamespaceUriNamespacePart.Length; 348if (equalsIndex - semicolonIndex == ClrNamespaceUriAssemblyPart.Length) 350for (int i = 0; i < ClrNamespaceUriAssemblyPart.Length; i++) 361assemblyIndex = assemblyStart + ClrNamespaceUriAssemblyPart.Length; 489assemblyIndex - XamlBuildTaskServices.ClrNamespaceUriAssemblyPart.Length - nsIndex - 1).TrimEnd(' ', ';'); 514if (clrNs.Length > rootNamespace.Length) 516clrNs = clrNs.Substring(rootNamespace.Length + 1);