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

GetTarget() protected method

protected GetTarget ( string id ) : object
id string
return object
        protected object GetTarget(string id)
        {
            object target = _targets != null ? _targets[id] : null;
            if (target == null)
            {
                throw new InvalidOperationException(SR.Format(SR.XmlInvalidHref, id));
            }
            Referenced(target);
            return target;
        }