-Added set indexer to JToken
This commit is contained in:
@@ -161,6 +161,15 @@ namespace Newtonsoft.Json.Linq
|
||||
|
||||
return GetItem((int)key);
|
||||
}
|
||||
set
|
||||
{
|
||||
ValidationUtils.ArgumentNotNull(key, "o");
|
||||
|
||||
if (!(key is int))
|
||||
throw new ArgumentException("Set JConstructor values with invalid key value: {0}. Argument position index expected.".FormatWith(CultureInfo.InvariantCulture, MiscellaneousUtils.ToString(key)));
|
||||
|
||||
SetItem((int)key, value);
|
||||
}
|
||||
}
|
||||
|
||||
internal override int GetDeepHashCode()
|
||||
|
||||
Reference in New Issue
Block a user