Advertisement
Gillito

Untitled

Jul 2nd, 2015
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.55 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApplication55
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             MyClass1 m1 = new MyClass1();
  14.             MyClass2 m2 = new MyClass2();
  15.             m2.DoSomething(m1);
  16.         }
  17.     }
  18.  
  19.     class MyClass1
  20.     {
  21.  
  22.     }
  23.  
  24.     class MyClass2
  25.     {
  26.         public void DoSomething(MyClass1 x)
  27.         {
  28.             Console.WriteLine("Is it works?");
  29.         }
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement