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
- DropDownList.cs
- PropertyGridView.cs
- XmlSerializationGeneratedCode.cs
- RangeBase.cs
- HttpConfigurationContext.cs
- ItemsPresenter.cs
- CodeDelegateCreateExpression.cs
- TreeBuilderBamlTranslator.cs
- DiscreteKeyFrames.cs
- TextRangeBase.cs
- HtmlCalendarAdapter.cs
- EndpointDiscoveryMetadataCD1.cs
- UdpTransportSettingsElement.cs
- MouseActionConverter.cs
- SplitterCancelEvent.cs
- ConfigXmlText.cs
- Privilege.cs
- EnumMember.cs
- ObjectDataSourceChooseMethodsPanel.cs
- PerformanceCounter.cs
- _SSPIWrapper.cs
- Calendar.cs
- LinqDataView.cs
- CompiledRegexRunner.cs
- TypeDelegator.cs
- XmlNamespaceMappingCollection.cs
- RegistrationServices.cs
- ReverseInheritProperty.cs
- SymmetricCryptoHandle.cs
- TransformerInfo.cs
- HashRepartitionEnumerator.cs
- RegistryExceptionHelper.cs
- MenuItem.cs
- ConfigurationValues.cs
- SQLRoleProvider.cs
- AsyncPostBackErrorEventArgs.cs
- MethodAccessException.cs
- FixedNode.cs
- MulticastOption.cs
- GroupBox.cs
- Int32.cs
- DiscardableAttribute.cs
- XmlSecureResolver.cs
- OpenFileDialog.cs
- ArgumentException.cs
- PeerInvitationResponse.cs
- RawStylusSystemGestureInputReport.cs
- DocumentApplicationJournalEntryEventArgs.cs
- SelectionService.cs
- Expression.DebuggerProxy.cs
- MatchingStyle.cs
- SQLSingle.cs
- SequentialActivityDesigner.cs
- DataPagerCommandEventArgs.cs
- SqlPersonalizationProvider.cs
- CommonProperties.cs
- While.cs
- StopStoryboard.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- SatelliteContractVersionAttribute.cs
- AsyncCompletedEventArgs.cs
- ConvertersCollection.cs
- MultiBinding.cs
- SyncMethodInvoker.cs
- _ContextAwareResult.cs
- TrackingServices.cs
- StrokeNodeData.cs
- ComplexType.cs
- ResourceDisplayNameAttribute.cs
- SpecularMaterial.cs
- CaseInsensitiveComparer.cs
- Normalization.cs
- ConsumerConnectionPointCollection.cs
- RuleInfoComparer.cs
- ListenerConnectionModeReader.cs
- SystemIcons.cs
- DetailsViewPagerRow.cs
- OpacityConverter.cs
- OleDbConnectionFactory.cs
- ConstructorExpr.cs
- PolicyAssertionCollection.cs
- UncommonField.cs
- InitializationEventAttribute.cs
- ViewStateModeByIdAttribute.cs
- Brushes.cs
- TraceRecord.cs
- Listbox.cs
- XmlAnyElementAttributes.cs
- indexingfiltermarshaler.cs
- TextBoxLine.cs
- StatusBarDrawItemEvent.cs
- DescendantBaseQuery.cs
- RefType.cs
- MarginCollapsingState.cs
- TextStore.cs
- WasAdminWrapper.cs
- StylusButtonCollection.cs
- SqlDataSourceConfigureSelectPanel.cs
- HwndHost.cs
- NativeMethods.cs