Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Base / System / Windows / EntryIndex.cs / 1305600 / 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
- DbConnectionPoolGroup.cs
- HitTestDrawingContextWalker.cs
- SettingsPropertyIsReadOnlyException.cs
- EdmSchemaError.cs
- QilFunction.cs
- WindowsFormsHost.cs
- DocumentPageHost.cs
- GridPatternIdentifiers.cs
- VectorConverter.cs
- ECDsaCng.cs
- ActionMessageFilterTable.cs
- Point4D.cs
- SiteMapSection.cs
- QilXmlWriter.cs
- CollectionViewGroup.cs
- ProcessingInstructionAction.cs
- Task.cs
- XhtmlTextWriter.cs
- diagnosticsswitches.cs
- EnumerationRangeValidationUtil.cs
- EntityCollectionChangedParams.cs
- MarkupExtensionParser.cs
- ResourceExpressionBuilder.cs
- OrderByExpression.cs
- InfoCardSchemas.cs
- sqlmetadatafactory.cs
- AutomationIdentifier.cs
- MetadataException.cs
- SystemColors.cs
- WebPartChrome.cs
- EditorZoneAutoFormat.cs
- Geometry3D.cs
- TextEffectResolver.cs
- ViewKeyConstraint.cs
- CLSCompliantAttribute.cs
- EDesignUtil.cs
- ObjectQuery_EntitySqlExtensions.cs
- TreeNodeSelectionProcessor.cs
- TypeForwardedToAttribute.cs
- BaseParagraph.cs
- filewebresponse.cs
- StateMachine.cs
- UiaCoreTypesApi.cs
- HScrollProperties.cs
- BitmapInitialize.cs
- XmlEncApr2001.cs
- FragmentQuery.cs
- ManipulationDeltaEventArgs.cs
- HtmlEncodedRawTextWriter.cs
- LinkedResourceCollection.cs
- ActivityDesignerAccessibleObject.cs
- XmlSchemaAnnotation.cs
- SoapInteropTypes.cs
- WSSecurityPolicy.cs
- TablePattern.cs
- JsonByteArrayDataContract.cs
- ReachVisualSerializerAsync.cs
- ProcessModuleCollection.cs
- Row.cs
- HttpRequestTraceRecord.cs
- DbProviderManifest.cs
- RTLAwareMessageBox.cs
- DataGridViewCellValueEventArgs.cs
- OracleCommandSet.cs
- MeshGeometry3D.cs
- XamlClipboardData.cs
- Debug.cs
- MemberDescriptor.cs
- DocumentReferenceCollection.cs
- RequestTimeoutManager.cs
- StsCommunicationException.cs
- StateMachineExecutionState.cs
- NavigateEvent.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- ProfileSettings.cs
- ListViewInsertEventArgs.cs
- EntityViewContainer.cs
- FloatAverageAggregationOperator.cs
- listviewsubitemcollectioneditor.cs
- XmlWriter.cs
- DbProviderFactoriesConfigurationHandler.cs
- SynchronizedDispatch.cs
- MediaTimeline.cs
- DataColumnCollection.cs
- HybridDictionary.cs
- DateTimeSerializationSection.cs
- StickyNoteHelper.cs
- SecureEnvironment.cs
- MaskedTextBoxTextEditorDropDown.cs
- DataViewListener.cs
- XmlEntityReference.cs
- SemaphoreSecurity.cs
- Propagator.JoinPropagator.SubstitutingCloneVisitor.cs
- DataGridTemplateColumn.cs
- XmlNodeComparer.cs
- HttpDictionary.cs
- InternalControlCollection.cs
- CreateUserErrorEventArgs.cs
- AppDomain.cs
- ThemeableAttribute.cs