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
- SimpleTableProvider.cs
- TransformConverter.cs
- EntityUtil.cs
- UnsafeNativeMethods.cs
- DataRelation.cs
- CaseCqlBlock.cs
- FtpRequestCacheValidator.cs
- DbMetaDataFactory.cs
- RemotingException.cs
- SystemResourceKey.cs
- Canonicalizers.cs
- Contracts.cs
- OpCellTreeNode.cs
- DelayedRegex.cs
- BinaryObjectReader.cs
- _DomainName.cs
- ContractInstanceProvider.cs
- HttpListenerContext.cs
- StopRoutingHandler.cs
- TextEditorContextMenu.cs
- ProcessModuleDesigner.cs
- SafeNativeMethodsMilCoreApi.cs
- FormCollection.cs
- securestring.cs
- XhtmlBasicObjectListAdapter.cs
- SerializationStore.cs
- LongTypeConverter.cs
- DataTableMapping.cs
- CompilerTypeWithParams.cs
- ArrangedElement.cs
- BindingGroup.cs
- MarginCollapsingState.cs
- DockingAttribute.cs
- AuthenticatedStream.cs
- GenericNameHandler.cs
- DataGridItemEventArgs.cs
- RequestStatusBarUpdateEventArgs.cs
- MethodRental.cs
- RoleManagerSection.cs
- ClientSponsor.cs
- UrlSyndicationContent.cs
- FixedSOMImage.cs
- MultipartIdentifier.cs
- WinEventWrap.cs
- DirtyTextRange.cs
- CollectionAdapters.cs
- DateTimePicker.cs
- AsyncResult.cs
- ExternalException.cs
- ContentAlignmentEditor.cs
- DynamicValidatorEventArgs.cs
- QualifiedCellIdBoolean.cs
- BamlLocalizabilityResolver.cs
- QilPatternFactory.cs
- MappingItemCollection.cs
- XmlWrappingReader.cs
- ISFClipboardData.cs
- GridItem.cs
- ValidationSummary.cs
- VirtualizingStackPanel.cs
- LookupBindingPropertiesAttribute.cs
- MetadataArtifactLoaderCompositeFile.cs
- ResponseStream.cs
- ThreadStartException.cs
- ConfigurationSchemaErrors.cs
- InternalRelationshipCollection.cs
- InvokePattern.cs
- ISFClipboardData.cs
- TreeViewItemAutomationPeer.cs
- PermissionSetTriple.cs
- InkCanvasSelection.cs
- UInt32Converter.cs
- ZipPackage.cs
- columnmapkeybuilder.cs
- documentsequencetextpointer.cs
- ReadOnlyDictionary.cs
- RemoteWebConfigurationHostServer.cs
- ResourceManagerWrapper.cs
- FontStyleConverter.cs
- CompiledXpathExpr.cs
- HtmlElementEventArgs.cs
- DocumentViewerHelper.cs
- CodeTryCatchFinallyStatement.cs
- HttpRequest.cs
- DataGridViewRowEventArgs.cs
- SolidBrush.cs
- CalendarDataBindingHandler.cs
- AssemblyBuilderData.cs
- IsolatedStorageFile.cs
- TransformGroup.cs
- DbParameterCollectionHelper.cs
- GlyphRunDrawing.cs
- _BufferOffsetSize.cs
- UnaryNode.cs
- ColumnResult.cs
- DiagnosticTrace.cs
- RegisterInfo.cs
- InvokeGenerator.cs
- Latin1Encoding.cs
- HttpCacheVary.cs