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
- PropertyGridDesigner.cs
- WinFormsSecurity.cs
- WebPartVerbCollection.cs
- ObjectCacheHost.cs
- SiteMapProvider.cs
- CursorConverter.cs
- WindowsSspiNegotiation.cs
- ProxyGenerator.cs
- WebPartMenu.cs
- HttpWebRequestElement.cs
- DbProviderSpecificTypePropertyAttribute.cs
- WebDisplayNameAttribute.cs
- BindingSource.cs
- AutomationElementIdentifiers.cs
- Vector3DIndependentAnimationStorage.cs
- xmlsaver.cs
- NonValidatingSecurityTokenAuthenticator.cs
- ChangeProcessor.cs
- ClientBuildManagerCallback.cs
- Connector.xaml.cs
- OdbcConnectionHandle.cs
- MasterPageBuildProvider.cs
- DataGridTextBox.cs
- DocumentOrderQuery.cs
- NamespaceEmitter.cs
- MenuBase.cs
- BufferedOutputStream.cs
- LookupNode.cs
- ExpressionBindingCollection.cs
- XmlDownloadManager.cs
- TextEditorSelection.cs
- HandlerMappingMemo.cs
- ElementHostPropertyMap.cs
- EditingScope.cs
- DataConnectionHelper.cs
- MemberMaps.cs
- ResponseBodyWriter.cs
- ClientOptions.cs
- List.cs
- CompilerInfo.cs
- OleDbWrapper.cs
- DbProviderFactories.cs
- BezierSegment.cs
- PermissionToken.cs
- TreeBuilderBamlTranslator.cs
- InputReport.cs
- XmlSiteMapProvider.cs
- MemberRestriction.cs
- XamlFrame.cs
- SyndicationDeserializer.cs
- PrintPageEvent.cs
- FocusTracker.cs
- SafeFindHandle.cs
- VirtualizingPanel.cs
- WindowsGraphics2.cs
- CompiledIdentityConstraint.cs
- XmlAnyAttributeAttribute.cs
- CachedBitmap.cs
- HtmlInputFile.cs
- CommandDevice.cs
- TableLayoutSettings.cs
- WithParamAction.cs
- LexicalChunk.cs
- FaultImportOptions.cs
- RSAPKCS1SignatureDeformatter.cs
- Journaling.cs
- RenderCapability.cs
- WebPartConnectionsConnectVerb.cs
- querybuilder.cs
- DataGrid.cs
- EntityProviderFactory.cs
- DataPagerField.cs
- RichTextBoxConstants.cs
- XamlPathDataSerializer.cs
- DatatypeImplementation.cs
- IncomingWebResponseContext.cs
- SqlDataSourceCommandEventArgs.cs
- BasicKeyConstraint.cs
- Currency.cs
- ImpersonateTokenRef.cs
- SafeIUnknown.cs
- ColorMatrix.cs
- ObjectQueryExecutionPlan.cs
- ObjectReaderCompiler.cs
- PageVisual.cs
- ChangePassword.cs
- HtmlCommandAdapter.cs
- DataGridViewMethods.cs
- MimePart.cs
- TypeInfo.cs
- Psha1DerivedKeyGeneratorHelper.cs
- VectorValueSerializer.cs
- ServicesUtilities.cs
- ExpressionBuilder.cs
- EntityTypeEmitter.cs
- WebPartMinimizeVerb.cs
- HttpChannelHelper.cs
- BuilderPropertyEntry.cs
- HMACSHA1.cs
- FramingEncoders.cs