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
- DataGridHeadersVisibilityToVisibilityConverter.cs
- OdbcDataAdapter.cs
- WindowsBrush.cs
- RequestQueue.cs
- BitmapEffectGeneralTransform.cs
- MetaModel.cs
- DriveInfo.cs
- TextBox.cs
- ListViewDeleteEventArgs.cs
- ProviderConnectionPoint.cs
- DoubleAnimationUsingKeyFrames.cs
- WebPartVerb.cs
- HttpCapabilitiesEvaluator.cs
- MetadataArtifactLoaderResource.cs
- CustomGrammar.cs
- NotSupportedException.cs
- EndPoint.cs
- RootProfilePropertySettingsCollection.cs
- MarginCollapsingState.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- ResourceFallbackManager.cs
- TableCellCollection.cs
- DCSafeHandle.cs
- ThreadStartException.cs
- DataBoundLiteralControl.cs
- ChannelCredentials.cs
- ArraySet.cs
- ConfigurationValidatorBase.cs
- QilCloneVisitor.cs
- SqlRecordBuffer.cs
- MetadataSource.cs
- DataRecordObjectView.cs
- VisualTreeHelper.cs
- SecurityUniqueId.cs
- DesignColumnCollection.cs
- Base64WriteStateInfo.cs
- ConfigXmlText.cs
- ThousandthOfEmRealPoints.cs
- BehaviorEditorPart.cs
- AppDomainProtocolHandler.cs
- BasicHttpBinding.cs
- CodeLabeledStatement.cs
- StringFunctions.cs
- WmpBitmapEncoder.cs
- AmbiguousMatchException.cs
- DataFieldCollectionEditor.cs
- ComplexType.cs
- SymbolEqualComparer.cs
- InfoCardTraceRecord.cs
- IEnumerable.cs
- XmlKeywords.cs
- SvcFileManager.cs
- DataQuery.cs
- WebScriptMetadataFormatter.cs
- StylusButtonCollection.cs
- Message.cs
- RecordManager.cs
- sqlnorm.cs
- WebPartConnectionsConfigureVerb.cs
- SmtpMail.cs
- ActiveXContainer.cs
- StylusDevice.cs
- XmlSchemaImporter.cs
- TTSVoice.cs
- WebServiceParameterData.cs
- Range.cs
- xmlsaver.cs
- ReservationCollection.cs
- CalloutQueueItem.cs
- SimpleExpression.cs
- ConfigXmlElement.cs
- ResourceContainer.cs
- TemplatedMailWebEventProvider.cs
- UnknownBitmapEncoder.cs
- ActivitySurrogate.cs
- InteropBitmapSource.cs
- ReadOnlyPropertyMetadata.cs
- DbUpdateCommandTree.cs
- AllMembershipCondition.cs
- ActionFrame.cs
- WindowsHyperlink.cs
- Context.cs
- CodeMemberMethod.cs
- SystemKeyConverter.cs
- XmlTextWriter.cs
- safelink.cs
- loginstatus.cs
- PointHitTestResult.cs
- DictionaryMarkupSerializer.cs
- SuppressMergeCheckAttribute.cs
- SimpleWebHandlerParser.cs
- OleDbPropertySetGuid.cs
- Cursor.cs
- DesignerAutoFormatStyle.cs
- ListComponentEditorPage.cs
- Int32CollectionConverter.cs
- DateTime.cs
- ContextBase.cs
- CacheDependency.cs
- PropertyChangingEventArgs.cs