System.Xml.Serialization.CodeGenerator.BeginMethod C# (CSharp) Method

BeginMethod() private method

private BeginMethod ( Type returnType, string methodName, Type argTypes, string argNames, MethodAttributes methodAttributes ) : void
returnType System.Type
methodName string
argTypes System.Type
argNames string
methodAttributes MethodAttributes
return void
        internal void BeginMethod(Type returnType, string methodName, Type[] argTypes, string[] argNames, MethodAttributes methodAttributes)
        {
            _methodBuilder = _typeBuilder.DefineMethod(methodName, methodAttributes, returnType, argTypes);
            _ilGen = _methodBuilder.GetILGenerator();
            InitILGeneration(argTypes, argNames, (_methodBuilder.Attributes & MethodAttributes.Static) == MethodAttributes.Static);
        }

Same methods

CodeGenerator::BeginMethod ( Type returnType, MethodBuilderInfo methodBuilderInfo, Type argTypes, string argNames, MethodAttributes methodAttributes ) : void