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