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
- DataControlField.cs
- dataprotectionpermission.cs
- SemanticAnalyzer.cs
- ReferenceSchema.cs
- CDSsyncETWBCLProvider.cs
- ScrollChrome.cs
- ActivityBindForm.cs
- WebPartsPersonalization.cs
- DeadCharTextComposition.cs
- __FastResourceComparer.cs
- SmtpCommands.cs
- SmiEventStream.cs
- XmlSchemaSubstitutionGroup.cs
- _SecureChannel.cs
- DataGridCaption.cs
- CFGGrammar.cs
- Point3D.cs
- AttributeParameterInfo.cs
- TargetException.cs
- SqlAggregateChecker.cs
- MediaTimeline.cs
- MenuItemAutomationPeer.cs
- HttpRawResponse.cs
- DataGridViewCellEventArgs.cs
- FormsAuthenticationEventArgs.cs
- RequestChannel.cs
- Win32NamedPipes.cs
- ErrorInfoXmlDocument.cs
- SessionStateContainer.cs
- DataServices.cs
- Int32AnimationUsingKeyFrames.cs
- OneWayChannelFactory.cs
- QilExpression.cs
- Byte.cs
- NetworkInformationException.cs
- UIPermission.cs
- _CookieModule.cs
- LinkLabelLinkClickedEvent.cs
- XmlReader.cs
- InputQueue.cs
- RuleSet.cs
- ImageListImageEditor.cs
- TemplatePropertyEntry.cs
- XmlDataLoader.cs
- MetadataCacheItem.cs
- CompositeScriptReferenceEventArgs.cs
- FrameworkContextData.cs
- QilBinary.cs
- FileEnumerator.cs
- WebPartMovingEventArgs.cs
- ManagementOperationWatcher.cs
- RegistryPermission.cs
- ListManagerBindingsCollection.cs
- ResourceManager.cs
- TemplateBamlRecordReader.cs
- ProcessModuleDesigner.cs
- EnumType.cs
- DocumentSequence.cs
- TypeSystem.cs
- ShadowGlyph.cs
- PrimitiveXmlSerializers.cs
- StrokeRenderer.cs
- CheckBox.cs
- AutoCompleteStringCollection.cs
- EntityDataSourceDesigner.cs
- BindingList.cs
- RowToFieldTransformer.cs
- PrintPageEvent.cs
- TreeNodeCollection.cs
- assemblycache.cs
- SelectionUIHandler.cs
- CfgParser.cs
- RuntimeArgumentHandle.cs
- ConsoleEntryPoint.cs
- DesignerHost.cs
- CompiledRegexRunner.cs
- ToolStripOverflow.cs
- DataListItemCollection.cs
- XmlSchemaType.cs
- Soap.cs
- ZipPackage.cs
- PropertyCondition.cs
- DocumentGridContextMenu.cs
- DocumentSequence.cs
- UnsafeNetInfoNativeMethods.cs
- PanelContainerDesigner.cs
- FileRecordSequenceCompletedAsyncResult.cs
- WaveHeader.cs
- HttpStreams.cs
- JavaScriptObjectDeserializer.cs
- Instrumentation.cs
- AccessDataSourceWizardForm.cs
- BuildProviderAppliesToAttribute.cs
- UserControlParser.cs
- PathData.cs
- SingleConverter.cs
- TableCell.cs
- UserPreferenceChangingEventArgs.cs
- OrderedDictionary.cs
- DataColumnMapping.cs