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
- XmlSchemaValidationException.cs
- HostAdapter.cs
- RtfToken.cs
- DispatcherTimer.cs
- User.cs
- ActivityExecutorOperation.cs
- MaskInputRejectedEventArgs.cs
- CapabilitiesAssignment.cs
- ExpressionDumper.cs
- BitmapPalettes.cs
- XPathNodeHelper.cs
- FixedSOMPage.cs
- DeclaredTypeValidatorAttribute.cs
- XmlTypeAttribute.cs
- ImageCodecInfo.cs
- ProviderUtil.cs
- ListViewGroupConverter.cs
- DesignerCategoryAttribute.cs
- WhereaboutsReader.cs
- arabicshape.cs
- WebPartEditorCancelVerb.cs
- RSAOAEPKeyExchangeDeformatter.cs
- Visual3DCollection.cs
- FormatControl.cs
- JumpPath.cs
- DesignerView.Commands.cs
- TemplateNameScope.cs
- InstanceDataCollection.cs
- TextEditorLists.cs
- BitStream.cs
- ImageButton.cs
- CheckBoxAutomationPeer.cs
- TrustVersion.cs
- EnumerableRowCollection.cs
- ClickablePoint.cs
- TextEditorMouse.cs
- PropertyTabAttribute.cs
- DesignerOptionService.cs
- SpecialFolderEnumConverter.cs
- ControlDesignerState.cs
- RsaEndpointIdentity.cs
- SafeHandles.cs
- ExpressionVisitor.cs
- LogWriteRestartAreaAsyncResult.cs
- Page.cs
- ThrowHelper.cs
- SchemaObjectWriter.cs
- DynamicValidatorEventArgs.cs
- Wildcard.cs
- DataServiceClientException.cs
- EmptyWithCancelationCheckWorkItem.cs
- ElementNotEnabledException.cs
- Pool.cs
- ActivityMetadata.cs
- MemberInfoSerializationHolder.cs
- SmtpDigestAuthenticationModule.cs
- EntityDesignerDataSourceView.cs
- DbConnectionStringBuilder.cs
- OdbcError.cs
- TextEditorThreadLocalStore.cs
- DocumentSequence.cs
- CommandField.cs
- SizeFConverter.cs
- SymmetricKeyWrap.cs
- FlowLayoutPanelDesigner.cs
- DiscardableAttribute.cs
- XmlSignatureProperties.cs
- WebBrowserNavigatedEventHandler.cs
- SkinBuilder.cs
- GreenMethods.cs
- CodeAttachEventStatement.cs
- EncoderReplacementFallback.cs
- KeyGestureConverter.cs
- SessionStateUtil.cs
- ParseHttpDate.cs
- ServerValidateEventArgs.cs
- MultilineStringConverter.cs
- RectAnimationBase.cs
- OleDbEnumerator.cs
- dtdvalidator.cs
- AQNBuilder.cs
- Trace.cs
- ReadOnlyMetadataCollection.cs
- ShaderRenderModeValidation.cs
- PointIndependentAnimationStorage.cs
- sitestring.cs
- SlotInfo.cs
- AppearanceEditorPart.cs
- _AutoWebProxyScriptEngine.cs
- EdmConstants.cs
- ParserContext.cs
- SoapExtension.cs
- ProgressBarHighlightConverter.cs
- Run.cs
- HttpCapabilitiesBase.cs
- VirtualizingStackPanel.cs
- EventHandlers.cs
- TransformerInfoCollection.cs
- DefaultClaimSet.cs
- ViewgenGatekeeper.cs