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
- ConfigXmlComment.cs
- _TLSstream.cs
- GacUtil.cs
- Transform3DGroup.cs
- RootAction.cs
- StringFunctions.cs
- Encoding.cs
- Rect.cs
- StringUtil.cs
- CurrentTimeZone.cs
- InputMethod.cs
- FlowPosition.cs
- SymLanguageType.cs
- GetCryptoTransformRequest.cs
- ServiceDocumentFormatter.cs
- RepeaterCommandEventArgs.cs
- UserControlParser.cs
- CallbackValidatorAttribute.cs
- ADMembershipUser.cs
- WSDualHttpBindingElement.cs
- DataPagerFieldItem.cs
- PropertyTab.cs
- CharacterHit.cs
- Menu.cs
- EntityKeyElement.cs
- RenderCapability.cs
- Mouse.cs
- XmlCharType.cs
- EmptyElement.cs
- RegexCompiler.cs
- ViewGenResults.cs
- TextServicesCompartment.cs
- WmpBitmapDecoder.cs
- EntityClientCacheKey.cs
- DataGridViewCellValueEventArgs.cs
- SmiXetterAccessMap.cs
- KerberosReceiverSecurityToken.cs
- HandlerBase.cs
- recordstate.cs
- SimpleColumnProvider.cs
- ComponentConverter.cs
- PageParser.cs
- x509utils.cs
- PageSetupDialog.cs
- AtomServiceDocumentSerializer.cs
- IteratorDescriptor.cs
- ImageBrush.cs
- WorkflowMarkupSerializationException.cs
- _NegoState.cs
- LineMetrics.cs
- Point3DConverter.cs
- CachingHintValidation.cs
- OdbcDataAdapter.cs
- TransformedBitmap.cs
- Regex.cs
- PolyBezierSegmentFigureLogic.cs
- GradientPanel.cs
- TextEditor.cs
- CharacterString.cs
- XdrBuilder.cs
- IUnknownConstantAttribute.cs
- CommandID.cs
- X509Utils.cs
- ModelItemCollectionImpl.cs
- WindowsPen.cs
- HandleExceptionArgs.cs
- MsmqUri.cs
- DiscoveryMessageSequence11.cs
- WeakKeyDictionary.cs
- TableCellAutomationPeer.cs
- ValidationPropertyAttribute.cs
- OracleCommandSet.cs
- WebContext.cs
- XmlValidatingReaderImpl.cs
- XmlIlGenerator.cs
- configsystem.cs
- DecimalAnimation.cs
- templategroup.cs
- TagPrefixCollection.cs
- TdsParserHelperClasses.cs
- HtmlImage.cs
- TextElementEnumerator.cs
- SingleBodyParameterMessageFormatter.cs
- ChangePassword.cs
- OutOfProcStateClientManager.cs
- ConfigurationFileMap.cs
- BaseComponentEditor.cs
- RenderingEventArgs.cs
- GeometryModel3D.cs
- TextBoxBase.cs
- NegatedCellConstant.cs
- ExpressionBindings.cs
- ControlCollection.cs
- PrtCap_Reader.cs
- ClosableStream.cs
- FormsAuthenticationEventArgs.cs
- PeerHopCountAttribute.cs
- PngBitmapEncoder.cs
- ConfigXmlReader.cs
- ListViewGroup.cs