public bool TryLoadAssembly(string filename, out AssemblyNode assembly, out string reasonOfFailure) { assembly = AssemblyNode.ReadAssembly(filename); if (!TryLoadContractNodes(ref assembly)) { reasonOfFailure = "Couldn't find CodeContracts assembly in referencing assemblies"; return(false); } reasonOfFailure = null; return(true); }