예제 #1
0
파일: DoapSharp.cs 프로젝트: B-Rich/doap
		public static void Main(string [] args) {
			try {
				string assemblyName = args[0];
				string outfile = args[1];

				Assembly assembly = Assembly.LoadFrom(assemblyName);
				using (Stream stream = File.Create(outfile)) {
					DoapWriter writer = new DoapWriter(assembly);
					writer.WriteTo(stream);
				}
			} catch (Exception e) {
				Console.WriteLine(e);
			}
		}
예제 #2
0
        public static void Main(string [] args)
        {
            try {
                string assemblyName = args[0];
                string outfile      = args[1];

                Assembly assembly = Assembly.LoadFrom(assemblyName);
                using (Stream stream = File.Create(outfile)) {
                    DoapWriter writer = new DoapWriter(assembly);
                    writer.WriteTo(stream);
                }
            } catch (Exception e) {
                Console.WriteLine(e);
            }
        }