System.Xml.Serialization.XmlSerializationReaderCodeGen.WriteSourceEnd C# (CSharp) Method

WriteSourceEnd() private method

private WriteSourceEnd ( string source ) : void
source string
return void
        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("})");
        }