Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Data / System / Data / Range.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SafeTimerHandle.cs
- MembershipValidatePasswordEventArgs.cs
- Int32KeyFrameCollection.cs
- SubstitutionList.cs
- NetworkInformationPermission.cs
- ProcessHostServerConfig.cs
- DurableDispatcherAddressingFault.cs
- InternalControlCollection.cs
- messageonlyhwndwrapper.cs
- UrlParameterReader.cs
- SafeEventLogWriteHandle.cs
- BitArray.cs
- AppSettingsReader.cs
- ClickablePoint.cs
- UnsafeNativeMethods.cs
- UIInitializationException.cs
- MiniParameterInfo.cs
- Assembly.cs
- DocumentOrderComparer.cs
- OrthographicCamera.cs
- TabControl.cs
- storepermissionattribute.cs
- HttpRequestBase.cs
- ValidatingReaderNodeData.cs
- WebSysDisplayNameAttribute.cs
- PrePrepareMethodAttribute.cs
- GridViewSelectEventArgs.cs
- PipelineModuleStepContainer.cs
- BindingExpressionUncommonField.cs
- File.cs
- DropShadowEffect.cs
- DataSourceCache.cs
- ArgumentNullException.cs
- SizeIndependentAnimationStorage.cs
- PointValueSerializer.cs
- XmlLanguage.cs
- XmlEventCache.cs
- Int64Converter.cs
- SmiMetaDataProperty.cs
- StreamWriter.cs
- WebPartZoneBase.cs
- ValueOfAction.cs
- XslNumber.cs
- ListBindingHelper.cs
- ArrayElementGridEntry.cs
- DesignerListAdapter.cs
- ObjectViewEntityCollectionData.cs
- AuthorizationBehavior.cs
- ping.cs
- AssemblySettingAttributes.cs
- MemberDescriptor.cs
- XmlILTrace.cs
- precedingquery.cs
- TextServicesCompartment.cs
- TreeNode.cs
- StateChangeEvent.cs
- ObfuscateAssemblyAttribute.cs
- UserControlBuildProvider.cs
- ScriptResourceHandler.cs
- DocumentGrid.cs
- ObjectTag.cs
- MultiBindingExpression.cs
- WeakReferenceEnumerator.cs
- MenuItemBinding.cs
- TableLayout.cs
- LinqDataSourceHelper.cs
- MainMenu.cs
- ComponentEditorForm.cs
- HierarchicalDataTemplate.cs
- MetadataAssemblyHelper.cs
- XamlBrushSerializer.cs
- CustomAttributeBuilder.cs
- XamlPathDataSerializer.cs
- XmlQueryTypeFactory.cs
- FixedPageProcessor.cs
- CustomAttributeBuilder.cs
- Configuration.cs
- ErrorStyle.cs
- SymmetricKey.cs
- ContentWrapperAttribute.cs
- Message.cs
- DataGridViewCellConverter.cs
- PerformanceCounterManager.cs
- DataListCommandEventArgs.cs
- ComponentChangingEvent.cs
- NativeObjectSecurity.cs
- SchemaElementDecl.cs
- IsolatedStorageException.cs
- FilteredDataSetHelper.cs
- FileDataSourceCache.cs
- DescendantQuery.cs
- FormViewCommandEventArgs.cs
- PeerTransportListenAddressConverter.cs
- FontStyles.cs
- TypeInitializationException.cs
- SizeChangedEventArgs.cs
- RegexEditorDialog.cs
- Compress.cs
- TextViewSelectionProcessor.cs
- FixedSOMPage.cs