|
|
От: | Kudjo | |
| Дата: | 10.09.06 17:14 | ||
| Оценка: | |||
private Type[] m_list = new Type[]
{
typeof(gear), typeof(gear1), typeof(gear3)
};if (m_list.Contains(gears))
{
...
}|
|
От: |
Denis2005
|
|
| Дата: | 10.09.06 17:26 | ||
| Оценка: | |||
|
|
От: |
RustM
|
|
| Дата: | 10.09.06 17:46 | ||
| Оценка: | |||
if (Array.Exists(m_list, delegate(Type type) { return type == typeof(gears); }))
...