public TypeContainer AddTypeContainer (TypeContainer tc)
{
if (!AddMemberType (tc))
return tc;
var tparams = tc.MemberName.TypeParameters;
if (tparams != null) {
for (int i = 0; i < tparams.Count; ++i) {
var tp = tparams[i];
if (tp.MemberName == null)
continue;
tc.AddMember (tp, tp.Name);
}
}
if (types == null)
types = new List<TypeContainer> ();
types.Add (tc);
return tc;
}