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
- OutputScopeManager.cs
- UnsafeNativeMethods.cs
- QueryPageSettingsEventArgs.cs
- PasswordDeriveBytes.cs
- TextDecorationCollectionConverter.cs
- SerialReceived.cs
- SafeCryptoHandles.cs
- SocketAddress.cs
- X509SecurityTokenAuthenticator.cs
- EvidenceTypeDescriptor.cs
- TraceContextRecord.cs
- TransactionManager.cs
- InlineCategoriesDocument.cs
- SqlNode.cs
- CompensateDesigner.cs
- ObjectQueryState.cs
- Configuration.cs
- CanExecuteRoutedEventArgs.cs
- WeakReference.cs
- OpenTypeLayoutCache.cs
- Geometry.cs
- ConstructorBuilder.cs
- ReaderContextStackData.cs
- CompilerParameters.cs
- AdornerPresentationContext.cs
- ReferencedCollectionType.cs
- ControlEvent.cs
- TransactionOptions.cs
- HwndTarget.cs
- RowsCopiedEventArgs.cs
- DesignerForm.cs
- PreviousTrackingServiceAttribute.cs
- XPathSelfQuery.cs
- DateTimeStorage.cs
- ResourceAssociationSetEnd.cs
- ByteKeyFrameCollection.cs
- GeneralTransformGroup.cs
- ISessionStateStore.cs
- XmlSchemaDocumentation.cs
- ValidationHelpers.cs
- SecurityDocument.cs
- ShutDownListener.cs
- InternalDuplexBindingElement.cs
- ObjectDataSource.cs
- DiscoveryDefaults.cs
- WindowsRichEditRange.cs
- CaretElement.cs
- ComponentConverter.cs
- VariantWrapper.cs
- WebBrowserPermission.cs
- TextFormatterContext.cs
- HiddenField.cs
- WasHttpHandlersInstallComponent.cs
- AsyncOperationContext.cs
- Matrix.cs
- ToolboxDataAttribute.cs
- CategoryEditor.cs
- LinkTarget.cs
- XmlWriterSettings.cs
- ExpressionBuilder.cs
- WebPartHeaderCloseVerb.cs
- milexports.cs
- CustomTypeDescriptor.cs
- GZipStream.cs
- BindingBase.cs
- TypeBuilder.cs
- _FtpControlStream.cs
- DataGridViewCellCancelEventArgs.cs
- Point4DConverter.cs
- COSERVERINFO.cs
- HtmlTextArea.cs
- securitymgrsite.cs
- FrameworkTextComposition.cs
- DropShadowEffect.cs
- DataTableReader.cs
- OdbcDataAdapter.cs
- TraceUtility.cs
- PropertyNames.cs
- Visual3D.cs
- XmlILConstructAnalyzer.cs
- SwitchAttribute.cs
- ZipIOBlockManager.cs
- ThemeDirectoryCompiler.cs
- ClientSettingsProvider.cs
- ErrorWebPart.cs
- CharacterBufferReference.cs
- WindowsAltTab.cs
- FrameworkEventSource.cs
- complextypematerializer.cs
- VideoDrawing.cs
- DataGridCommandEventArgs.cs
- ParentQuery.cs
- AccessControlList.cs
- WebServiceAttribute.cs
- WorkflowQueue.cs
- LocalizeDesigner.cs
- CodeSnippetExpression.cs
- DataGridDesigner.cs
- StringCollectionEditor.cs
- ReadOnlyHierarchicalDataSourceView.cs