public virtual string BuildCode() { Code.Clear(); string t = Object.ObjectType; if (Object.TypeParams != null) { t += " " + Object.TypeParams; } if (Object.GetType() == typeof(BasicObject)) // serializing an unknown object, just dump it; { Code.AddRange(Object.Attributes.ToArray()); } return(t); }