protected string Combine(string key)
{
string value = this.ScriptClientInitBag[key];
if (value.IsNotEmpty())
{
//MatchCollection matches = Regex.Matches(value, @"({)([\w\.]+)(_ClientInit})");
MatchCollection matches = ClientInit_RE.Matches(value);
if (this.GetIsExcluded(key))
{
return "";
}
if (matches.Count == 0)
{
return value;
}
foreach (Match match in matches)
{
string id = match.Value.Chop();
if (this.ScriptClientInitBag.ContainsKey(id))
{
value = value.Replace(match.Value, this.Combine(id));
this.LazyList.Add(id);
}
}
}
return value;
}