【发布时间】:2010-05-04 08:14:21
【问题描述】:
public struct Items
{
public string Id;
public string Name;
}
public Items[] _items = null;
if (_items.Contains("Table"))
{
// i need to check the structure and need to return correponding id
}
并且我的结构变量中有一个变量列表...
我需要在结构中搜索一个名称(_items),我想返回对应的 ID。
如何做到这一点,
【问题讨论】:
标签: struct