Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- PictureBox.cs
- SinglePageViewer.cs
- ClientType.cs
- XomlSerializationHelpers.cs
- WebPartUtil.cs
- HtmlElementEventArgs.cs
- DocumentationServerProtocol.cs
- QueryOutputWriter.cs
- MediaElement.cs
- Base64Encoder.cs
- ListSortDescription.cs
- ListViewUpdateEventArgs.cs
- ParagraphResult.cs
- entitydatasourceentitysetnameconverter.cs
- SetStoryboardSpeedRatio.cs
- InstanceKeyCompleteException.cs
- SafeSecurityHandles.cs
- DataSourceUtil.cs
- BooleanExpr.cs
- TypeLibConverter.cs
- CodeDefaultValueExpression.cs
- SQLMembershipProvider.cs
- HttpVersion.cs
- XPathArrayIterator.cs
- SplineKeyFrames.cs
- ColorTransformHelper.cs
- DataGridHeaderBorder.cs
- BitmapEncoder.cs
- GlobalProxySelection.cs
- PaperSize.cs
- DynamicField.cs
- DesignerHelpers.cs
- ExtractedStateEntry.cs
- ActiveDesignSurfaceEvent.cs
- MonikerBuilder.cs
- ConnectionPointGlyph.cs
- PointCollectionValueSerializer.cs
- DataServiceEntityAttribute.cs
- ThemeConfigurationDialog.cs
- ExtenderControl.cs
- SchemaObjectWriter.cs
- BackgroundWorker.cs
- ElementNotAvailableException.cs
- BitVector32.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- ListControl.cs
- HttpRuntimeSection.cs
- IPAddressCollection.cs
- BamlWriter.cs
- ObjectDisposedException.cs
- Version.cs
- mactripleDES.cs
- CryptoProvider.cs
- RenameRuleObjectDialog.Designer.cs
- ReservationCollection.cs
- ObjectListFieldCollection.cs
- ReferenceConverter.cs
- SingleAnimation.cs
- XpsPackagingPolicy.cs
- EntityWrapperFactory.cs
- BookmarkUndoUnit.cs
- InvalidComObjectException.cs
- SpellerHighlightLayer.cs
- ToolStripOverflow.cs
- SectionVisual.cs
- PropertyNames.cs
- PnrpPeerResolver.cs
- GenericEnumConverter.cs
- SchemaMapping.cs
- translator.cs
- SuppressIldasmAttribute.cs
- UTF8Encoding.cs
- ImageSourceConverter.cs
- ControlBindingsCollection.cs
- XmlFormatMapping.cs
- IProvider.cs
- Table.cs
- CanonicalizationDriver.cs
- AsyncDataRequest.cs
- WindowsFormsHost.cs
- GatewayDefinition.cs
- OleDbReferenceCollection.cs
- PassportPrincipal.cs
- CaseInsensitiveComparer.cs
- FragmentQueryKB.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- GuidTagList.cs
- BuildTopDownAttribute.cs
- InvalidEnumArgumentException.cs
- TransformCollection.cs
- RegexCaptureCollection.cs
- WindowsPrincipal.cs
- AdRotatorDesigner.cs
- NameValueConfigurationElement.cs
- ComponentCommands.cs
- EntityReference.cs
- SecurityDescriptor.cs
- Query.cs
- OracleNumber.cs
- ReflectTypeDescriptionProvider.cs