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
- Int64Animation.cs
- TabPageDesigner.cs
- FontDialog.cs
- ImageDrawing.cs
- ResolveMatches11.cs
- ResolveRequestResponseAsyncResult.cs
- GridViewColumnHeader.cs
- PasswordDeriveBytes.cs
- LocationUpdates.cs
- EditorPart.cs
- FullTextState.cs
- OutputCacheSettings.cs
- PageBreakRecord.cs
- ApplicationInfo.cs
- CodeAttributeDeclarationCollection.cs
- ProcessInputEventArgs.cs
- SponsorHelper.cs
- Decimal.cs
- Object.cs
- IPEndPointCollection.cs
- PeerCustomResolverBindingElement.cs
- HtmlFormParameterWriter.cs
- FileDialog.cs
- Guid.cs
- hwndwrapper.cs
- CatchBlock.cs
- JsonWriterDelegator.cs
- RestClientProxyHandler.cs
- TableAdapterManagerMethodGenerator.cs
- FullTextBreakpoint.cs
- SqlConnection.cs
- UnionCqlBlock.cs
- MultiByteCodec.cs
- FormsAuthentication.cs
- WindowHideOrCloseTracker.cs
- WeakRefEnumerator.cs
- EditorAttribute.cs
- MsmqChannelFactory.cs
- DataControlField.cs
- BinaryObjectWriter.cs
- EntityModelSchemaGenerator.cs
- FrameworkContentElement.cs
- TaskForm.cs
- NativeBuffer.cs
- InheritanceContextChangedEventManager.cs
- ValidationErrorCollection.cs
- ObjRef.cs
- VisualBrush.cs
- WebRequest.cs
- XmlBinaryReader.cs
- ConnectionManagementElementCollection.cs
- ServiceDescriptionReflector.cs
- HwndSource.cs
- TagMapInfo.cs
- DbReferenceCollection.cs
- TransformerTypeCollection.cs
- TextParagraphView.cs
- CLRBindingWorker.cs
- ReferenceEqualityComparer.cs
- GreenMethods.cs
- DiscoveryServiceExtension.cs
- SqlRowUpdatingEvent.cs
- NamespaceCollection.cs
- Window.cs
- ObjectDataSourceFilteringEventArgs.cs
- HitTestWithPointDrawingContextWalker.cs
- CodeDelegateCreateExpression.cs
- SecurityState.cs
- MethodToken.cs
- DtrList.cs
- StringValueSerializer.cs
- ParallelTimeline.cs
- IsolatedStorageFilePermission.cs
- ObjectDataSourceChooseTypePanel.cs
- AQNBuilder.cs
- AutoGeneratedFieldProperties.cs
- SqlMethods.cs
- HandlerBase.cs
- JpegBitmapDecoder.cs
- SqlDataReaderSmi.cs
- PriorityQueue.cs
- PackagePartCollection.cs
- RtfToXamlLexer.cs
- VectorConverter.cs
- WebBrowserBase.cs
- dataobject.cs
- SqlProviderServices.cs
- ReaderWriterLock.cs
- Mouse.cs
- XPathNodeIterator.cs
- Brush.cs
- DbgUtil.cs
- Thread.cs
- Matrix3DStack.cs
- GCHandleCookieTable.cs
- SqlProvider.cs
- SQLBytesStorage.cs
- ResourceAssociationType.cs
- CaseInsensitiveHashCodeProvider.cs
- ExpressionPrefixAttribute.cs