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
- IdentityManager.cs
- ClientSettings.cs
- CompositionAdorner.cs
- ImmutableObjectAttribute.cs
- StatusBarAutomationPeer.cs
- SystemEvents.cs
- UserControlBuildProvider.cs
- ConfigurationLockCollection.cs
- WebServiceEnumData.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- RichTextBoxAutomationPeer.cs
- DataSourceCacheDurationConverter.cs
- SchemaConstraints.cs
- Graphics.cs
- CurrentTimeZone.cs
- ModuleBuilderData.cs
- WindowsFormsSynchronizationContext.cs
- SqlNamer.cs
- ObjectKeyFrameCollection.cs
- _StreamFramer.cs
- Set.cs
- ToolBarOverflowPanel.cs
- SoapEnumAttribute.cs
- SspiNegotiationTokenProviderState.cs
- StopStoryboard.cs
- RootProfilePropertySettingsCollection.cs
- ImageIndexConverter.cs
- HtmlInputFile.cs
- OperationAbortedException.cs
- GridPattern.cs
- ByteStorage.cs
- SQLBinaryStorage.cs
- RuntimeHelpers.cs
- Rect3D.cs
- _BufferOffsetSize.cs
- Trigger.cs
- NetCodeGroup.cs
- DynamicMethod.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- RealProxy.cs
- RadioButton.cs
- BeginGetFileNameFromUserRequest.cs
- ProfileManager.cs
- CodeTryCatchFinallyStatement.cs
- GatewayIPAddressInformationCollection.cs
- Logging.cs
- MaskedTextBoxTextEditor.cs
- Repeater.cs
- Item.cs
- WorkflowRuntimeServiceElement.cs
- PrintController.cs
- ObjectSet.cs
- Pair.cs
- MetaModel.cs
- VisualBrush.cs
- CheckBoxRenderer.cs
- ProviderUtil.cs
- KeyValueSerializer.cs
- ThrowHelper.cs
- HttpModule.cs
- ElementProxy.cs
- GeneralTransformCollection.cs
- FloaterBaseParagraph.cs
- input.cs
- SystemNetworkInterface.cs
- MulticastIPAddressInformationCollection.cs
- DoubleLinkListEnumerator.cs
- ViewStateModeByIdAttribute.cs
- SafeNativeMethods.cs
- wgx_sdk_version.cs
- UnicastIPAddressInformationCollection.cs
- SupportsPreviewControlAttribute.cs
- XmlNullResolver.cs
- AutomationElementIdentifiers.cs
- WebPartDescriptionCollection.cs
- NestedContainer.cs
- DockPatternIdentifiers.cs
- ScaleTransform.cs
- CmsInterop.cs
- CallbackValidatorAttribute.cs
- MessageSecurityOverHttp.cs
- PageEventArgs.cs
- ListDictionary.cs
- Pen.cs
- DataServiceRequestOfT.cs
- TrackingProvider.cs
- ThemeableAttribute.cs
- DataServiceBuildProvider.cs
- SecurityManager.cs
- CodeCompileUnit.cs
- SchemaCollectionPreprocessor.cs
- DataGridAutoFormatDialog.cs
- HttpWriter.cs
- HtmlForm.cs
- DateTimeValueSerializerContext.cs
- GridLengthConverter.cs
- XmlSignatureProperties.cs
- ItemChangedEventArgs.cs
- PointCollectionValueSerializer.cs
- RemoteWebConfigurationHostServer.cs