private void WriteSourceEnd(string source)
{
// source could be of the form "var", "arrayVar[i]",
// "collection.Add(" or "methodInfo.Invoke(collection, new object[] {"
if (source[source.Length - 1] == '(')
Writer.Write(")");
else if (source[source.Length - 1] == '{')
Writer.Write("})");
}