Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Data / System / Data / Range.cs / 1 / Range.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //[....] //----------------------------------------------------------------------------- namespace System.Data { using System; internal struct Range { private int min; private int max; private bool isNotNull; // zero bit pattern represents null public Range(int min, int max) { if (min > max) { throw ExceptionBuilder.RangeArgument(min, max); } this.min = min; this.max = max; isNotNull = true; } public int Count { get { if (IsNull) return 0; return max - min + 1; } } public bool IsNull { get { return !isNotNull; } } public int Max { get { CheckNull(); return max; } } public int Min { get { CheckNull(); return min; } } internal void CheckNull() { if (this.IsNull) { throw ExceptionBuilder.NullRange(); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //[....] //----------------------------------------------------------------------------- namespace System.Data { using System; internal struct Range { private int min; private int max; private bool isNotNull; // zero bit pattern represents null public Range(int min, int max) { if (min > max) { throw ExceptionBuilder.RangeArgument(min, max); } this.min = min; this.max = max; isNotNull = true; } public int Count { get { if (IsNull) return 0; return max - min + 1; } } public bool IsNull { get { return !isNotNull; } } public int Max { get { CheckNull(); return max; } } public int Min { get { CheckNull(); return min; } } internal void CheckNull() { if (this.IsNull) { throw ExceptionBuilder.NullRange(); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AssemblyEvidenceFactory.cs
- SizeFConverter.cs
- DataControlButton.cs
- IdentityNotMappedException.cs
- HttpContextServiceHost.cs
- MergeFilterQuery.cs
- TextBox.cs
- PresentationTraceSources.cs
- ReflectionTypeLoadException.cs
- DataControlFieldCollection.cs
- ParameterBuilder.cs
- FixedPageStructure.cs
- ResXResourceSet.cs
- CodeGen.cs
- Attributes.cs
- UnsafeNativeMethods.cs
- ChannelTracker.cs
- TraceContextEventArgs.cs
- NextPreviousPagerField.cs
- ForEachAction.cs
- RadioButtonStandardAdapter.cs
- BamlLocalizationDictionary.cs
- XmlFormatExtensionPrefixAttribute.cs
- NetworkInformationPermission.cs
- RtfControls.cs
- unsafenativemethodsother.cs
- RawKeyboardInputReport.cs
- DataObject.cs
- QueryExecutionOption.cs
- Convert.cs
- TypefaceMap.cs
- IPAddress.cs
- MenuBindingsEditor.cs
- WindowsIPAddress.cs
- CompareValidator.cs
- PointLightBase.cs
- OleDbPermission.cs
- TabRenderer.cs
- AssemblySettingAttributes.cs
- VectorAnimationUsingKeyFrames.cs
- DialogResultConverter.cs
- CompiledQueryCacheKey.cs
- DropDownButton.cs
- SerializationTrace.cs
- IISMapPath.cs
- GeneralTransform3DCollection.cs
- UIAgentMonitorHandle.cs
- AspCompat.cs
- XhtmlTextWriter.cs
- RowVisual.cs
- TableLayoutColumnStyleCollection.cs
- translator.cs
- Dump.cs
- Size3DValueSerializer.cs
- SuppressMessageAttribute.cs
- ASCIIEncoding.cs
- DefaultEventAttribute.cs
- SecuritySessionSecurityTokenProvider.cs
- KeyInfo.cs
- ListViewSortEventArgs.cs
- Transform3DGroup.cs
- DocumentPaginator.cs
- CellNormalizer.cs
- ListBox.cs
- TableLayoutCellPaintEventArgs.cs
- HttpVersion.cs
- OdbcConnectionFactory.cs
- SafePipeHandle.cs
- RegistryPermission.cs
- EntitySqlQueryState.cs
- Nodes.cs
- XamlStackWriter.cs
- SerializationException.cs
- ProbeRequestResponseAsyncResult.cs
- DefaultEventAttribute.cs
- DataGridViewSelectedColumnCollection.cs
- StreamWithDictionary.cs
- AppliedDeviceFiltersDialog.cs
- WeakEventManager.cs
- _CacheStreams.cs
- TextContainerChangeEventArgs.cs
- SystemWebSectionGroup.cs
- ColumnMap.cs
- GetWinFXPath.cs
- sqlser.cs
- AsyncMethodInvoker.cs
- CompilationUtil.cs
- XmlReflectionImporter.cs
- DeclaredTypeElementCollection.cs
- BufferedGraphicsManager.cs
- SqlMethodAttribute.cs
- UnsafeNativeMethodsCLR.cs
- DisplayNameAttribute.cs
- DeleteStoreRequest.cs
- SByte.cs
- Matrix.cs
- SharedPersonalizationStateInfo.cs
- FixedTextSelectionProcessor.cs
- CodeMemberField.cs
- BezierSegment.cs