using System;
public class Program
{
public static void Main()
var person = new WorkWithDTO ();
person.
}
public class SomeDTO
public string name {get;set;}
public string age {get;set;}
public class WorkWithDTO
public static void GetMyDTO (SomeDTO someDTO)
Console.WriteLine("My name is {0} and I'm {1} years old",someDTO.name, someDTO.age );