public SetToString ( object key, string str ) : void | ||
key | object |
/// A |
str | string |
/// A |
return | void |
public void SetToString(object key, string str)
{
if (key is int && m_cd.Type == ValueType.Array)
m_cd.Array[(int)key] = new IronJSONValue(str);
else if (key is string && m_cd.Type == ValueType.Object)
m_cd.Obj[(string)key] = new IronJSONValue(str);
else
throw new InvalidKeyException(key.ToString());
}