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
- SqlDeflator.cs
- SemanticTag.cs
- PropertyKey.cs
- DataColumn.cs
- SharedHttpTransportManager.cs
- _NestedSingleAsyncResult.cs
- MobileControlBuilder.cs
- QilStrConcat.cs
- ProfileService.cs
- AssociationSet.cs
- WorkflowWebHostingModule.cs
- EventMemberCodeDomSerializer.cs
- RangeValuePattern.cs
- DrawingContextWalker.cs
- CheckBox.cs
- FileDialog.cs
- mactripleDES.cs
- SafeCancelMibChangeNotify.cs
- FormatterServices.cs
- MailDefinition.cs
- DoubleAnimationBase.cs
- XmlChildNodes.cs
- XmlElementAttributes.cs
- QueryPageSettingsEventArgs.cs
- AudienceUriMode.cs
- SerializationAttributes.cs
- FieldToken.cs
- Signature.cs
- DataGridViewRowPrePaintEventArgs.cs
- SerializationStore.cs
- ElasticEase.cs
- DataSourceHelper.cs
- AuthenticateEventArgs.cs
- DbConnectionOptions.cs
- Translator.cs
- MD5CryptoServiceProvider.cs
- ViewBase.cs
- SaveFileDialog.cs
- ImageBrush.cs
- WindowsSlider.cs
- SHA256Managed.cs
- MailAddress.cs
- WebPartsPersonalization.cs
- _ConnectionGroup.cs
- SqlProviderManifest.cs
- EdmMember.cs
- SubMenuStyle.cs
- XmlAttributeAttribute.cs
- SiteMapPathDesigner.cs
- SecurityDescriptor.cs
- FamilyMapCollection.cs
- ResXDataNode.cs
- InvokeDelegate.cs
- NetMsmqBindingCollectionElement.cs
- TypeDescriptor.cs
- QuaternionRotation3D.cs
- EffectiveValueEntry.cs
- SpellerStatusTable.cs
- ReflectEventDescriptor.cs
- ParameterCollection.cs
- SystemWebSectionGroup.cs
- ActiveDesignSurfaceEvent.cs
- StrokeNodeEnumerator.cs
- SchemaReference.cs
- NavigationPropertySingletonExpression.cs
- Byte.cs
- SystemTcpConnection.cs
- TextPointerBase.cs
- SystemResourceHost.cs
- CodeArrayIndexerExpression.cs
- NamespaceEmitter.cs
- UpdateCommand.cs
- ListItemDetailViewAttribute.cs
- Matrix3D.cs
- CodeTypeDelegate.cs
- FileCodeGroup.cs
- ProvidersHelper.cs
- COAUTHINFO.cs
- ToolStripDropDownButton.cs
- DataGridTable.cs
- Soap.cs
- ComNativeDescriptor.cs
- EntityContainerEmitter.cs
- LicenseProviderAttribute.cs
- ChtmlTextWriter.cs
- HttpResponseWrapper.cs
- XmlQueryRuntime.cs
- TableLayoutStyle.cs
- DateTimeOffsetAdapter.cs
- XmlSerializerAssemblyAttribute.cs
- AsyncSerializedWorker.cs
- CombinedGeometry.cs
- ServiceModelConfigurationSection.cs
- SqlLiftWhereClauses.cs
- LinkClickEvent.cs
- MenuItem.cs
- Logging.cs
- TransactionFlowOption.cs
- ClientType.cs
- EventlogProvider.cs