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
- UseLicense.cs
- IPAddressCollection.cs
- TableProviderWrapper.cs
- XmlSerializerVersionAttribute.cs
- SmtpAuthenticationManager.cs
- PageAction.cs
- AppDomainAttributes.cs
- XmlSchemaAttributeGroup.cs
- ExeContext.cs
- OleDbPermission.cs
- XNameConverter.cs
- CharacterHit.cs
- EmptyEnumerable.cs
- AttachedProperty.cs
- SiteMapSection.cs
- WsatConfiguration.cs
- DataGridTable.cs
- Comparer.cs
- DecoderFallbackWithFailureFlag.cs
- BackgroundWorker.cs
- XmlSerializerNamespaces.cs
- ArrayTypeMismatchException.cs
- InvalidProgramException.cs
- ObjectStorage.cs
- HandledMouseEvent.cs
- LicenseContext.cs
- TreeWalkHelper.cs
- CompressEmulationStream.cs
- UInt64Converter.cs
- DataBoundLiteralControl.cs
- MailSettingsSection.cs
- DesignObjectWrapper.cs
- AttributeCollection.cs
- TripleDESCryptoServiceProvider.cs
- Selector.cs
- AutomationPropertyInfo.cs
- WebControl.cs
- ObjectFullSpanRewriter.cs
- SourceCollection.cs
- arc.cs
- ScopelessEnumAttribute.cs
- CharKeyFrameCollection.cs
- ForeignConstraint.cs
- DirectoryNotFoundException.cs
- BitmapEffectState.cs
- TableTextElementCollectionInternal.cs
- HwndSource.cs
- Speller.cs
- Pts.cs
- ComplexType.cs
- COM2Enum.cs
- ProfileService.cs
- InProcStateClientManager.cs
- DataGridTextBox.cs
- sqlstateclientmanager.cs
- HtmlMobileTextWriter.cs
- WorkflowTransactionOptions.cs
- FileUtil.cs
- HttpPostClientProtocol.cs
- ExclusiveTcpTransportManager.cs
- GAC.cs
- AppDomainAttributes.cs
- ButtonChrome.cs
- TableItemPatternIdentifiers.cs
- CheckBoxFlatAdapter.cs
- Helper.cs
- XslNumber.cs
- ConfigurationHelpers.cs
- PtsCache.cs
- ValueType.cs
- LambdaValue.cs
- WebPartConnectionsCloseVerb.cs
- SQLUtility.cs
- SqlCacheDependencyDatabaseCollection.cs
- InvokeHandlers.cs
- AffineTransform3D.cs
- HtmlEncodedRawTextWriter.cs
- SecUtil.cs
- ArcSegment.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- Token.cs
- PackageDigitalSignature.cs
- XmlWrappingWriter.cs
- CheckoutException.cs
- Int32Rect.cs
- HttpProfileBase.cs
- XamlLoadErrorInfo.cs
- ListenUriMode.cs
- SizeChangedEventArgs.cs
- LinqDataSourceDeleteEventArgs.cs
- DesignTimeParseData.cs
- UiaCoreApi.cs
- SQLSingleStorage.cs
- CodeObjectCreateExpression.cs
- TimeStampChecker.cs
- TargetConverter.cs
- ListBindableAttribute.cs
- ByteStreamGeometryContext.cs
- SerializationAttributes.cs
- BaseTemplateParser.cs