System.Xml.Serialization.XmlSerializationReader.AddTarget C# (CSharp) Method

AddTarget() protected method

protected AddTarget ( string id, object o ) : void
id string
o object
return void
        protected void AddTarget(string id, object o)
        {
            if (id == null)
            {
                if (_targetsWithoutIds == null)
                    _targetsWithoutIds = new ArrayList();
                if (o != null)
                    _targetsWithoutIds.Add(o);
            }
            else
            {
                if (_targets == null) _targets = new Hashtable();
                if (!_targets.Contains(id))
                    _targets.Add(id, o);
            }
        }