Updates referencesource to .NET 4.7
[mono-project.git] / mcs / class / referencesource / System.Data.Entity / System / Data / Metadata / ObjectLayer / ImmutableAssemblyCacheEntry.cs
blobf21a4759737738e798b4a918add03b8be3770bb1
1 //---------------------------------------------------------------------
2 // <copyright file="ImmutableAssemblyCacheEntry.cs" company="Microsoft">
3 // Copyright (c) Microsoft Corporation. All rights reserved.
4 // </copyright>
5 //
6 // @owner Microsoft
7 // @backupOwner Microsoft
8 //---------------------------------------------------------------------
10 using System.Collections.Generic;
11 using System.Reflection;
13 namespace System.Data.Metadata.Edm
15 internal partial class ImmutableAssemblyCacheEntry : AssemblyCacheEntry
17 // types in "this" assembly
18 private readonly System.Collections.ObjectModel.ReadOnlyCollection<EdmType> _typesInAssembly;
19 // other assemblies referenced by types we care about in "this" assembly
20 private readonly System.Collections.ObjectModel.ReadOnlyCollection<Assembly> _closureAssemblies;
21 internal ImmutableAssemblyCacheEntry(MutableAssemblyCacheEntry mutableEntry)
23 _typesInAssembly = new List<EdmType>(mutableEntry.TypesInAssembly).AsReadOnly();
24 _closureAssemblies = new List<Assembly>(mutableEntry.ClosureAssemblies).AsReadOnly();
27 internal override IList<EdmType> TypesInAssembly
29 get { return _typesInAssembly; }
32 internal override IList<Assembly> ClosureAssemblies
34 get { return _closureAssemblies; }