如补充内容class Program{static void Main(string[] args){Program p = new Program();Person pp = new Person();p.getList(pp);}public List getList(object ob){Type type = ob.GetType();return List;}}怎么我想返回个List这个list该怎么做?

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/15 18:26:46
如补充内容classProgram{staticvoidMain(string[]args){Programp=newProgram();Personpp=newPerson();p.getList(

如补充内容class Program{static void Main(string[] args){Program p = new Program();Person pp = new Person();p.getList(pp);}public List getList(object ob){Type type = ob.GetType();return List;}}怎么我想返回个List这个list该怎么做?
如补充内容
class Program
{
static void Main(string[] args)
{
Program p = new Program();
Person pp = new Person();
p.getList(pp);
}
public List getList(object ob)
{
Type type = ob.GetType();
return List;
}
}
怎么我想返回个List这个list该怎么做?

如补充内容class Program{static void Main(string[] args){Program p = new Program();Person pp = new Person();p.getList(pp);}public List getList(object ob){Type type = ob.GetType();return List;}}怎么我想返回个List这个list该怎么做?
public List getList(T ob)
{
List list= new List();
list.add(ob);
return List;
}
调用时只要写 p.getList(pp);就可以了,可以用于任何类型的list返回

如补充内容class Program{static void Main(string[] args){Program p = new Program();Person pp = new Person();p.getList(pp);}public List getList(object ob){Type type = ob.GetType();return List;}}怎么我想返回个List这个list该怎么做? What's your f______ program?如题 children's program English Class room is a program that class's还是class’ What’s your favorite program? C#枚举的转换问题class Program { enum Gender { 男, 女 } static void Main(string[] args) { Console.WriteLine(Input); string s =Console.ReadLine(); Program除了节目的意思之外还有些什么意思?如题,有一个词是指一张票,如下:1 Program Ticket:100元ALL Program Ticket:1000元这里的Program我搞不太懂,能不能找个恰当的词翻译以上的词?不是啊,我补充一点 course,class,lesson和lecture,program 的区别 【急求】根据短文内容及首字母提示,填写所缺单词,使句子意思完整.(见补充)Justin and Michael come from the U.S.A.,but they're in C_________ now.They're n________ students in Kangkang's class.They're c________.They're of health-screening program的意思?如题 It's time____English class. it‘s time class class怎么加s what is wrong with the following program?ublic class SomethingIsWrong {public static void main(String[] args){Rectangle myRect;myRect.width = 40;myRect.hight =50;System.out.println('myRect's area is+myRect.area());} System.Text.StringBuilder”并不包含“Split”的定义想要以‘c’为分隔,分离字符串,但是提示如题错误,怎么改呢?using System;using System.Collections.Generic;using System.Text;namespace ConsoleApplication5{class Program{st 问He's in (Class Four) .答___ ___ is he in?要求:对括号内内容提问 TV,favorite,your,program,father's,what's