Пример #1
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);
			}
		}
Пример #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);
            }
        }