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
- SrgsOneOf.cs
- TypeConvertions.cs
- BitmapEffectInput.cs
- TextRangeEditLists.cs
- ADConnectionHelper.cs
- XPathPatternBuilder.cs
- WebProxyScriptElement.cs
- MessageAction.cs
- SystemBrushes.cs
- DetailsViewPagerRow.cs
- Expressions.cs
- Fonts.cs
- CollectionsUtil.cs
- DrawListViewSubItemEventArgs.cs
- CssTextWriter.cs
- ServiceInfo.cs
- InstanceData.cs
- RegexWorker.cs
- HwndHost.cs
- NopReturnReader.cs
- StartUpEventArgs.cs
- Matrix.cs
- FontCollection.cs
- CustomValidator.cs
- NativeMethods.cs
- DataContractSerializerElement.cs
- ToolStripItemImageRenderEventArgs.cs
- IdentityModelStringsVersion1.cs
- DelegatingHeader.cs
- Stack.cs
- AuthStoreRoleProvider.cs
- ImpersonateTokenRef.cs
- AuthorizationRule.cs
- EmptyStringExpandableObjectConverter.cs
- CacheHelper.cs
- NavigationWindowAutomationPeer.cs
- MeasurementDCInfo.cs
- RefExpr.cs
- shaperfactoryquerycachekey.cs
- ScriptingRoleServiceSection.cs
- PeerNameRegistration.cs
- DefaultEventAttribute.cs
- XPathNode.cs
- HttpListenerResponse.cs
- BulletedList.cs
- SafeCryptoHandles.cs
- CodeValidator.cs
- TypedServiceChannelBuilder.cs
- EmptyStringExpandableObjectConverter.cs
- SqlNotificationRequest.cs
- XhtmlBasicTextViewAdapter.cs
- BulletedList.cs
- BaseResourcesBuildProvider.cs
- ManipulationInertiaStartingEventArgs.cs
- SetStoryboardSpeedRatio.cs
- XmlIgnoreAttribute.cs
- RowUpdatedEventArgs.cs
- Unit.cs
- TraceData.cs
- SettingsPropertyWrongTypeException.cs
- StringFunctions.cs
- altserialization.cs
- PublisherIdentityPermission.cs
- BindingContext.cs
- MobileSysDescriptionAttribute.cs
- WebPartVerbsEventArgs.cs
- EntityType.cs
- Int16Storage.cs
- Baml2006Reader.cs
- ConfigurationValue.cs
- Vector3DCollectionConverter.cs
- ScrollBar.cs
- SmtpCommands.cs
- XmlEntityReference.cs
- PersonalizationStateInfo.cs
- LightweightEntityWrapper.cs
- UTF7Encoding.cs
- XsltQilFactory.cs
- AccessText.cs
- ReturnEventArgs.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- QuotedStringFormatReader.cs
- ContentType.cs
- NamespaceExpr.cs
- PathFigureCollection.cs
- SoapExtensionStream.cs
- SqlReferenceCollection.cs
- UnsafePeerToPeerMethods.cs
- ArrangedElementCollection.cs
- StaticResourceExtension.cs
- Container.cs
- ExpressionParser.cs
- RelationshipEndMember.cs
- AgileSafeNativeMemoryHandle.cs
- ContentDisposition.cs
- CalendarDateRange.cs
- SaveCardRequest.cs
- DataMemberAttribute.cs
- Viewport3DAutomationPeer.cs
- CacheDependency.cs