Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Metadata / ObjectLayer / ImmutableAssemblyCacheEntry.cs / 1305376 / ImmutableAssemblyCacheEntry.cs
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner [....]
// @backupOwner [....]
//---------------------------------------------------------------------
using System.Collections.Generic;
using System.Reflection;
namespace System.Data.Metadata.Edm
{
internal partial class ImmutableAssemblyCacheEntry : AssemblyCacheEntry
{
// types in "this" assembly
private readonly System.Collections.ObjectModel.ReadOnlyCollection _typesInAssembly;
// other assemblies referenced by types we care about in "this" assembly
private readonly System.Collections.ObjectModel.ReadOnlyCollection _closureAssemblies;
internal ImmutableAssemblyCacheEntry(MutableAssemblyCacheEntry mutableEntry)
{
_typesInAssembly = new List(mutableEntry.TypesInAssembly).AsReadOnly();
_closureAssemblies = new List(mutableEntry.ClosureAssemblies).AsReadOnly();
}
internal override IList TypesInAssembly
{
get { return _typesInAssembly; }
}
internal override IList ClosureAssemblies
{
get { return _closureAssemblies; }
}
}
}
// 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;
namespace System.Data.Metadata.Edm
{
internal partial class ImmutableAssemblyCacheEntry : AssemblyCacheEntry
{
// types in "this" assembly
private readonly System.Collections.ObjectModel.ReadOnlyCollection _typesInAssembly;
// other assemblies referenced by types we care about in "this" assembly
private readonly System.Collections.ObjectModel.ReadOnlyCollection _closureAssemblies;
internal ImmutableAssemblyCacheEntry(MutableAssemblyCacheEntry mutableEntry)
{
_typesInAssembly = new List(mutableEntry.TypesInAssembly).AsReadOnly();
_closureAssemblies = new List(mutableEntry.ClosureAssemblies).AsReadOnly();
}
internal override IList TypesInAssembly
{
get { return _typesInAssembly; }
}
internal override IList ClosureAssemblies
{
get { return _closureAssemblies; }
}
}
}
// 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
- CodeDomSerializationProvider.cs
- SimpleBitVector32.cs
- XmlBinaryReader.cs
- LiteralTextContainerControlBuilder.cs
- CodeVariableReferenceExpression.cs
- CodeAttributeArgumentCollection.cs
- DataDocumentXPathNavigator.cs
- SemanticResolver.cs
- WebBrowserBase.cs
- ParserStack.cs
- SymbolEqualComparer.cs
- GridEntry.cs
- ListMarkerSourceInfo.cs
- XmlSchemaGroup.cs
- CheckBoxField.cs
- HttpClientCertificate.cs
- ConnectionPointCookie.cs
- SHA384.cs
- PropertyBuilder.cs
- ModelItemExtensions.cs
- DataFormats.cs
- TextAction.cs
- DataView.cs
- ISAPIApplicationHost.cs
- ResourceType.cs
- EUCJPEncoding.cs
- QueryCoreOp.cs
- ArrayConverter.cs
- PrintDialogException.cs
- RepeatButton.cs
- SubclassTypeValidatorAttribute.cs
- CacheMemory.cs
- ToolStripSeparatorRenderEventArgs.cs
- IssuedSecurityTokenProvider.cs
- ReflectionUtil.cs
- Vector3D.cs
- TransformedBitmap.cs
- ZipIOLocalFileHeader.cs
- RegisteredScript.cs
- MSHTMLHost.cs
- IdentityModelDictionary.cs
- CssTextWriter.cs
- SessionStateItemCollection.cs
- MemberListBinding.cs
- XmlTypeAttribute.cs
- QualificationDataAttribute.cs
- SqlClientWrapperSmiStream.cs
- HScrollProperties.cs
- _KerberosClient.cs
- MDIControlStrip.cs
- StringInfo.cs
- EditorPartChrome.cs
- DTCTransactionManager.cs
- RefreshPropertiesAttribute.cs
- controlskin.cs
- KeyProperty.cs
- PasswordTextNavigator.cs
- DesignerCommandAdapter.cs
- ContainerTracking.cs
- InternalPolicyElement.cs
- SharedStream.cs
- ControlType.cs
- SchemaSetCompiler.cs
- SqlDataSourceCommandEventArgs.cs
- TextReturnReader.cs
- TextPenaltyModule.cs
- MemoryPressure.cs
- WebBrowsableAttribute.cs
- TemplateXamlParser.cs
- FormViewModeEventArgs.cs
- ControlCollection.cs
- WSHttpSecurityElement.cs
- SortedSet.cs
- ToolZone.cs
- HTTPNotFoundHandler.cs
- EntityDataSourceStatementEditorForm.cs
- DataSourceProvider.cs
- StringUtil.cs
- StorageBasedPackageProperties.cs
- PrivilegedConfigurationManager.cs
- ThreadExceptionDialog.cs
- CompositeFontFamily.cs
- XhtmlBasicTextBoxAdapter.cs
- ZipIOExtraField.cs
- XamlReader.cs
- Panel.cs
- AbstractSvcMapFileLoader.cs
- CanExecuteRoutedEventArgs.cs
- StatementContext.cs
- UIPropertyMetadata.cs
- CacheOutputQuery.cs
- LinkLabelLinkClickedEvent.cs
- GenericEnumConverter.cs
- XPathQilFactory.cs
- InstancePersistence.cs
- MinMaxParagraphWidth.cs
- IDQuery.cs
- _LoggingObject.cs
- XmlDataLoader.cs
- TextCollapsingProperties.cs