Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- EdmSchemaError.cs
- ExeConfigurationFileMap.cs
- LineBreakRecord.cs
- XPathNodeIterator.cs
- FixedSOMFixedBlock.cs
- DivideByZeroException.cs
- WarningException.cs
- PersonalizationProvider.cs
- ImageDrawing.cs
- ParserContext.cs
- Model3DGroup.cs
- Constraint.cs
- DetailsViewUpdateEventArgs.cs
- VolatileEnlistmentState.cs
- PreloadHost.cs
- AdornerHitTestResult.cs
- KeyEvent.cs
- ListItemParagraph.cs
- GeneratedView.cs
- Console.cs
- CreateUserWizard.cs
- XsltSettings.cs
- RolePrincipal.cs
- FileDialog.cs
- XmlParserContext.cs
- LOSFormatter.cs
- HttpResponseHeader.cs
- ReplyChannelBinder.cs
- CodeCommentStatementCollection.cs
- DataFieldConverter.cs
- SchemaImporter.cs
- SR.cs
- WebPartConnection.cs
- JavaScriptString.cs
- DrawingGroup.cs
- DesignBinding.cs
- Schema.cs
- BindingNavigator.cs
- MdiWindowListItemConverter.cs
- NonParentingControl.cs
- MultipartContentParser.cs
- XsdDateTime.cs
- PropertyToken.cs
- ValueTypeFixupInfo.cs
- prompt.cs
- SyncMethodInvoker.cs
- SplitContainerDesigner.cs
- __Error.cs
- HtmlButton.cs
- PlanCompilerUtil.cs
- RSAProtectedConfigurationProvider.cs
- SqlCacheDependencyDatabase.cs
- AttachedPropertyBrowsableAttribute.cs
- messageonlyhwndwrapper.cs
- BuilderPropertyEntry.cs
- StateItem.cs
- MailWriter.cs
- LifetimeServices.cs
- DataTableReader.cs
- GridViewColumn.cs
- _IPv6Address.cs
- Journal.cs
- UserUseLicenseDictionaryLoader.cs
- SafeBitVector32.cs
- MethodBuilderInstantiation.cs
- TagPrefixInfo.cs
- FormsAuthenticationEventArgs.cs
- DockPanel.cs
- ZipIOExtraFieldElement.cs
- Matrix3DConverter.cs
- SchemaNames.cs
- RewritingValidator.cs
- QueueSurrogate.cs
- ConditionalAttribute.cs
- Int32CollectionValueSerializer.cs
- DiagnosticsElement.cs
- CompilerHelpers.cs
- ScriptServiceAttribute.cs
- Cursors.cs
- ConfigurationLocationCollection.cs
- WSSecurityPolicy12.cs
- OperatingSystem.cs
- RelationshipDetailsRow.cs
- HostedElements.cs
- CompilerLocalReference.cs
- BezierSegment.cs
- SiteMapPath.cs
- CommonGetThemePartSize.cs
- KeyValueInternalCollection.cs
- EntityDataSourceDesignerHelper.cs
- CategoryAttribute.cs
- DocumentSequence.cs
- TypedMessageConverter.cs
- ObjectHandle.cs
- ObjectViewQueryResultData.cs
- DataFormats.cs
- ProtocolViolationException.cs
- SchemaTypeEmitter.cs
- RecordBuilder.cs
- JavaScriptObjectDeserializer.cs