public void AddAnonymousType (AnonymousTypeClass type) { List<AnonymousTypeClass> existing; if (!anonymous_types.TryGetValue (type.Parameters.Count, out existing)) if (existing == null) { existing = new List<AnonymousTypeClass> (); anonymous_types.Add (type.Parameters.Count, existing); } existing.Add (type); }