Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class A
- {
- static void Main(string[] args)
- {
- C c = new C();
- B b = c.DoSomething("hello.txt");
- }
- }
- class B
- {
- public string text;
- public string source { get; set; }
- public string destination { get; set; }
- }
- class C
- {
- string filename;
- string text;
- public Settings DoSomething(string filename)
- {
- this.filename = filename
- //DoSomething
- return new Settings
- {
- source = Convert.ToString(1),
- destination = Convert.ToString(2),
- text = text
- };
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement