Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------- //// 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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DetailsViewDeleteEventArgs.cs
- CompleteWizardStep.cs
- BrowserCapabilitiesFactoryBase.cs
- SqlDataSourceCommandEventArgs.cs
- ChineseLunisolarCalendar.cs
- FixUp.cs
- RequiredFieldValidator.cs
- GeneralTransform3DTo2DTo3D.cs
- TextServicesHost.cs
- HtmlTextArea.cs
- DataGridState.cs
- MenuItemCollectionEditorDialog.cs
- XmlSerializerFaultFormatter.cs
- ExpressionsCollectionEditor.cs
- SafeNativeMethodsMilCoreApi.cs
- SqlRowUpdatingEvent.cs
- SafeEventLogWriteHandle.cs
- UInt64Storage.cs
- FlowPosition.cs
- Bidi.cs
- Pointer.cs
- LoginCancelEventArgs.cs
- _ChunkParse.cs
- Expression.DebuggerProxy.cs
- ListItemCollection.cs
- HttpException.cs
- PaginationProgressEventArgs.cs
- SqlDataSourceCommandEventArgs.cs
- WSAddressing10ProblemHeaderQNameFault.cs
- ButtonFieldBase.cs
- WeakReferenceList.cs
- HandlerFactoryCache.cs
- HttpListenerContext.cs
- StylusPointCollection.cs
- SubstitutionDesigner.cs
- InplaceBitmapMetadataWriter.cs
- NominalTypeEliminator.cs
- WebChannelFactory.cs
- altserialization.cs
- OrthographicCamera.cs
- PageParser.cs
- NotifyInputEventArgs.cs
- UInt32Storage.cs
- ObjectDataSourceDisposingEventArgs.cs
- ReferencedAssembly.cs
- XmlConvert.cs
- RequestTimeoutManager.cs
- DurableTimerExtension.cs
- ColorConvertedBitmap.cs
- GroupItemAutomationPeer.cs
- LogWriteRestartAreaAsyncResult.cs
- ArraySortHelper.cs
- OptimalTextSource.cs
- GC.cs
- TextEditor.cs
- ResourceIDHelper.cs
- LayoutManager.cs
- Point3DValueSerializer.cs
- WebPartUtil.cs
- ScriptReferenceEventArgs.cs
- ResXBuildProvider.cs
- OdbcConnectionFactory.cs
- QilChoice.cs
- DefaultBinder.cs
- PrePostDescendentsWalker.cs
- CapabilitiesState.cs
- DataGridViewTextBoxEditingControl.cs
- COM2ExtendedBrowsingHandler.cs
- CqlErrorHelper.cs
- BigInt.cs
- ConfigurationElement.cs
- Font.cs
- CorrelationInitializer.cs
- XmlSchemaGroupRef.cs
- GifBitmapEncoder.cs
- Certificate.cs
- RequestCachePolicyConverter.cs
- DebuggerAttributes.cs
- NavigationExpr.cs
- MimeParameter.cs
- ThousandthOfEmRealPoints.cs
- ReliabilityContractAttribute.cs
- MimePart.cs
- CharUnicodeInfo.cs
- ExpressionEditorAttribute.cs
- CatalogZoneBase.cs
- DetailsViewPagerRow.cs
- BitmapFrameEncode.cs
- XmlSchemaObjectCollection.cs
- XMLDiffLoader.cs
- TypeToken.cs
- AppearanceEditorPart.cs
- CompoundFileStorageReference.cs
- SoapIgnoreAttribute.cs
- LostFocusEventManager.cs
- ModelItem.cs
- AnnotationElement.cs
- RuleInfoComparer.cs
- ItemChangedEventArgs.cs
- Metafile.cs