Пример #1
0
 public void ClientImplementationShouldWorkWithUntypedInterface()
 {
     using (var untypedInterfaceInheritanceChangesClient = new UntypedInterfaceInheritanceChangesClient())
     {
         try
         {
             untypedInterfaceInheritanceChangesClient.Task.Wait();
         }
         catch (Exception)
         {
         }
     }
 }
Пример #2
0
        public void ClientImplementationShouldWorkWithUntypedInterface()
        {
            Task task;

            using (var x = new UntypedInterfaceInheritanceChangesClient())
            {
                task = x.Task;
            }

            try
            {
                task.Wait();
            }
            catch (Exception)
            {
            }
        }