我需要处理多个函数,这些函数执行后会返回相同类型的记录。我在使用Visual Studio 2010中的C#语言。 下面是我的函数:
class Search{
public list<wrecords> GetrecordsofAAA(string term);
public list<wrecords> GetrecordsofBBB(string term);
public list<wrecords> GetrecordsofCCC(string term);
}
我正在以这种方式调用函数。
list<wrecords> records1 = Search.GetrecordsofAAA(heart);
list<wrecords> records2 = Search.GetrecordsofBBB(heart);
list<wrecords> records3 = Search.GetrecordsofCCC(heart);
这是系列处理。
如果可能的话,我需要同时填充记录1、记录2和记录3。