Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- TransformValueSerializer.cs
- FixedTextPointer.cs
- Pens.cs
- DropTarget.cs
- ListViewItem.cs
- ParserExtension.cs
- SqlXml.cs
- HttpProxyCredentialType.cs
- TileBrush.cs
- StateMachineWorkflowDesigner.cs
- ElementHost.cs
- FullTextLine.cs
- ObjectAnimationBase.cs
- SqlCacheDependency.cs
- TextEffect.cs
- EditorPartDesigner.cs
- XmlChildEnumerator.cs
- Encoder.cs
- AnnotationStore.cs
- Registration.cs
- UpdateProgress.cs
- UnionExpr.cs
- ListViewGroupConverter.cs
- DiscreteKeyFrames.cs
- NumberFormatInfo.cs
- PerformanceCounterManager.cs
- nulltextcontainer.cs
- DefaultObjectMappingItemCollection.cs
- FragmentNavigationEventArgs.cs
- AutoGeneratedFieldProperties.cs
- PropertySet.cs
- PasswordTextNavigator.cs
- QualificationDataAttribute.cs
- StylusOverProperty.cs
- adornercollection.cs
- OutputCacheProfile.cs
- Figure.cs
- TransactionFlowOption.cs
- RelationshipSet.cs
- DriveNotFoundException.cs
- DataSourceViewSchemaConverter.cs
- _AcceptOverlappedAsyncResult.cs
- ToolStripStatusLabel.cs
- XamlParser.cs
- ResourceCollectionInfo.cs
- XsdValidatingReader.cs
- TextSelectionHelper.cs
- SkewTransform.cs
- ToolStripItem.cs
- DesignerSerializationOptionsAttribute.cs
- ImageDrawing.cs
- GenericPrincipal.cs
- HttpRawResponse.cs
- XmlAnyElementAttributes.cs
- Transform3DGroup.cs
- RemotingSurrogateSelector.cs
- WebEvents.cs
- WebPartCatalogCloseVerb.cs
- CLRBindingWorker.cs
- DesignerWithHeader.cs
- ItemChangedEventArgs.cs
- DetailsViewPagerRow.cs
- ZipIOFileItemStream.cs
- ToggleButtonAutomationPeer.cs
- ColumnMapTranslator.cs
- DefaultBindingPropertyAttribute.cs
- SelectionItemPattern.cs
- Cursors.cs
- PersonalizationEntry.cs
- PropertyGroupDescription.cs
- MachineSettingsSection.cs
- NativeMethods.cs
- EraserBehavior.cs
- RadioButtonStandardAdapter.cs
- MarginsConverter.cs
- InstanceValue.cs
- HandleDictionary.cs
- WindowHideOrCloseTracker.cs
- Baml6Assembly.cs
- HyperLinkStyle.cs
- SynchronizedDispatch.cs
- TemplateKeyConverter.cs
- MetafileEditor.cs
- TextViewBase.cs
- DoubleStorage.cs
- ETagAttribute.cs
- Common.cs
- XmlToDatasetMap.cs
- ArrayConverter.cs
- EventItfInfo.cs
- TabItem.cs
- AudioException.cs
- SpellCheck.cs
- AccessedThroughPropertyAttribute.cs
- SocketException.cs
- HttpResponse.cs
- SqlRowUpdatingEvent.cs
- ResourceContainer.cs
- SqlVersion.cs
- TimerEventSubscription.cs