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
- DataGridItem.cs
- HtmlWindow.cs
- SessionStateItemCollection.cs
- EntitySqlQueryState.cs
- MdiWindowListItemConverter.cs
- ProbeMatchesApril2005.cs
- __Filters.cs
- DiscoveryClientChannelBase.cs
- ProgressBarRenderer.cs
- Soap12FormatExtensions.cs
- TextBoxBase.cs
- InstrumentationTracker.cs
- StateBag.cs
- AppDomainShutdownMonitor.cs
- ParallelTimeline.cs
- InkPresenter.cs
- AsymmetricSignatureDeformatter.cs
- _NTAuthentication.cs
- DataRowView.cs
- X509CertificateInitiatorClientCredential.cs
- storepermissionattribute.cs
- safesecurityhelperavalon.cs
- NavigationExpr.cs
- CryptographicAttribute.cs
- XmlHierarchicalDataSourceView.cs
- MetadataSerializer.cs
- DownloadProgressEventArgs.cs
- CloseCollectionAsyncResult.cs
- TextDecoration.cs
- ResolveNameEventArgs.cs
- SafeLibraryHandle.cs
- StoreConnection.cs
- StrongNameHelpers.cs
- DataStorage.cs
- StringSorter.cs
- DataSourceHelper.cs
- documentsequencetextview.cs
- UniqueConstraint.cs
- HighContrastHelper.cs
- CodeThrowExceptionStatement.cs
- PropertyCondition.cs
- Size3D.cs
- Select.cs
- HwndSubclass.cs
- DataBindingExpressionBuilder.cs
- ReliableSessionBindingElement.cs
- CommandEventArgs.cs
- DataTableNewRowEvent.cs
- ConfigurationErrorsException.cs
- SqlBulkCopyColumnMappingCollection.cs
- MemberDomainMap.cs
- SqlExpressionNullability.cs
- Mappings.cs
- RecognitionEventArgs.cs
- HwndSourceKeyboardInputSite.cs
- DocumentXmlWriter.cs
- CultureInfoConverter.cs
- ActivityTrace.cs
- EnumerableRowCollectionExtensions.cs
- TemplatedMailWebEventProvider.cs
- XsdBuilder.cs
- OrderablePartitioner.cs
- ScrollContentPresenter.cs
- OperatorExpressions.cs
- FontStyles.cs
- CollectionViewGroupRoot.cs
- CertificateManager.cs
- SqlAliaser.cs
- Interlocked.cs
- ErrorWebPart.cs
- PrintPageEvent.cs
- TransformGroup.cs
- RangeContentEnumerator.cs
- PageContent.cs
- FixUp.cs
- CLSCompliantAttribute.cs
- KeyEvent.cs
- DataGridColumnCollection.cs
- oledbconnectionstring.cs
- XmlQueryContext.cs
- Boolean.cs
- SchemaManager.cs
- RemotingAttributes.cs
- DBDataPermissionAttribute.cs
- TimerElapsedEvenArgs.cs
- BindingExpressionUncommonField.cs
- ItemMap.cs
- EmbossBitmapEffect.cs
- OptimizedTemplateContentHelper.cs
- COM2ICategorizePropertiesHandler.cs
- SiteMapProvider.cs
- FileDetails.cs
- AccessText.cs
- RepeatInfo.cs
- GridViewAutomationPeer.cs
- EntityDataReader.cs
- HtmlGenericControl.cs
- ChineseLunisolarCalendar.cs
- Options.cs
- InternalResources.cs