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
- SamlAssertion.cs
- UpdateExpressionVisitor.cs
- ControlBindingsCollection.cs
- SecureEnvironment.cs
- WindowsNonControl.cs
- MasterPageBuildProvider.cs
- DataRecordObjectView.cs
- SQLMembershipProvider.cs
- DataPager.cs
- EditorZone.cs
- hebrewshape.cs
- VectorCollectionValueSerializer.cs
- RightsManagementEncryptionTransform.cs
- BypassElementCollection.cs
- Lease.cs
- WmiEventSink.cs
- LinkedList.cs
- DataStreamFromComStream.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- SafeRegistryHandle.cs
- externdll.cs
- IItemProperties.cs
- Script.cs
- SecondaryIndex.cs
- TargetParameterCountException.cs
- TextRangeEdit.cs
- PathTooLongException.cs
- ValidationEventArgs.cs
- LinkedResourceCollection.cs
- FactoryGenerator.cs
- ClientTargetSection.cs
- ToolboxItem.cs
- EventMappingSettings.cs
- Substitution.cs
- TdsParameterSetter.cs
- ModifierKeysValueSerializer.cs
- ObjectDataSourceDesigner.cs
- odbcmetadatacollectionnames.cs
- ProjectedWrapper.cs
- CodeExporter.cs
- DocumentAutomationPeer.cs
- RenamedEventArgs.cs
- PropertyPath.cs
- GeometryHitTestResult.cs
- RefreshPropertiesAttribute.cs
- EqualityArray.cs
- ClientRequest.cs
- TypedTableHandler.cs
- DataListItemEventArgs.cs
- ExternalFile.cs
- ListBase.cs
- UnitySerializationHolder.cs
- Shape.cs
- CompleteWizardStep.cs
- COM2PictureConverter.cs
- BooleanProjectedSlot.cs
- SignalGate.cs
- SettingsSection.cs
- NamedObjectList.cs
- PkcsUtils.cs
- __Filters.cs
- MatrixAnimationBase.cs
- HiddenField.cs
- HostedBindingBehavior.cs
- _HTTPDateParse.cs
- EdmProperty.cs
- CancelRequestedRecord.cs
- NullableDoubleSumAggregationOperator.cs
- Rights.cs
- ScriptIgnoreAttribute.cs
- Size.cs
- HtmlInputFile.cs
- CalendarTable.cs
- ClientRuntimeConfig.cs
- HashMembershipCondition.cs
- InputScopeManager.cs
- TreeViewDesigner.cs
- HtmlAnchor.cs
- SapiRecoContext.cs
- DashStyle.cs
- ComboBox.cs
- GAC.cs
- SpecialTypeDataContract.cs
- CompModSwitches.cs
- RichTextBoxAutomationPeer.cs
- WebPartUserCapability.cs
- ResourceCategoryAttribute.cs
- complextypematerializer.cs
- OleDbDataReader.cs
- SQLConvert.cs
- _OverlappedAsyncResult.cs
- View.cs
- WebPageTraceListener.cs
- VBIdentifierTrimConverter.cs
- LogAppendAsyncResult.cs
- WebRequestModuleElement.cs
- ConsoleTraceListener.cs
- GroupByExpressionRewriter.cs
- AQNBuilder.cs
- XmlSchemaSimpleContent.cs