Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Base / System / Windows / EntryIndex.cs / 1 / EntryIndex.cs
/****************************************************************************\ * * File: EffectiveValueEntry.cs * * This file describes an index that refers to an EffectiveValueEntry. * Found is used to indicate whether or not the index is currently populated * with the appropriate DP or not. * * Copyright (C) 2005 by Microsoft Corporation. All rights reserved. * \***************************************************************************/ using MS.Internal.WindowsBase; // FriendAccessAllowed namespace System.Windows { [FriendAccessAllowed] // Built into Base, also used by Core & Framework. internal struct EntryIndex { public EntryIndex(uint index) { // Found is true _store = index | 0x80000000; } public EntryIndex(uint index, bool found) { _store = index & 0x7FFFFFFF; if (found) { _store |= 0x80000000; } } public bool Found { get { return (_store & 0x80000000) != 0; } } public uint Index { get { return _store & 0x7FFFFFFF; } } private uint _store; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. /****************************************************************************\ * * File: EffectiveValueEntry.cs * * This file describes an index that refers to an EffectiveValueEntry. * Found is used to indicate whether or not the index is currently populated * with the appropriate DP or not. * * Copyright (C) 2005 by Microsoft Corporation. All rights reserved. * \***************************************************************************/ using MS.Internal.WindowsBase; // FriendAccessAllowed namespace System.Windows { [FriendAccessAllowed] // Built into Base, also used by Core & Framework. internal struct EntryIndex { public EntryIndex(uint index) { // Found is true _store = index | 0x80000000; } public EntryIndex(uint index, bool found) { _store = index & 0x7FFFFFFF; if (found) { _store |= 0x80000000; } } public bool Found { get { return (_store & 0x80000000) != 0; } } public uint Index { get { return _store & 0x7FFFFFFF; } } private uint _store; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Soap.cs
- ConfigurationElementCollection.cs
- TypeGeneratedEventArgs.cs
- SQLDouble.cs
- ChameleonKey.cs
- MultipleCopiesCollection.cs
- OutOfProcStateClientManager.cs
- RegexMatchCollection.cs
- SqlDataSourceCache.cs
- OdbcConnectionPoolProviderInfo.cs
- AppDomainShutdownMonitor.cs
- TrayIconDesigner.cs
- SizeLimitedCache.cs
- MailBnfHelper.cs
- Tuple.cs
- SiteMapNodeItemEventArgs.cs
- RuleInfoComparer.cs
- TemplateManager.cs
- XmlReflectionImporter.cs
- BoundColumn.cs
- VarInfo.cs
- QueryMatcher.cs
- AssociatedControlConverter.cs
- MenuItemBindingCollection.cs
- LoadRetryHandler.cs
- Attachment.cs
- TextContainerHelper.cs
- EntityClassGenerator.cs
- ClientSettingsStore.cs
- FormsIdentity.cs
- GcSettings.cs
- ConfigXmlDocument.cs
- CoTaskMemHandle.cs
- ColorConverter.cs
- ObjectDataSourceDisposingEventArgs.cs
- Image.cs
- TrustSection.cs
- MenuItemCollectionEditor.cs
- DataTableNameHandler.cs
- AutoCompleteStringCollection.cs
- HMACSHA512.cs
- PersonalizationProvider.cs
- IPAddressCollection.cs
- TypeUtil.cs
- DocumentEventArgs.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- PropertyInformationCollection.cs
- HybridWebProxyFinder.cs
- FixedDocumentSequencePaginator.cs
- ProfileInfo.cs
- FormsAuthenticationTicket.cs
- ExtractCollection.cs
- UrlMappingsModule.cs
- CommandDevice.cs
- ResourceDictionary.cs
- ResXBuildProvider.cs
- TypeDelegator.cs
- GeneralTransform.cs
- DataGridHeaderBorder.cs
- FileDetails.cs
- SimpleBitVector32.cs
- StylusPointProperties.cs
- CroppedBitmap.cs
- ProcessHostConfigUtils.cs
- VirtualDirectoryMapping.cs
- StringDictionary.cs
- DoubleUtil.cs
- ContainerFilterService.cs
- LineInfo.cs
- ActivityExecutionContext.cs
- ClassDataContract.cs
- CompressedStack.cs
- PropertyValueChangedEvent.cs
- SourceChangedEventArgs.cs
- _ConnectStream.cs
- ReferenceAssemblyAttribute.cs
- NumericUpDownAccelerationCollection.cs
- FileDataSourceCache.cs
- SerTrace.cs
- GcHandle.cs
- Part.cs
- ValidationRule.cs
- AmbiguousMatchException.cs
- UserControlAutomationPeer.cs
- FreezableCollection.cs
- Error.cs
- WrappedIUnknown.cs
- Formatter.cs
- PasswordRecovery.cs
- NoResizeSelectionBorderGlyph.cs
- DecimalAnimationUsingKeyFrames.cs
- PrePrepareMethodAttribute.cs
- DebuggerService.cs
- OdbcErrorCollection.cs
- SqlMethodCallConverter.cs
- ExtensionDataObject.cs
- TraceLevelStore.cs
- DesignerForm.cs
- XmlComment.cs
- HttpResponseInternalWrapper.cs