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
- ComponentChangedEvent.cs
- ViewStateModeByIdAttribute.cs
- MetabaseServerConfig.cs
- TypefaceMetricsCache.cs
- MessageQueueEnumerator.cs
- QueryReaderSettings.cs
- LinkedList.cs
- FileCodeGroup.cs
- ReplyChannelBinder.cs
- DropTarget.cs
- ControlAdapter.cs
- QilGeneratorEnv.cs
- FontWeightConverter.cs
- ReachDocumentReferenceSerializer.cs
- QilParameter.cs
- SessionEndingEventArgs.cs
- controlskin.cs
- DelegatingTypeDescriptionProvider.cs
- SHA1CryptoServiceProvider.cs
- QueryStringParameter.cs
- CharacterMetrics.cs
- SqlConnectionStringBuilder.cs
- CommittableTransaction.cs
- FontSource.cs
- LiteralControl.cs
- TraceFilter.cs
- DataGridViewColumn.cs
- DictionaryBase.cs
- TdsParserSessionPool.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- PenContext.cs
- ExportOptions.cs
- RetrieveVirtualItemEventArgs.cs
- BooleanFunctions.cs
- ParserContext.cs
- StateItem.cs
- GeometryHitTestParameters.cs
- DotExpr.cs
- UnmanagedHandle.cs
- SafeNativeMethods.cs
- SetIterators.cs
- ExpressionNode.cs
- MasterPageBuildProvider.cs
- BitmapInitialize.cs
- BadImageFormatException.cs
- LogicalTreeHelper.cs
- GeneratedView.cs
- SimpleMailWebEventProvider.cs
- TreeNodeBinding.cs
- RequestNavigateEventArgs.cs
- BinaryObjectWriter.cs
- KeyNameIdentifierClause.cs
- DesignerAdapterAttribute.cs
- XpsPartBase.cs
- serverconfig.cs
- LineMetrics.cs
- RowToParametersTransformer.cs
- SqlStream.cs
- BevelBitmapEffect.cs
- SigningCredentials.cs
- ObjectContextServiceProvider.cs
- WorkflowInstanceSuspendedRecord.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- AsyncDataRequest.cs
- LogAppendAsyncResult.cs
- ContextProperty.cs
- ConfigXmlAttribute.cs
- ControlType.cs
- X509SecurityToken.cs
- TagPrefixCollection.cs
- CompilerState.cs
- ToolStripRenderEventArgs.cs
- RegexStringValidatorAttribute.cs
- CorePropertiesFilter.cs
- XmlDomTextWriter.cs
- TraceUtils.cs
- DBSchemaTable.cs
- ScriptDescriptor.cs
- SystemDropShadowChrome.cs
- SelectorAutomationPeer.cs
- PointConverter.cs
- Query.cs
- ParseNumbers.cs
- CompressEmulationStream.cs
- Socket.cs
- ExpressionReplacer.cs
- NativeMethods.cs
- StateMachineHelpers.cs
- SystemTcpStatistics.cs
- ProfessionalColorTable.cs
- HttpListenerException.cs
- regiisutil.cs
- DataGridViewRowCancelEventArgs.cs
- MasterPageCodeDomTreeGenerator.cs
- AppDomainShutdownMonitor.cs
- ExtendedProperty.cs
- StorageSetMapping.cs
- BuildManagerHost.cs
- Stack.cs
- MasterPageParser.cs