I get a compilation errors regarding this piece of code:
Error 1 Invalid token '(' in class, struct, or interface member declaration
Error 2 Cannot use more than one type in a for, using, fixed, or declaration
Any idea why? In addition, is it possible to declare dictionary as follows?
public class S
{
private class ObInfo<T>
{
private string _type;
private T _value;
public ObInfo<T>(string i_Type, T Value)
{
this._type = i_Type;
this._value = Value;
}
public ObInfo()
{}
}
private static Dictionary<int,ObInfo> sObj= new Dictionary<int,ObInfo>();
}