82 references to MaxValue
mscorlib (17)
system\console.cs (6)
1044if (width < srWindow.Right + 1 || width >= Int16.MaxValue) 1046if (height < srWindow.Bottom + 1 || height >= Int16.MaxValue) 1112if (csbi.srWindow.Left >= Int16.MaxValue - width) 1118if (csbi.srWindow.Top >= Int16.MaxValue - height) 1277if (left < 0 || left >= Int16.MaxValue) 1279if (top < 0 || top >= Int16.MaxValue)
system\convert.cs (7)
824if (value > Int16.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Int16")); 840if (value > Int16.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Int16")); 846if (value < Int16.MinValue || value > Int16.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Int16")); 853if (value > Int16.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Int16")); 863if (value < Int16.MinValue || value > Int16.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Int16")); 870if (value > (ulong)Int16.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Int16")); 2020if (r < Int16.MinValue || r > Int16.MaxValue)
system\decimal.cs (1)
864if (temp < Int16.MinValue || temp > Int16.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Int16"));
system\int16.cs (2)
154if (i < MinValue || i > MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Int16")); 185if (i < MinValue || i > MaxValue) {
system\io\pathinternal.cs (1)
29internal const int MaxLongPath = short.MaxValue;
PresentationCore (1)
Core\CSharp\MS\Internal\TextFormatting\ThousandthOfEmRealDoubles.cs (1)
291if (scaled > short.MaxValue || scaled < short.MinValue)
System (1)
net\System\URI.cs (1)
1357if ((object)name == null || name.Length == 0 || name.Length > short.MaxValue) {
System.Activities (4)
System\Activities\Debugger\State.cs (4)
200if ((input.StartLine > Int16.MaxValue) || (input.EndLine > Int16.MaxValue)) 207if ((input.StartColumn > Int16.MaxValue) || (input.EndColumn > Int16.MaxValue))
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (1)
1511var input = new object[] { entry, null != entry.Properties["DisplayName"] ? entry.Properties["DisplayName"].Value : null, (double)short.MaxValue };
System.Configuration (1)
System\Configuration\ClientConfigPaths.cs (1)
30const int MAX_UNICODESTRING_LEN = short.MaxValue;
System.Data (11)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (1)
1511var input = new object[] { entry, null != entry.Properties["DisplayName"] ? entry.Properties["DisplayName"].Value : null, (double)short.MaxValue };
fx\src\data\System\Data\Common\Int16Storage.cs (1)
98Int16 min = Int16.MaxValue;
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\SQLTypes\SQLFileStream.cs (1)
431private const int MaxWin32PathLength = Int16.MaxValue - 1;
fx\src\data\System\Data\SQLTypes\SQLInt16.cs (5)
272if (value > (int)Int16.MaxValue || value < (int)Int16.MinValue) 287if (value > (long)Int16.MaxValue || value < (long)Int16.MinValue) 302if (value < (float)Int16.MinValue || value > (float)Int16.MaxValue) 317if (value < (double)Int16.MinValue || value > (double)Int16.MaxValue) 624public static readonly SqlInt16 MaxValue = new SqlInt16(Int16.MaxValue);
fx\src\data\System\Data\SQLTypes\UnsafeNativeMethods.cs (1)
73Debug.Assert(path.Length < Int16.MaxValue);
System.Data.Entity (3)
System\Data\EntityModel\SchemaObjectModel\SchemaElement.cs (1)
47protected const int MaxValueVersionComponent = short.MaxValue;
System\Data\EntityModel\SchemaObjectModel\TypeUsageBuilder.cs (1)
745ValidateIntegralDefaultValue(scalar, short.MinValue, short.MaxValue);
System\Data\Metadata\Helper.cs (1)
519{ PrimitiveTypeKind.Int16, new long[] { Int16.MinValue, Int16.MaxValue } },
System.Drawing (10)
commonui\System\Drawing\Bitmap.cs (2)
423if(status == 2 /* invalid parameter*/ && (this.Width >= Int16.MaxValue || this.Height >= Int16.MaxValue)) {
misc\GDI\UnsafeNativeMethods.cs (8)
381lpRect.top = Math.Min( Int16.MaxValue, lpRect.top ); 382lpRect.left = Math.Min( Int16.MaxValue, lpRect.left ); 383lpRect.right = Math.Min( Int16.MaxValue, lpRect.right ); 384lpRect.bottom = Math.Min( Int16.MaxValue, lpRect.bottom ); 420lpRect.top = Math.Min(Int16.MaxValue, lpRect.top); 421lpRect.left = Math.Min(Int16.MaxValue, lpRect.left); 422lpRect.right = Math.Min(Int16.MaxValue, lpRect.right); 423lpRect.bottom = Math.Min(Int16.MaxValue, lpRect.bottom);
System.Messaging (1)
System\Messaging\Interop\MessagePropertyVariants.cs (1)
57public const short VT_EMPTY = short.MaxValue; //this is hack, VT_EMPTY is really 0,
System.Runtime.Serialization (2)
System\Runtime\Serialization\XmlReaderDelegator.cs (1)
578if (value < short.MinValue || value > short.MaxValue)
System\Xml\XmlDictionaryReader.cs (1)
1109if (i < Int16.MinValue || i > Int16.MaxValue)
System.ServiceModel (8)
System\ServiceModel\EndpointAddress.cs (8)
529buffer = new XmlBuffer(short.MaxValue); 725buffer = new XmlBuffer(short.MaxValue); 805buffer = new XmlBuffer(short.MaxValue); 819buffer = new XmlBuffer(short.MaxValue); 833buffer = new XmlBuffer(short.MaxValue); 862buffer = new XmlBuffer(short.MaxValue); 930buffer = new XmlBuffer(short.MaxValue); 1338metadataBuffer = new XmlBuffer(short.MaxValue);
System.Windows.Forms (19)
misc\GDI\UnsafeNativeMethods.cs (8)
381lpRect.top = Math.Min( Int16.MaxValue, lpRect.top ); 382lpRect.left = Math.Min( Int16.MaxValue, lpRect.left ); 383lpRect.right = Math.Min( Int16.MaxValue, lpRect.right ); 384lpRect.bottom = Math.Min( Int16.MaxValue, lpRect.bottom ); 420lpRect.top = Math.Min(Int16.MaxValue, lpRect.top); 421lpRect.left = Math.Min(Int16.MaxValue, lpRect.left); 422lpRect.right = Math.Min(Int16.MaxValue, lpRect.right); 423lpRect.bottom = Math.Min(Int16.MaxValue, lpRect.bottom);
winforms\Managed\System\WinForms\ComboBox.cs (2)
936Size textSize = TextRenderer.MeasureText(LayoutUtils.TestString, this.Font, new Size(Int16.MaxValue, (int)(FontHeight * 1.25)), TextFormatFlags.SingleLine); 946Size textSize = TextRenderer.MeasureText(LayoutUtils.TestString, this.Font, new Size(Int16.MaxValue, (int)(FontHeight * 1.25)), TextFormatFlags.SingleLine);
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (2)
57Size textSize = TextRenderer.MeasureText(obj.ToString(), font, new Size(Int16.MaxValue, Int16.MaxValue), TextFormatFlags.SingleLine);
winforms\Managed\System\WinForms\Layout\TableLayout.cs (2)
706if (dontHonorConstraint && (proposedConstraints.Width < Int16.MaxValue)) { 816if (dontHonorConstraint && (proposedConstraints.Height < Int16.MaxValue)) {
winforms\Managed\System\WinForms\NativeMethods.cs (1)
1046MAX_UNICODESTRING_LEN = short.MaxValue, // maximum unicode string length
winforms\Managed\System\WinForms\NativeWindow.cs (2)
759if (cp.Caption != null && cp.Caption.Length > Int16.MaxValue) { 760cp.Caption = cp.Caption.Substring(0, Int16.MaxValue);
winforms\Managed\System\WinForms\TreeView.cs (2)
808if (value >= Int16.MaxValue) { 809throw new ArgumentOutOfRangeException("ItemHeight", SR.GetString(SR.InvalidHighBoundArgument, "ItemHeight", (value).ToString(CultureInfo.CurrentCulture), Int16.MaxValue.ToString(CultureInfo.CurrentCulture)));
System.Xml (3)
System\Xml\Cache\XPathNodeHelper.cs (1)
167Debug.Assert(pageNode[0].PageInfo.PageNumber <= Int16.MaxValue);
System\Xml\Schema\DataTypeImplementation.cs (1)
3076static readonly FacetsChecker numeric10FacetsChecker = new Numeric10FacetsChecker(short.MinValue, short.MaxValue);
System\Xml\Schema\XmlValueConverter.cs (1)
838if (value < (int) Int16.MinValue || value > (int) Int16.MaxValue)