JSONTools.JSONObjectOLD.Add C# (CSharp) Method

Add() public method

public Add ( string Name, object Value, string Type ) : void
Name string
Value object
Type string
return void
        public void Add(string Name, object Value, string Type)
        {
            JSONAttribute a = Find(Name);
            if (a != null)
            {
                a.Value = Value;
                a.Type = (JSONType)Enum.Parse(typeof(JSONType), Type);
            }
            else
            {
                Values.Add(new JSONAttribute() { Name = Name, Value = Value, Type = (JSONType)Enum.Parse(typeof(JSONType), Type) });
            }
        }