AssemblyCacheEntry.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Metadata / ObjectLayer / AssemblyCacheEntry.cs / 1305376 / AssemblyCacheEntry.cs

                            //---------------------------------------------------------------------- 
// 
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// 
// 
// @owner       [....]
// @backupOwner [....] 
//--------------------------------------------------------------------- 

using System.Collections.Generic; 
using System.Reflection;

namespace System.Data.Metadata.Edm
{ 
    internal abstract class AssemblyCacheEntry
    { 
        internal abstract IList TypesInAssembly { get; } 
        internal abstract IList ClosureAssemblies { get; }
 
        internal bool TryGetEdmType(string typeName, out EdmType edmType)
        {
            edmType = null;
            foreach (EdmType loadedEdmType in this.TypesInAssembly) 
            {
                if (loadedEdmType.Identity == typeName) 
                { 
                    edmType = loadedEdmType;
                    break; 
                }
            }
            return (edmType != null);
        } 

        internal bool ContainsType(string typeName) 
        { 
            EdmType edmType = null;
            return TryGetEdmType(typeName, out edmType); 
        }
    }
}

// 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
This book is available now!
Buy at Amazon US or
Buy at Amazon UK