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
- ContextProperty.cs
- CompoundFileReference.cs
- HtmlElement.cs
- NonClientArea.cs
- AddInController.cs
- LinqDataSourceView.cs
- ChildTable.cs
- Operator.cs
- TraceSection.cs
- PassportPrincipal.cs
- SqlEnums.cs
- XmlRootAttribute.cs
- _DomainName.cs
- ColumnTypeConverter.cs
- PingOptions.cs
- DataSourceXmlClassAttribute.cs
- KnownBoxes.cs
- RegisteredDisposeScript.cs
- ToolStripArrowRenderEventArgs.cs
- IIS7WorkerRequest.cs
- CommunicationObjectManager.cs
- SqlClientMetaDataCollectionNames.cs
- CommandField.cs
- TiffBitmapEncoder.cs
- BitmapVisualManager.cs
- ObjectDataSourceEventArgs.cs
- WaitHandle.cs
- ErrorFormatterPage.cs
- EncoderBestFitFallback.cs
- LiteralLink.cs
- DesignerActionService.cs
- GridLength.cs
- Throw.cs
- LabelInfo.cs
- SignatureHelper.cs
- EntitySqlQueryState.cs
- XmlAtomicValue.cs
- ClientRuntimeConfig.cs
- PropertyGrid.cs
- ButtonColumn.cs
- ToolBar.cs
- RegexBoyerMoore.cs
- TileModeValidation.cs
- CodeNamespaceImport.cs
- ForEachAction.cs
- StickyNoteAnnotations.cs
- ActivityBindForm.Designer.cs
- FileDialogCustomPlace.cs
- XPathExpr.cs
- TimeSpanMinutesConverter.cs
- ResourcesGenerator.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- ToolStripComboBox.cs
- validation.cs
- NullToBooleanConverter.cs
- MenuStrip.cs
- ResourceDefaultValueAttribute.cs
- EditorPartCollection.cs
- SelectionProviderWrapper.cs
- UrlMapping.cs
- MetaModel.cs
- wmiprovider.cs
- InfoCardConstants.cs
- GridViewUpdateEventArgs.cs
- CommandValueSerializer.cs
- AttributeCollection.cs
- NameScopePropertyAttribute.cs
- SerializationHelper.cs
- ByteStorage.cs
- Encoding.cs
- Bidi.cs
- PropertyKey.cs
- DrawingBrush.cs
- MenuRendererStandards.cs
- ImmComposition.cs
- GuidTagList.cs
- WebPartEditorOkVerb.cs
- util.cs
- TextContainerChangeEventArgs.cs
- LifetimeServices.cs
- Opcode.cs
- ResourceExpression.cs
- UInt16Storage.cs
- DataColumn.cs
- Exceptions.cs
- PointUtil.cs
- BitVector32.cs
- HitTestDrawingContextWalker.cs
- DataMemberAttribute.cs
- _CookieModule.cs
- BookmarkScopeHandle.cs
- AccessedThroughPropertyAttribute.cs
- TextEditorLists.cs
- MetadataItemSerializer.cs
- ExpressionBindingCollection.cs
- Debug.cs
- TextBoxDesigner.cs
- StandardOleMarshalObject.cs
- ZoneIdentityPermission.cs
- Int64Storage.cs