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

GetStringForCreateInstance() private method

private GetStringForCreateInstance ( string escapedTypeName, bool useReflection, bool ctorInaccessible, bool cast, string arg ) : string
escapedTypeName string
useReflection bool
ctorInaccessible bool
cast bool
arg string
return string
        internal string GetStringForCreateInstance(string escapedTypeName, bool useReflection, bool ctorInaccessible, bool cast, string arg)
        {
            if (!useReflection && !ctorInaccessible)
                return "new " + escapedTypeName + "(" + arg + ")";
            return GetStringForCreateInstance(GetStringForTypeof(escapedTypeName, useReflection), cast && !useReflection ? escapedTypeName : null, ctorInaccessible, arg);
        }

Same methods

ReflectionAwareCodeGen::GetStringForCreateInstance ( string escapedTypeName, bool useReflection, bool ctorInaccessible, bool cast ) : string
ReflectionAwareCodeGen::GetStringForCreateInstance ( string type, string cast, bool nonPublic, string arg ) : string