Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApplication55
- {
- class Program
- {
- static void Main(string[] args)
- {
- MyClass1 m1 = new MyClass1();
- MyClass2 m2 = new MyClass2();
- m2.DoSomething(m1);
- }
- }
- class MyClass1
- {
- }
- class MyClass2
- {
- public void DoSomething(MyClass1 x)
- {
- Console.WriteLine("Is it works?");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement