/// <summary> /// Add a <see cref="L20nCore.External.IHashValue"/> value with the given <c>name</c>. /// </summary> public void Add(string name, IHashValue value) { // Prepare the collector var info = External.InfoCollector.Pool.GetObject(); // Collect the given value value.Collect(info); if (m_Info.Count == 0) { Internal.Logger.Warning( "can't add an external variable that has no information exposed," + " please add information by calling `Info.Add(...)`"); return; } // Add it as a child to the current object AddObject(name, info.Collect()); info.Clear(); External.InfoCollector.Pool.ReturnObject(ref info); }