Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- Size3D.cs
- Profiler.cs
- SiteMapNodeCollection.cs
- WindowHideOrCloseTracker.cs
- Win32Exception.cs
- XhtmlBasicPanelAdapter.cs
- AutomationPropertyInfo.cs
- IsolatedStorageSecurityState.cs
- FixedSOMTextRun.cs
- Pair.cs
- CodeCompiler.cs
- RadioButtonBaseAdapter.cs
- DataControlField.cs
- IdentitySection.cs
- Pair.cs
- SingleTagSectionHandler.cs
- basevalidator.cs
- TreeWalker.cs
- BamlResourceSerializer.cs
- UnsafeNativeMethods.cs
- ReachIDocumentPaginatorSerializerAsync.cs
- DataBindingCollection.cs
- TimeoutValidationAttribute.cs
- TextElement.cs
- SizeValueSerializer.cs
- GPStream.cs
- DataGridViewRowCollection.cs
- Decoder.cs
- SpeechRecognitionEngine.cs
- MetadataException.cs
- TabPanel.cs
- SettingsSavedEventArgs.cs
- DCSafeHandle.cs
- HitTestParameters.cs
- UnsafeMethods.cs
- TextPointerBase.cs
- InvalidOleVariantTypeException.cs
- EntityContainerAssociationSet.cs
- CodeMemberMethod.cs
- QueryCoreOp.cs
- RotateTransform.cs
- HierarchicalDataTemplate.cs
- FormViewDeleteEventArgs.cs
- ChannelBinding.cs
- InfocardClientCredentials.cs
- LambdaCompiler.Generated.cs
- VirtualizingStackPanel.cs
- DBSchemaRow.cs
- ReadOnlyObservableCollection.cs
- MyContact.cs
- Parameter.cs
- FormCollection.cs
- ReceiveCompletedEventArgs.cs
- HyperLinkStyle.cs
- SessionEndedEventArgs.cs
- ClrPerspective.cs
- ThicknessConverter.cs
- ExpressionParser.cs
- PolyBezierSegment.cs
- TraceFilter.cs
- relpropertyhelper.cs
- HMACSHA256.cs
- AspNetSynchronizationContext.cs
- InputScope.cs
- ButtonChrome.cs
- Main.cs
- Base64Encoder.cs
- SynchronizationContext.cs
- HtmlTernaryTree.cs
- StreamUpdate.cs
- NamedElement.cs
- Emitter.cs
- AttributeAction.cs
- ProxyHwnd.cs
- X509RawDataKeyIdentifierClause.cs
- CompositeDataBoundControl.cs
- FileDialog.cs
- IndexerNameAttribute.cs
- CalendarKeyboardHelper.cs
- StoreItemCollection.Loader.cs
- ContextInformation.cs
- ToolBarTray.cs
- RNGCryptoServiceProvider.cs
- ResourceProviderFactory.cs
- JsonReaderWriterFactory.cs
- FormViewPageEventArgs.cs
- DateTime.cs
- ActivityCollectionMarkupSerializer.cs
- QueryStringHandler.cs
- IdnElement.cs
- CompareInfo.cs
- PropertyFilterAttribute.cs
- Button.cs
- ObjectDataSourceDisposingEventArgs.cs
- StructuredTypeEmitter.cs
- AnnouncementInnerClientCD1.cs
- HostAdapter.cs
- TableLayoutSettings.cs
- XPathItem.cs
- SwitchAttribute.cs