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
- VectorKeyFrameCollection.cs
- ParameterElementCollection.cs
- PreservationFileWriter.cs
- DbProviderFactories.cs
- _TransmitFileOverlappedAsyncResult.cs
- DateBoldEvent.cs
- FlowLayoutPanel.cs
- ListItemParagraph.cs
- XmlSchemaSimpleTypeUnion.cs
- HashSetDebugView.cs
- _BufferOffsetSize.cs
- ListViewGroupItemCollection.cs
- PrePrepareMethodAttribute.cs
- FolderBrowserDialog.cs
- RemoteWebConfigurationHost.cs
- RegexGroupCollection.cs
- ExceptionHelpers.cs
- LogAppendAsyncResult.cs
- InterleavedZipPartStream.cs
- HttpProfileBase.cs
- NumericExpr.cs
- GenericPrincipal.cs
- WindowsStatic.cs
- XmlSyndicationContent.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- SqlNodeTypeOperators.cs
- DrawingGroupDrawingContext.cs
- DeadCharTextComposition.cs
- ControlDesigner.cs
- PerfCounterSection.cs
- ErrorFormatterPage.cs
- Line.cs
- ProviderUtil.cs
- PropertyInfoSet.cs
- LogRecordSequence.cs
- AddingNewEventArgs.cs
- BezierSegment.cs
- _ChunkParse.cs
- ChtmlPhoneCallAdapter.cs
- OdbcDataReader.cs
- MenuBase.cs
- HtmlSelect.cs
- DrawListViewColumnHeaderEventArgs.cs
- DataSourceProvider.cs
- ServicesUtilities.cs
- DataSetMappper.cs
- TypeDependencyAttribute.cs
- SafeIUnknown.cs
- MenuItem.cs
- SqlProcedureAttribute.cs
- RectAnimationBase.cs
- SchemaLookupTable.cs
- ImageClickEventArgs.cs
- IdentityHolder.cs
- UserValidatedEventArgs.cs
- ProxyHelper.cs
- WebPartHelpVerb.cs
- CopyAction.cs
- ThousandthOfEmRealDoubles.cs
- ConfigurationElementProperty.cs
- TCEAdapterGenerator.cs
- WaitHandleCannotBeOpenedException.cs
- CodeDefaultValueExpression.cs
- XmlNodeChangedEventManager.cs
- wgx_exports.cs
- FreezableOperations.cs
- oledbconnectionstring.cs
- SchemaInfo.cs
- Nullable.cs
- InkCanvasSelection.cs
- BaseHashHelper.cs
- InfoCardTraceRecord.cs
- Win32MouseDevice.cs
- TargetInvocationException.cs
- OperandQuery.cs
- OutputCacheSettingsSection.cs
- _ContextAwareResult.cs
- JournalEntryListConverter.cs
- indexingfiltermarshaler.cs
- FullTextState.cs
- PropertyDescriptor.cs
- DockingAttribute.cs
- SQlBooleanStorage.cs
- SessionStateItemCollection.cs
- MessageQueuePermission.cs
- BoolLiteral.cs
- Faults.cs
- ScriptResourceAttribute.cs
- SpellerHighlightLayer.cs
- StylusCollection.cs
- WindowManager.cs
- TouchesCapturedWithinProperty.cs
- ChannelServices.cs
- XD.cs
- ListViewPagedDataSource.cs
- XsdCachingReader.cs
- ReceiveActivityDesigner.cs
- SectionInformation.cs
- SerialErrors.cs
- SystemGatewayIPAddressInformation.cs