我无法解决如何创建此查询的问题.如果项目Cats列表包含与List2中某个Cats的ID匹配的Cat对象,我需要选择列表1中的项目.这可能吗?谢谢
List1<pet> List1 = new List<pet>(100);
List2<cat> List2 = new List<cat>(30);
//populate lists, some of the items in List2 (cat) will be in the List1 items Cats list
//classes
class pet{
string ID;
List<cat> Cats;
}
class cat {
string ID;
string name;
}
Run Code Online (Sandbox Code Playgroud) 我的目标是将日期从我的apache日志转换为"12/Nov/2015:23:28:22"格式到epoch格式.可以使用date命令完成,还是需要解析和提取信息?