Code:
/ 4.0 / 4.0 / 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.
/****************************************************************************\
*
* 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
- SerialErrors.cs
- FormsAuthenticationCredentials.cs
- Select.cs
- CollectionViewGroup.cs
- TextDecorationUnitValidation.cs
- EntityDataSourceQueryBuilder.cs
- PointAnimationUsingKeyFrames.cs
- AlgoModule.cs
- QueryGeneratorBase.cs
- Win32Native.cs
- SqlConnectionPoolProviderInfo.cs
- DynamicResourceExtension.cs
- FixedSOMTableCell.cs
- MiniLockedBorderGlyph.cs
- SafeMILHandle.cs
- PinnedBufferMemoryStream.cs
- ContainerTracking.cs
- Bezier.cs
- ListViewInsertionMark.cs
- FixedPageAutomationPeer.cs
- SqlRecordBuffer.cs
- AdornerHitTestResult.cs
- PtsContext.cs
- FontEmbeddingManager.cs
- DependencyObjectProvider.cs
- _ContextAwareResult.cs
- ObjectNavigationPropertyMapping.cs
- DataGridTextBoxColumn.cs
- COAUTHINFO.cs
- ImageKeyConverter.cs
- LocationUpdates.cs
- SqlDuplicator.cs
- ServerProtocol.cs
- DataSourceXmlTextReader.cs
- PreviewPrintController.cs
- Variable.cs
- Main.cs
- NumericExpr.cs
- SortableBindingList.cs
- HtmlInputReset.cs
- XamlPathDataSerializer.cs
- ToolStripButton.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- RIPEMD160.cs
- XmlDictionaryReader.cs
- UIntPtr.cs
- TransactionFlowOption.cs
- ResourceProviderFactory.cs
- TrustLevel.cs
- InfiniteIntConverter.cs
- WindowsFormsSynchronizationContext.cs
- DataGridViewSelectedRowCollection.cs
- SQLBoolean.cs
- VirtualizingStackPanel.cs
- KeyValueConfigurationElement.cs
- SchemaObjectWriter.cs
- GenericUriParser.cs
- EncodingTable.cs
- RayHitTestParameters.cs
- TraceEventCache.cs
- SelectedPathEditor.cs
- XPathExpr.cs
- BitmapData.cs
- precedingquery.cs
- LongMinMaxAggregationOperator.cs
- XPathQilFactory.cs
- Expression.cs
- ObjectFullSpanRewriter.cs
- WebPartUtil.cs
- SiteMapNodeItem.cs
- Vector3DCollection.cs
- BaseInfoTable.cs
- MissingManifestResourceException.cs
- UidManager.cs
- HtmlAnchor.cs
- XmlException.cs
- MessageQueuePermissionAttribute.cs
- ConfigurationStrings.cs
- DispatcherHooks.cs
- MdiWindowListStrip.cs
- SiteIdentityPermission.cs
- FlowDocumentFormatter.cs
- DefaultMemberAttribute.cs
- AspCompat.cs
- ObjectDataSourceFilteringEventArgs.cs
- BoolLiteral.cs
- TemplateControlBuildProvider.cs
- FactoryGenerator.cs
- datacache.cs
- DateTimeUtil.cs
- NativeCompoundFileAPIs.cs
- MergeFailedEvent.cs
- AudioFileOut.cs
- WSSecurityOneDotZeroSendSecurityHeader.cs
- XmlSerializerSection.cs
- EditCommandColumn.cs
- X509PeerCertificateAuthentication.cs
- HyperLinkColumn.cs
- SchemaInfo.cs
- RelAssertionDirectKeyIdentifierClause.cs