Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- Typeface.cs
- BindingExpression.cs
- ServiceHostFactory.cs
- HttpBufferlessInputStream.cs
- Page.cs
- ParamArrayAttribute.cs
- OutputCacheProfile.cs
- WriteTimeStream.cs
- documentation.cs
- SoapWriter.cs
- RepeaterDesigner.cs
- IERequestCache.cs
- CurrentTimeZone.cs
- NTAccount.cs
- ZipIOExtraField.cs
- ClusterSafeNativeMethods.cs
- DBBindings.cs
- FunctionMappingTranslator.cs
- ActivationArguments.cs
- TextProperties.cs
- MessageQueueEnumerator.cs
- PenLineJoinValidation.cs
- CollectionBuilder.cs
- PartialCachingControl.cs
- HashRepartitionStream.cs
- ExceptionUtil.cs
- OletxResourceManager.cs
- WindowPatternIdentifiers.cs
- InternalConfigSettingsFactory.cs
- CompressionTransform.cs
- DetailsViewPagerRow.cs
- RuntimeHandles.cs
- DataServicePagingProviderWrapper.cs
- XmlFormatExtensionPrefixAttribute.cs
- SqlBulkCopy.cs
- ProfileService.cs
- CacheSection.cs
- SqlFunctionAttribute.cs
- CharStorage.cs
- JsonReaderDelegator.cs
- TypeSystem.cs
- RemoteArgument.cs
- FloatAverageAggregationOperator.cs
- TargetInvocationException.cs
- Viewport3DVisual.cs
- MeasureData.cs
- HijriCalendar.cs
- AdjustableArrowCap.cs
- SecUtil.cs
- XPathNodePointer.cs
- SqlHelper.cs
- ControlEvent.cs
- AuthenticationManager.cs
- ControlOperationInvoker.cs
- BitVector32.cs
- XmlQueryType.cs
- AutomationIdentifierGuids.cs
- CaseInsensitiveOrdinalStringComparer.cs
- Font.cs
- TextDecorations.cs
- WebPartConnectionsCancelEventArgs.cs
- Span.cs
- StringBuilder.cs
- WindowsSysHeader.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- VisualBasicSettingsHandler.cs
- DataGridViewCellFormattingEventArgs.cs
- CmsInterop.cs
- TextRangeSerialization.cs
- LinqDataSourceSelectEventArgs.cs
- FirstQueryOperator.cs
- WebPartTransformer.cs
- TextRange.cs
- Content.cs
- ForeignKeyConstraint.cs
- MinimizableAttributeTypeConverter.cs
- ObservableDictionary.cs
- BuildManager.cs
- ProfilePropertySettings.cs
- PageContentAsyncResult.cs
- OutputCacheSection.cs
- XmlSchemaDocumentation.cs
- DashStyles.cs
- TrustLevel.cs
- TextTreeText.cs
- ArrayHelper.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- Component.cs
- ServiceHttpHandlerFactory.cs
- LocalizabilityAttribute.cs
- TdsParameterSetter.cs
- BitHelper.cs
- UserValidatedEventArgs.cs
- CoTaskMemHandle.cs
- UserPreferenceChangedEventArgs.cs
- SrgsElementFactory.cs
- XamlTypeMapper.cs
- ExternalCalls.cs
- DataGridViewDataConnection.cs
- ApplicationServiceHelper.cs