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
- SafeMILHandle.cs
- ListenerSessionConnection.cs
- RequestStatusBarUpdateEventArgs.cs
- GeneralTransform.cs
- XmlCompatibilityReader.cs
- UpdateCompiler.cs
- DataBindingHandlerAttribute.cs
- BitmapSourceSafeMILHandle.cs
- ThrowHelper.cs
- FrameworkContextData.cs
- SortedSetDebugView.cs
- BuildManagerHost.cs
- SqlCommand.cs
- ServiceOperation.cs
- XamlBuildTaskServices.cs
- NullableFloatSumAggregationOperator.cs
- AssemblyAttributesGoHere.cs
- basecomparevalidator.cs
- DesignerExtenders.cs
- WindowsIPAddress.cs
- InstanceCreationEditor.cs
- AuthenticationException.cs
- MetaTable.cs
- FunctionDetailsReader.cs
- TransportReplyChannelAcceptor.cs
- WaitHandleCannotBeOpenedException.cs
- SafeArrayRankMismatchException.cs
- RestrictedTransactionalPackage.cs
- GenericTypeParameterBuilder.cs
- PocoEntityKeyStrategy.cs
- MenuBase.cs
- ExtractCollection.cs
- MemberMaps.cs
- Int16Animation.cs
- MonthChangedEventArgs.cs
- ExternalException.cs
- validation.cs
- FileLogRecordStream.cs
- Stroke2.cs
- CodeExporter.cs
- Pens.cs
- Mouse.cs
- GlobalAllocSafeHandle.cs
- RichTextBoxConstants.cs
- TextRangeBase.cs
- ISFClipboardData.cs
- ReadOnlyPropertyMetadata.cs
- AnchoredBlock.cs
- RemoteHelper.cs
- RuntimeResourceSet.cs
- Validator.cs
- ScriptControl.cs
- EntityModelBuildProvider.cs
- OdbcInfoMessageEvent.cs
- AnchorEditor.cs
- MenuItemBindingCollection.cs
- ListViewUpdatedEventArgs.cs
- RefType.cs
- Condition.cs
- ClientSettingsSection.cs
- Matrix.cs
- ExtendedProtectionPolicy.cs
- XmlFileEditor.cs
- COM2TypeInfoProcessor.cs
- updateconfighost.cs
- RepeatInfo.cs
- HtmlLabelAdapter.cs
- ButtonBaseAdapter.cs
- BinaryMethodMessage.cs
- IndependentAnimationStorage.cs
- SocketElement.cs
- SqlUtils.cs
- StructuredType.cs
- CacheSection.cs
- PropertyValueChangedEvent.cs
- TimelineCollection.cs
- WebPartManagerInternals.cs
- HierarchicalDataBoundControl.cs
- OracleDataReader.cs
- QueryResponse.cs
- ColorConverter.cs
- WebServiceMethodData.cs
- StylusDevice.cs
- AspNetSynchronizationContext.cs
- StandardTransformFactory.cs
- DataGridViewCellPaintingEventArgs.cs
- SmiContext.cs
- ResponseBodyWriter.cs
- AttributeUsageAttribute.cs
- ConfigurationElementCollection.cs
- RepeatButton.cs
- TypeLoadException.cs
- OdbcConnection.cs
- RealProxy.cs
- Currency.cs
- UpdateTracker.cs
- InternalsVisibleToAttribute.cs
- DocumentEventArgs.cs
- RelationshipManager.cs
- ValidatorCompatibilityHelper.cs