Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- PolicyDesigner.cs
- _ScatterGatherBuffers.cs
- MetafileHeader.cs
- TableColumn.cs
- ThreadStaticAttribute.cs
- mactripleDES.cs
- HttpListenerTimeoutManager.cs
- PrintPageEvent.cs
- MDIClient.cs
- AdapterUtil.cs
- CustomPopupPlacement.cs
- DrawingAttributes.cs
- CollectionViewGroupRoot.cs
- CryptoConfig.cs
- XmlNodeChangedEventManager.cs
- FixedNode.cs
- DocumentGridContextMenu.cs
- Int32AnimationUsingKeyFrames.cs
- XmlSchemaAttribute.cs
- BooleanFunctions.cs
- InstanceDescriptor.cs
- SafeHandles.cs
- NotifyParentPropertyAttribute.cs
- ResourcePool.cs
- NamedPipeActivation.cs
- TreeNodeEventArgs.cs
- SerializationAttributes.cs
- RepeaterItemEventArgs.cs
- EtwTrace.cs
- Crc32.cs
- ActivityScheduledQuery.cs
- log.cs
- Double.cs
- SoapHttpTransportImporter.cs
- X509CertificateClaimSet.cs
- CustomExpressionEventArgs.cs
- XmlToDatasetMap.cs
- ProtocolsConfiguration.cs
- DatePickerAutomationPeer.cs
- XmlSchemaInferenceException.cs
- PrimarySelectionGlyph.cs
- Converter.cs
- XmlArrayItemAttribute.cs
- PersianCalendar.cs
- EntityConnection.cs
- WrappedReader.cs
- BitmapSourceSafeMILHandle.cs
- SettingsPropertyWrongTypeException.cs
- TaskHelper.cs
- DependencyObjectType.cs
- LifetimeServices.cs
- SoapTypeAttribute.cs
- Funcletizer.cs
- FormatterConverter.cs
- SqlDataReaderSmi.cs
- PageClientProxyGenerator.cs
- PerformanceCounterCategory.cs
- Image.cs
- WindowsToolbar.cs
- ComPlusContractBehavior.cs
- ReplacementText.cs
- RawAppCommandInputReport.cs
- WebPartsPersonalization.cs
- UInt32Converter.cs
- CompilerGeneratedAttribute.cs
- BaseAsyncResult.cs
- FontResourceCache.cs
- FixedTextBuilder.cs
- CharacterMetrics.cs
- CodeDirectoryCompiler.cs
- SqlDependencyUtils.cs
- XPathNode.cs
- Expression.cs
- DataViewSetting.cs
- DataRowView.cs
- ToolStripRenderEventArgs.cs
- LockCookie.cs
- PreviewPrintController.cs
- RouteParametersHelper.cs
- RequestSecurityTokenResponse.cs
- counter.cs
- AttributeEmitter.cs
- HitTestWithPointDrawingContextWalker.cs
- SchemaEntity.cs
- TypeConverter.cs
- Compensation.cs
- FontUnit.cs
- CommandHelpers.cs
- BinaryMethodMessage.cs
- LicenseException.cs
- XmlSchemaObjectCollection.cs
- LoadWorkflowCommand.cs
- Int32AnimationBase.cs
- PenThreadPool.cs
- OpenTypeMethods.cs
- ProviderCollection.cs
- CodeConditionStatement.cs
- HitTestWithGeometryDrawingContextWalker.cs
- ListBox.cs
- TraceSection.cs