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
- AsymmetricSignatureDeformatter.cs
- XmlNamespaceMappingCollection.cs
- IdSpace.cs
- UpdateRecord.cs
- ExpressionContext.cs
- InputScope.cs
- EntityCommandCompilationException.cs
- DynamicArgumentDialog.cs
- MarkupProperty.cs
- Memoizer.cs
- DataBindingList.cs
- QilChoice.cs
- SmtpAuthenticationManager.cs
- DialogResultConverter.cs
- UserControlCodeDomTreeGenerator.cs
- AsyncOperation.cs
- AssemblyBuilder.cs
- TableCellCollection.cs
- XmlRawWriter.cs
- XmlSchemaIdentityConstraint.cs
- OpenTypeLayout.cs
- IOThreadTimer.cs
- NamedPermissionSet.cs
- PropertyMetadata.cs
- RegistryExceptionHelper.cs
- CodeVariableDeclarationStatement.cs
- GatewayDefinition.cs
- RelatedPropertyManager.cs
- SoapObjectInfo.cs
- X509IssuerSerialKeyIdentifierClause.cs
- PropertyDescriptorComparer.cs
- CopyCodeAction.cs
- Int64KeyFrameCollection.cs
- TableLayoutPanel.cs
- UnauthorizedWebPart.cs
- ExpressionReplacer.cs
- EntityContainer.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- XmlHierarchicalEnumerable.cs
- RecommendedAsConfigurableAttribute.cs
- WebPartDescription.cs
- BufferedGraphics.cs
- Timeline.cs
- DataGridViewRowConverter.cs
- ComponentEditorForm.cs
- PlatformNotSupportedException.cs
- Input.cs
- XmlElement.cs
- OLEDB_Enum.cs
- safemediahandle.cs
- DataGridState.cs
- GridToolTip.cs
- Grant.cs
- RoleServiceManager.cs
- EnumCodeDomSerializer.cs
- TextParagraphView.cs
- MLangCodePageEncoding.cs
- XmlObjectSerializerReadContextComplexJson.cs
- ArraySet.cs
- WebPartDisplayModeCancelEventArgs.cs
- UnsafeNativeMethods.cs
- ListBindableAttribute.cs
- TypeResolver.cs
- StrongName.cs
- Helpers.cs
- safex509handles.cs
- Trace.cs
- HttpRuntime.cs
- RowSpanVector.cs
- DataBindEngine.cs
- ReversePositionQuery.cs
- StoreContentChangedEventArgs.cs
- RoutedEventConverter.cs
- KeyGestureConverter.cs
- XPathNodeHelper.cs
- FunctionNode.cs
- Helpers.cs
- GZipUtils.cs
- BooleanFunctions.cs
- FlowDocumentReaderAutomationPeer.cs
- DictionaryBase.cs
- LocalIdCollection.cs
- SslStream.cs
- EpmSyndicationContentSerializer.cs
- DebugView.cs
- DrawingDrawingContext.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- StreamInfo.cs
- SoapTypeAttribute.cs
- StickyNoteContentControl.cs
- DefaultValidator.cs
- OraclePermission.cs
- DependencyObjectPropertyDescriptor.cs
- BamlTreeNode.cs
- FileLevelControlBuilderAttribute.cs
- TextSelection.cs
- InputBuffer.cs
- ParallelActivityDesigner.cs
- XamlDesignerSerializationManager.cs
- regiisutil.cs