public void sendbus_details(string path, busdetials bobj) { buslistobj.buslist.Add(bobj); DLL obj = new DLL(); obj.Bus_Serialize(path, buslistobj); }