Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- OracleTransaction.cs
- MachineKeyConverter.cs
- AttachmentCollection.cs
- SafeProcessHandle.cs
- ConsumerConnectionPoint.cs
- DeadCharTextComposition.cs
- XhtmlBasicValidatorAdapter.cs
- ListViewDeletedEventArgs.cs
- DataGridComponentEditor.cs
- TagPrefixCollection.cs
- ActiveXSite.cs
- Resources.Designer.cs
- SqlDataSourceView.cs
- ColumnHeaderConverter.cs
- ButtonPopupAdapter.cs
- GestureRecognitionResult.cs
- Or.cs
- ValueSerializer.cs
- WebBrowser.cs
- OdbcCommandBuilder.cs
- _RequestLifetimeSetter.cs
- SafeHandles.cs
- ExceptionAggregator.cs
- TypeConverterHelper.cs
- srgsitem.cs
- QueryCacheEntry.cs
- WebPartUserCapability.cs
- CustomExpression.cs
- mansign.cs
- ImageList.cs
- SchemaImporterExtensionElement.cs
- PrtCap_Base.cs
- SmtpAuthenticationManager.cs
- RegexMatch.cs
- ContravarianceAdapter.cs
- TextSegment.cs
- SessionStateModule.cs
- CngUIPolicy.cs
- SchemaCollectionCompiler.cs
- ColumnMap.cs
- xmlfixedPageInfo.cs
- KnownBoxes.cs
- Int64AnimationBase.cs
- WeakReference.cs
- formatter.cs
- GroupAggregateExpr.cs
- GcSettings.cs
- SerializationObjectManager.cs
- CodeMemberEvent.cs
- ControlParameter.cs
- XamlClipboardData.cs
- EmbeddedObject.cs
- Size.cs
- TemplateEditingService.cs
- CompositeDuplexBindingElement.cs
- BaseDataBoundControlDesigner.cs
- SplineKeyFrames.cs
- Enlistment.cs
- SQLMembershipProvider.cs
- GroupBoxAutomationPeer.cs
- HandlerMappingMemo.cs
- TaskForm.cs
- ListViewDeleteEventArgs.cs
- ListDataHelper.cs
- Mapping.cs
- WindowsFormsHostAutomationPeer.cs
- NonBatchDirectoryCompiler.cs
- WebDescriptionAttribute.cs
- SchemaCollectionCompiler.cs
- SpeechAudioFormatInfo.cs
- ClientSection.cs
- Overlapped.cs
- BasicCommandTreeVisitor.cs
- PerformanceCounterNameAttribute.cs
- SamlSerializer.cs
- CryptoHelper.cs
- DisplayNameAttribute.cs
- EmptyElement.cs
- ExpandCollapsePattern.cs
- DirectionalLight.cs
- DesignerRegion.cs
- ConfigurationManagerHelperFactory.cs
- TempFiles.cs
- MaterialGroup.cs
- ActivityXamlServices.cs
- ComponentConverter.cs
- ChannelSinkStacks.cs
- ContractNamespaceAttribute.cs
- RootProjectionNode.cs
- SegmentInfo.cs
- StandardBindingOptionalReliableSessionElement.cs
- ExcludePathInfo.cs
- FileDialogCustomPlace.cs
- XmlSchemaComplexContentRestriction.cs
- FrugalMap.cs
- HandleExceptionArgs.cs
- EncryptedXml.cs
- AppDomainEvidenceFactory.cs
- Sql8ExpressionRewriter.cs
- SchemaImporter.cs