Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / tests / hostname.cs
1 using System;
2 using System.Net;
3
4 public class A : MarshalByRefObject
5 {
6  public void test()
7  {
8   Dns.GetHostByName("localhost");
9  }
10  public static void Main()
11  {
12   Console.WriteLine("aaa");
13   Dns.GetHostByName("localhost");
14   Console.WriteLine("bbb");
15   AppDomain domain = AppDomain.CreateDomain("aaa");
16   A a = (A)domain.CreateInstanceAndUnwrap(typeof(A).Assembly.FullName,
17 typeof(A).FullName);
18   a.test();
19  }
20 }
21