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
- HttpHandlerAction.cs
- SudsWriter.cs
- TableProvider.cs
- TemplateComponentConnector.cs
- UIElementCollection.cs
- RegexMatchCollection.cs
- InProcStateClientManager.cs
- APCustomTypeDescriptor.cs
- EntityFunctions.cs
- ChangeConflicts.cs
- TableCell.cs
- TypeUtil.cs
- ControlBuilder.cs
- _BasicClient.cs
- BindingWorker.cs
- validationstate.cs
- DispatcherExceptionEventArgs.cs
- SupportsEventValidationAttribute.cs
- DataStreamFromComStream.cs
- RC2.cs
- DescriptionAttribute.cs
- ImpersonationContext.cs
- BCLDebug.cs
- HandoffBehavior.cs
- ContextMenuService.cs
- SchemaTableOptionalColumn.cs
- Parser.cs
- MessageBox.cs
- SqlConnectionStringBuilder.cs
- CharacterBufferReference.cs
- ExpressionReplacer.cs
- AesCryptoServiceProvider.cs
- ToolboxComponentsCreatingEventArgs.cs
- InheritanceUI.cs
- XmlLinkedNode.cs
- XmlQueryType.cs
- ToolboxComponentsCreatingEventArgs.cs
- BooleanKeyFrameCollection.cs
- FileReservationCollection.cs
- EntityClassGenerator.cs
- ISAPIWorkerRequest.cs
- WebServiceParameterData.cs
- ImageAnimator.cs
- GiveFeedbackEvent.cs
- CodeTypeMember.cs
- ScriptingRoleServiceSection.cs
- XpsImage.cs
- VerifyHashRequest.cs
- EditorZone.cs
- OutputCacheEntry.cs
- BmpBitmapEncoder.cs
- XmlILAnnotation.cs
- HostedHttpTransportManager.cs
- DependencyPropertyChangedEventArgs.cs
- StructuredCompositeActivityDesigner.cs
- QilNode.cs
- LayeredChannelFactory.cs
- ErrorFormatter.cs
- ConstNode.cs
- ScriptComponentDescriptor.cs
- DummyDataSource.cs
- Helper.cs
- _IPv6Address.cs
- PasswordBoxAutomationPeer.cs
- ProxyGenerationError.cs
- BindingOperations.cs
- Evidence.cs
- ScaleTransform.cs
- SqlCacheDependencySection.cs
- wpf-etw.cs
- XPathDocument.cs
- SmtpAuthenticationManager.cs
- CacheMemory.cs
- InvalidBodyAccessException.cs
- safesecurityhelperavalon.cs
- VisualStateGroup.cs
- SecurityDocument.cs
- SynchronizingStream.cs
- EpmContentDeSerializerBase.cs
- WindowsGraphicsWrapper.cs
- TextEffect.cs
- UserNameSecurityTokenProvider.cs
- Normalization.cs
- MetadataItem_Static.cs
- MdiWindowListItemConverter.cs
- XmlnsCompatibleWithAttribute.cs
- SortedSet.cs
- ToolStripPanelCell.cs
- BulletChrome.cs
- LabelLiteral.cs
- DataGridViewColumnConverter.cs
- PrintingPermission.cs
- WebServiceClientProxyGenerator.cs
- LiteralControl.cs
- IconBitmapDecoder.cs
- VectorAnimationUsingKeyFrames.cs
- BookmarkTable.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- HttpDictionary.cs
- PrinterSettings.cs