System.Xml.Serialization.ReflectionAwareCodeGen.GetStringForMethod C# (CSharp) Method

GetStringForMethod() private method

private GetStringForMethod ( string obj, string typeFullName, string memberName, bool useReflection ) : string
obj string
typeFullName string
memberName string
useReflection bool
return string
        internal string GetStringForMethod(string obj, string typeFullName, string memberName, bool useReflection)
        {
            if (!useReflection)
                return obj + "." + memberName + "(";

            string memberInfoName = GetReflectionVariable(typeFullName, memberName);
            return memberInfoName + ".Invoke(" + obj + ", new object[]{";
        }
        internal string GetStringForCreateInstance(string escapedTypeName, bool useReflection, bool ctorInaccessible, bool cast)