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
- UITypeEditors.cs
- UnsafeNativeMethods.cs
- SourceSwitch.cs
- ComponentCommands.cs
- X509RawDataKeyIdentifierClause.cs
- EditorZone.cs
- AdCreatedEventArgs.cs
- PeerUnsafeNativeCryptMethods.cs
- AsyncResult.cs
- MailMessageEventArgs.cs
- ToolConsole.cs
- ScrollViewer.cs
- LabelAutomationPeer.cs
- NameValueConfigurationElement.cs
- MutexSecurity.cs
- TraceSwitch.cs
- ProtectedConfigurationSection.cs
- LineServicesRun.cs
- ProfileManager.cs
- HttpModuleActionCollection.cs
- CommentAction.cs
- EntityDataSourceWrapperCollection.cs
- AttachmentCollection.cs
- DescendentsWalker.cs
- TemplateBindingExtension.cs
- EntityDataSourceConfigureObjectContext.cs
- DataGridViewCellParsingEventArgs.cs
- remotingproxy.cs
- Header.cs
- FrugalList.cs
- Executor.cs
- DataRowCollection.cs
- BitArray.cs
- ChangeTracker.cs
- DecoratedNameAttribute.cs
- DataGridViewColumnHeaderCell.cs
- AudioFormatConverter.cs
- FormViewDeleteEventArgs.cs
- IDReferencePropertyAttribute.cs
- SHA512.cs
- DetailsViewCommandEventArgs.cs
- IndentedWriter.cs
- MD5CryptoServiceProvider.cs
- IriParsingElement.cs
- ReflectionHelper.cs
- AttachInfo.cs
- TrustManagerPromptUI.cs
- SelectionChangedEventArgs.cs
- XamlClipboardData.cs
- TemplateControl.cs
- ToolboxDataAttribute.cs
- UTF7Encoding.cs
- Drawing.cs
- MsmqIntegrationBindingCollectionElement.cs
- FilterElement.cs
- SQLBinary.cs
- SafeRightsManagementHandle.cs
- StrictAndMessageFilter.cs
- QueryParameter.cs
- ExecutedRoutedEventArgs.cs
- SystemIPGlobalStatistics.cs
- RoutingSection.cs
- DataBindingCollection.cs
- ContentOperations.cs
- Configuration.cs
- HyperLinkStyle.cs
- ConfigXmlWhitespace.cs
- TimeEnumHelper.cs
- XPathMultyIterator.cs
- PropertyChange.cs
- CodeObjectCreateExpression.cs
- HostSecurityManager.cs
- EntityDataSourceWrapper.cs
- EdmToObjectNamespaceMap.cs
- RadialGradientBrush.cs
- PolicyChain.cs
- ConnectionManagementElementCollection.cs
- FileChangesMonitor.cs
- PeerResolver.cs
- ConnectionStringsExpressionBuilder.cs
- SocketAddress.cs
- CharConverter.cs
- PerCallInstanceContextProvider.cs
- GlyphManager.cs
- SiteOfOriginContainer.cs
- WpfGeneratedKnownProperties.cs
- PointKeyFrameCollection.cs
- PersonalizationProvider.cs
- ILGenerator.cs
- AngleUtil.cs
- OutputCacheProfile.cs
- SqlRemoveConstantOrderBy.cs
- TaskFactory.cs
- CaseInsensitiveComparer.cs
- FollowerQueueCreator.cs
- DriveNotFoundException.cs
- WindowsNonControl.cs
- RecognizeCompletedEventArgs.cs
- SID.cs
- PropertiesTab.cs