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
- InputReport.cs
- xdrvalidator.cs
- ParseHttpDate.cs
- DateTimeOffset.cs
- OperationContext.cs
- SafeSecurityHelper.cs
- EntityDataSourceDataSelectionPanel.cs
- GlobalizationSection.cs
- dataobject.cs
- StringDictionaryEditor.cs
- FileVersion.cs
- HandleTable.cs
- AutomationAttributeInfo.cs
- IncrementalReadDecoders.cs
- TargetConverter.cs
- BitmapCodecInfo.cs
- ElementUtil.cs
- AppSettingsExpressionBuilder.cs
- ReadOnlyPropertyMetadata.cs
- ConversionContext.cs
- SystemBrushes.cs
- EmptyEnumerable.cs
- DataGridViewCellStyleConverter.cs
- GZipDecoder.cs
- DataRecord.cs
- RootBuilder.cs
- IResourceProvider.cs
- ToolStripInSituService.cs
- ManagedWndProcTracker.cs
- CompatibleComparer.cs
- AuthorizationRule.cs
- ReadOnlyHierarchicalDataSource.cs
- BitmapSourceSafeMILHandle.cs
- StickyNote.cs
- ThicknessKeyFrameCollection.cs
- XPathException.cs
- PointConverter.cs
- RootProjectionNode.cs
- EnumType.cs
- SerializableAttribute.cs
- BevelBitmapEffect.cs
- StringCollection.cs
- GridSplitter.cs
- AssemblyCollection.cs
- BCLDebug.cs
- TdsValueSetter.cs
- assemblycache.cs
- SafeBitVector32.cs
- DataGridTemplateColumn.cs
- EventMappingSettings.cs
- BulletChrome.cs
- StylusPlugInCollection.cs
- Drawing.cs
- ParameterDataSourceExpression.cs
- BoolExpr.cs
- FollowerQueueCreator.cs
- X509AudioLogo.cs
- MailWebEventProvider.cs
- XPathException.cs
- CustomServiceCredentials.cs
- UDPClient.cs
- ProviderIncompatibleException.cs
- FormsAuthenticationUserCollection.cs
- WindowsNonControl.cs
- IDQuery.cs
- DefaultMergeHelper.cs
- ScriptResourceInfo.cs
- TypeElement.cs
- AccessControlList.cs
- AuthenticodeSignatureInformation.cs
- _UncName.cs
- ComEventsMethod.cs
- SiteMapSection.cs
- UnsafeNativeMethods.cs
- ObjectQuery.cs
- FixedTextPointer.cs
- smtpconnection.cs
- ReversePositionQuery.cs
- GuidelineCollection.cs
- StructuralCache.cs
- Drawing.cs
- TreeViewImageKeyConverter.cs
- ToolStripPanelRenderEventArgs.cs
- Emitter.cs
- StringUtil.cs
- IisTraceListener.cs
- Size.cs
- ParseChildrenAsPropertiesAttribute.cs
- FacetValues.cs
- HttpMethodConstraint.cs
- CategoryGridEntry.cs
- Bookmark.cs
- TextEditorDragDrop.cs
- AssemblySettingAttributes.cs
- AssertSection.cs
- ToolStripGripRenderEventArgs.cs
- GridViewEditEventArgs.cs
- QueryCacheKey.cs
- FileSystemWatcher.cs
- TabItemWrapperAutomationPeer.cs