Code:
                         / 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Base / System / Windows / EntryIndex.cs / 1305600 / 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.
                        
                        
                        
                        
                    Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TextEditorCharacters.cs
- XmlStringTable.cs
- TextEditorTyping.cs
- DesignerOptions.cs
- FileLogRecordHeader.cs
- MachineKeyConverter.cs
- ParameterModifier.cs
- Int16.cs
- AccessibleObject.cs
- TagMapCollection.cs
- ConfigurationSettings.cs
- NativeMethods.cs
- SourceElementsCollection.cs
- SEHException.cs
- XmlComplianceUtil.cs
- ZipIOBlockManager.cs
- QueueProcessor.cs
- SortableBindingList.cs
- DataGridViewCellLinkedList.cs
- NativeMethodsOther.cs
- wgx_commands.cs
- OrderedDictionaryStateHelper.cs
- TdsValueSetter.cs
- ApplicationServiceManager.cs
- WebEvents.cs
- ColorDialog.cs
- Size3D.cs
- PassportAuthentication.cs
- BufferBuilder.cs
- StateFinalizationDesigner.cs
- SynthesizerStateChangedEventArgs.cs
- RadioButtonStandardAdapter.cs
- TextDecorationLocationValidation.cs
- DataGridTablesFactory.cs
- DataGridViewCellFormattingEventArgs.cs
- Error.cs
- VoiceObjectToken.cs
- SymmetricAlgorithm.cs
- MainMenu.cs
- ColorMap.cs
- Polygon.cs
- Drawing.cs
- PropertyMapper.cs
- CompositeDesignerAccessibleObject.cs
- ActivatableWorkflowsQueryResult.cs
- Command.cs
- SHA512Managed.cs
- EntityClassGenerator.cs
- XmlSchemaComplexContentRestriction.cs
- EffectiveValueEntry.cs
- BinaryObjectInfo.cs
- ManualResetEventSlim.cs
- ContextInformation.cs
- SecurityHelper.cs
- PrintControllerWithStatusDialog.cs
- DateTimeUtil.cs
- CommandEventArgs.cs
- InteropEnvironment.cs
- DataGridViewCell.cs
- X509SecurityTokenProvider.cs
- DependencyObjectType.cs
- StopStoryboard.cs
- PrintPreviewGraphics.cs
- tooltip.cs
- ApplicationFileCodeDomTreeGenerator.cs
- FileAuthorizationModule.cs
- GroupBoxAutomationPeer.cs
- XmlHierarchicalEnumerable.cs
- DesignTimeType.cs
- AdornerLayer.cs
- GeneratedContractType.cs
- MemberListBinding.cs
- Console.cs
- VideoDrawing.cs
- RemotingHelper.cs
- FormClosingEvent.cs
- CollectionEditorDialog.cs
- XmlTextReader.cs
- File.cs
- DbMetaDataColumnNames.cs
- CodeDefaultValueExpression.cs
- SafeNativeMethods.cs
- StorageModelBuildProvider.cs
- TypeGeneratedEventArgs.cs
- CustomErrorCollection.cs
- TypeBuilderInstantiation.cs
- KeyPressEvent.cs
- EncoderReplacementFallback.cs
- UInt32.cs
- WindowInteropHelper.cs
- ResourcePermissionBase.cs
- CodeRegionDirective.cs
- ColumnMapTranslator.cs
- WindowsTab.cs
- AccessControlList.cs
- LassoHelper.cs
- CollectionDataContractAttribute.cs
- mansign.cs
- TreeView.cs
- RankException.cs