Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- InternalsVisibleToAttribute.cs
- ReadContentAsBinaryHelper.cs
- SqlTypeSystemProvider.cs
- FocusChangedEventArgs.cs
- ErrorEventArgs.cs
- GlyphRun.cs
- XmlSchemaAny.cs
- ConvertEvent.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- TextEndOfParagraph.cs
- XmlSchemaIdentityConstraint.cs
- WebBrowserNavigatingEventHandler.cs
- PropertyValueChangedEvent.cs
- UserControlCodeDomTreeGenerator.cs
- StrongNameUtility.cs
- InlineCollection.cs
- XmlElementAttributes.cs
- WebPartCollection.cs
- ListComponentEditor.cs
- ProfilePropertyNameValidator.cs
- JapaneseCalendar.cs
- XmlComplianceUtil.cs
- WorkflowMessageEventHandler.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- ObjectSecurity.cs
- Attributes.cs
- ThousandthOfEmRealDoubles.cs
- SystemTcpConnection.cs
- HwndSource.cs
- PropertyEmitterBase.cs
- SplitterEvent.cs
- BufferModeSettings.cs
- HMACSHA512.cs
- RowToParametersTransformer.cs
- storepermissionattribute.cs
- JavaScriptString.cs
- Task.cs
- oledbconnectionstring.cs
- SHA1CryptoServiceProvider.cs
- CriticalHandle.cs
- InputScopeAttribute.cs
- XmlSchemaGroupRef.cs
- unitconverter.cs
- ShutDownListener.cs
- XmlDataSourceNodeDescriptor.cs
- ModelItemCollection.cs
- MILUtilities.cs
- TemplateEditingService.cs
- IntegrationExceptionEventArgs.cs
- NamedObject.cs
- HyperLinkStyle.cs
- SizeChangedInfo.cs
- FixedSOMLineCollection.cs
- SynchronousChannel.cs
- ConfigurationLockCollection.cs
- CollectionBuilder.cs
- ImmutableObjectAttribute.cs
- LinqDataSourceEditData.cs
- SplineKeyFrames.cs
- WebServiceClientProxyGenerator.cs
- ServiceObjectContainer.cs
- ApplicationFileParser.cs
- CryptoKeySecurity.cs
- Nullable.cs
- StandardOleMarshalObject.cs
- TextBlockAutomationPeer.cs
- GridViewEditEventArgs.cs
- EntityContainer.cs
- Int32Animation.cs
- DPAPIProtectedConfigurationProvider.cs
- CompilationLock.cs
- SoapEnumAttribute.cs
- NullRuntimeConfig.cs
- FontDriver.cs
- JoinGraph.cs
- MouseButtonEventArgs.cs
- InvalidWMPVersionException.cs
- CommentEmitter.cs
- DataControlFieldCell.cs
- SqlConnectionHelper.cs
- ItemCollectionEditor.cs
- PerformanceCounterPermission.cs
- MaterialGroup.cs
- ContractCodeDomInfo.cs
- GlyphRun.cs
- DataGridColumnCollectionEditor.cs
- CultureSpecificStringDictionary.cs
- DisplayInformation.cs
- SmiEventSink.cs
- XamlPointCollectionSerializer.cs
- NameTable.cs
- DbConnectionPool.cs
- HandoffBehavior.cs
- PagedDataSource.cs
- SqlServices.cs
- MasterPageParser.cs
- FigureHelper.cs
- ToolStripArrowRenderEventArgs.cs
- ISO2022Encoding.cs
- UnaryQueryOperator.cs