Mono.Cecil.WindowsRuntimeProjections.GetCoreLibrary C# (CSharp) Method

GetCoreLibrary() static private method

static private GetCoreLibrary ( Collection references ) : Mono.Cecil.AssemblyNameReference
references Collection
return Mono.Cecil.AssemblyNameReference
        static AssemblyNameReference GetCoreLibrary(Collection<AssemblyNameReference> references)
        {
            foreach (var reference in references)
                if (reference.Name == "mscorlib")
                    return reference;

            throw new BadImageFormatException ("Missing mscorlib reference in AssemblyRef table.");
        }