Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Metadata / ObjectLayer / KnownAssemblyEntry.cs / 1305376 / KnownAssemblyEntry.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System.Collections.Generic; using System.Reflection; using System.Diagnostics; namespace System.Data.Metadata.Edm { internal sealed class KnownAssemblyEntry { private readonly AssemblyCacheEntry _cacheEntry; private bool _referencedAssembliesAreLoaded; private bool _seenWithEdmItemCollection; internal KnownAssemblyEntry(AssemblyCacheEntry cacheEntry, bool seenWithEdmItemCollection) { Debug.Assert(cacheEntry != null, "Found a null cacheEntry"); _cacheEntry = cacheEntry; _referencedAssembliesAreLoaded = false; _seenWithEdmItemCollection = seenWithEdmItemCollection; } internal AssemblyCacheEntry CacheEntry { get { return _cacheEntry; } } public bool ReferencedAssembliesAreLoaded { get { return _referencedAssembliesAreLoaded; } set { _referencedAssembliesAreLoaded = value; } } public bool SeenWithEdmItemCollection { get { return _seenWithEdmItemCollection; } set { _seenWithEdmItemCollection = value; } } public bool HaveSeenInCompatibleContext(object loaderCookie, EdmItemCollection itemCollection) { // a new "context" is only when we have not seen this assembly with an itemCollection that is non-null // and we now have a non-null itemCollection, and we are not already in AttributeLoader mode. return SeenWithEdmItemCollection || itemCollection == null || ObjectItemAssemblyLoader.IsAttributeLoader(loaderCookie); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- GetWinFXPath.cs
- ProbeDuplexCD1AsyncResult.cs
- MetadataArtifactLoaderFile.cs
- ObjectContextServiceProvider.cs
- ZipIOCentralDirectoryFileHeader.cs
- DbProviderConfigurationHandler.cs
- EventArgs.cs
- QueryStringParameter.cs
- ServiceAppDomainAssociationProvider.cs
- ExtensibleClassFactory.cs
- TextPointerBase.cs
- BrowserCapabilitiesCompiler.cs
- SecurityDocument.cs
- ResourcePool.cs
- ObjectStateManager.cs
- HierarchicalDataBoundControl.cs
- AppDomainInstanceProvider.cs
- EllipseGeometry.cs
- NetworkInterface.cs
- Control.cs
- VisualStyleElement.cs
- Authorization.cs
- DependencyPropertyValueSerializer.cs
- WindowsTab.cs
- GeneralTransform3DGroup.cs
- ClearTypeHintValidation.cs
- InheritanceContextHelper.cs
- XmlSchemaAnnotated.cs
- DataPagerFieldItem.cs
- ToolStripLocationCancelEventArgs.cs
- Pair.cs
- TypeConverterValueSerializer.cs
- __Filters.cs
- WindowsListViewItemCheckBox.cs
- Bidi.cs
- ToolStripItem.cs
- BehaviorDragDropEventArgs.cs
- XamlReaderHelper.cs
- Parameter.cs
- WebConvert.cs
- PackWebResponse.cs
- VariableValue.cs
- DesignerTextBoxAdapter.cs
- SoapDocumentMethodAttribute.cs
- Attributes.cs
- DocumentSchemaValidator.cs
- Graph.cs
- TransformCollection.cs
- UndirectedGraph.cs
- NamespaceList.cs
- KeyInterop.cs
- AutomationPatternInfo.cs
- MultiAsyncResult.cs
- SqlUserDefinedTypeAttribute.cs
- HttpClientProtocol.cs
- XPathNodeIterator.cs
- SoapInteropTypes.cs
- ReachDocumentPageSerializer.cs
- NodeInfo.cs
- HashLookup.cs
- XamlFilter.cs
- OdbcConnection.cs
- XmlSchemaComplexContentRestriction.cs
- AsyncOperation.cs
- TranslateTransform3D.cs
- WhereaboutsReader.cs
- XmlTypeAttribute.cs
- SchemaEntity.cs
- DataTableMapping.cs
- AutomationPatternInfo.cs
- NaturalLanguageHyphenator.cs
- VirtualPath.cs
- TextServicesCompartmentContext.cs
- PropertyChangingEventArgs.cs
- _ListenerRequestStream.cs
- CodeCastExpression.cs
- UiaCoreApi.cs
- SafeTokenHandle.cs
- ParseChildrenAsPropertiesAttribute.cs
- RtfControlWordInfo.cs
- WmlCalendarAdapter.cs
- StylusShape.cs
- DeferredElementTreeState.cs
- PartManifestEntry.cs
- SelectionProcessor.cs
- DoubleCollectionValueSerializer.cs
- DataListCommandEventArgs.cs
- XmlTextReaderImplHelpers.cs
- AttachedPropertyMethodSelector.cs
- ListViewItem.cs
- HtmlControlPersistable.cs
- DeviceFilterEditorDialog.cs
- MemberProjectedSlot.cs
- BindingExpressionBase.cs
- CqlBlock.cs
- DescendantOverDescendantQuery.cs
- GifBitmapDecoder.cs
- IndependentAnimationStorage.cs
- ExtensibleClassFactory.cs
- TransformGroup.cs