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
- HtmlInputImage.cs
- ObjectStorage.cs
- ServiceDescriptionImporter.cs
- LogicalMethodInfo.cs
- RichTextBox.cs
- PersonalizationStateInfo.cs
- XmlEncoding.cs
- SystemIPAddressInformation.cs
- FileUtil.cs
- SystemTcpConnection.cs
- SqlCachedBuffer.cs
- StringValueSerializer.cs
- ListViewInsertionMark.cs
- CollectionEditor.cs
- Model3DCollection.cs
- TextElement.cs
- XmlSortKeyAccumulator.cs
- ProfilePropertySettings.cs
- FlowDocumentReaderAutomationPeer.cs
- Query.cs
- DoubleLink.cs
- DataControlPagerLinkButton.cs
- FormViewInsertedEventArgs.cs
- UidManager.cs
- DocumentOrderComparer.cs
- ComponentEditorPage.cs
- AssemblyGen.cs
- BreakRecordTable.cs
- HtmlInputHidden.cs
- PrimitiveRenderer.cs
- ValidationErrorEventArgs.cs
- FileDialog.cs
- WebConfigurationHostFileChange.cs
- SessionStateSection.cs
- DataGridColumnFloatingHeader.cs
- Literal.cs
- ServiceBusyException.cs
- SafeCertificateStore.cs
- PerfService.cs
- HttpsTransportElement.cs
- Assign.cs
- InfoCardAsymmetricCrypto.cs
- BufferedReceiveElement.cs
- PaperSource.cs
- xsdvalidator.cs
- MenuAutomationPeer.cs
- Internal.cs
- InlineObject.cs
- BoolLiteral.cs
- CompilerLocalReference.cs
- ObjectToModelValueConverter.cs
- Accessors.cs
- SingleObjectCollection.cs
- Rotation3D.cs
- MetaTable.cs
- AffineTransform3D.cs
- SystemPens.cs
- ExtendedPropertyDescriptor.cs
- XmlILTrace.cs
- WindowsTokenRoleProvider.cs
- HttpHandlerAction.cs
- ProcessModuleCollection.cs
- FacetChecker.cs
- FileChangesMonitor.cs
- BaseDataListComponentEditor.cs
- CompiledIdentityConstraint.cs
- Drawing.cs
- TextLine.cs
- PolicyValidationException.cs
- DbModificationClause.cs
- SmtpFailedRecipientException.cs
- ConfigPathUtility.cs
- Margins.cs
- TextMetrics.cs
- ResourceReferenceKeyNotFoundException.cs
- ControlBuilderAttribute.cs
- ThreadStaticAttribute.cs
- WebPartChrome.cs
- DescendentsWalkerBase.cs
- SessionEndedEventArgs.cs
- ResXBuildProvider.cs
- NetworkInterface.cs
- KeyboardNavigation.cs
- SimpleHandlerFactory.cs
- PartBasedPackageProperties.cs
- EventMappingSettingsCollection.cs
- XamlGridLengthSerializer.cs
- List.cs
- TargetInvocationException.cs
- ProtectedConfiguration.cs
- ErrorWebPart.cs
- DataDocumentXPathNavigator.cs
- UITypeEditors.cs
- CLRBindingWorker.cs
- DbConnectionStringCommon.cs
- DataSourceSerializationException.cs
- SafeFindHandle.cs
- LinqMaximalSubtreeNominator.cs
- ObjectContextServiceProvider.cs
- MemberJoinTreeNode.cs