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
- RenderData.cs
- WebPartDeleteVerb.cs
- StylusButtonCollection.cs
- StorageSetMapping.cs
- DocumentReferenceCollection.cs
- ComboBox.cs
- AccessDataSourceView.cs
- ParameterElement.cs
- TemplatePropertyEntry.cs
- MemberExpression.cs
- X509WindowsSecurityToken.cs
- FormatException.cs
- ServicePointManagerElement.cs
- Margins.cs
- TypeConverterHelper.cs
- DesignTimeParseData.cs
- TypedReference.cs
- BindingValueChangedEventArgs.cs
- BindingMAnagerBase.cs
- WizardPanel.cs
- TargetConverter.cs
- GeneralTransform3DGroup.cs
- Timer.cs
- ObjectQuery.cs
- DataGridColumnFloatingHeader.cs
- PartialCachingControl.cs
- ListContractAdapter.cs
- XmlDataProvider.cs
- ValueTypeFixupInfo.cs
- HttpAsyncResult.cs
- EntitySqlException.cs
- SqlPersonalizationProvider.cs
- KeyInstance.cs
- CompiledQueryCacheKey.cs
- nulltextcontainer.cs
- TemplateBamlTreeBuilder.cs
- SamlConstants.cs
- DiagnosticTrace.cs
- RowCache.cs
- BackgroundFormatInfo.cs
- ActivationWorker.cs
- PropertyPathWorker.cs
- ProfileProvider.cs
- Vector3DKeyFrameCollection.cs
- CollectionCodeDomSerializer.cs
- ParserContext.cs
- LinkDescriptor.cs
- WebPartTransformer.cs
- InputLanguageManager.cs
- ClientApiGenerator.cs
- DbRetry.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- formatter.cs
- DropShadowBitmapEffect.cs
- BuildResult.cs
- WebPartDisplayMode.cs
- AssemblyBuilderData.cs
- Figure.cs
- ECDiffieHellmanPublicKey.cs
- CatalogPartCollection.cs
- WebPartConnectionsConnectVerb.cs
- MemberListBinding.cs
- TextEditorSpelling.cs
- ContractMethodParameterInfo.cs
- DbModificationClause.cs
- TablePattern.cs
- FixedDocument.cs
- SafeCoTaskMem.cs
- Tuple.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- RunInstallerAttribute.cs
- Switch.cs
- RandomNumberGenerator.cs
- ConsoleCancelEventArgs.cs
- TransformGroup.cs
- DurableInstanceContextProvider.cs
- InvokeMethodActivity.cs
- Message.cs
- PropertyConverter.cs
- ErrorFormatterPage.cs
- QilXmlWriter.cs
- OperationAbortedException.cs
- CodePageUtils.cs
- RuntimeHandles.cs
- EventListener.cs
- SchemaTypeEmitter.cs
- DBBindings.cs
- EmptyTextWriter.cs
- Transform3D.cs
- TextTreeUndo.cs
- ADMembershipProvider.cs
- BinaryFormatter.cs
- DbTransaction.cs
- PerformanceCountersElement.cs
- FrameworkElementFactory.cs
- IisTraceListener.cs
- DrawingGroupDrawingContext.cs
- DrawingContextDrawingContextWalker.cs
- PersianCalendar.cs
- RecoverInstanceLocksCommand.cs