コード例 #1
0
ファイル: MetaDataProvider.cs プロジェクト: raj581/Marvin
 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);
 }