예제 #1
0
    public static Responsible Populate(string name, string lastname, string phone, string company)
    {
        var p = Responsible.Populate <Responsible>(name, lastname);

        p.Phone   = phone;
        p.Company = company;
        return(p);
    }
예제 #2
0
 static void Main(string[] args)
 {
     //Responsible responsible = new Responsible()
     //{
     //    //I want here to populate with PopulatePerson the base members
     //    Phone = "93827382",
     //    Company = "Google"
     //};
     var responsible = Responsible.Populate("Glenn", "Fake", "93827382", "Google");
     //responsible
 }