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

BeginMethod() private method

private BeginMethod ( Type returnType, MethodBuilderInfo methodBuilderInfo, Type argTypes, string argNames, MethodAttributes methodAttributes ) : void
returnType System.Type
methodBuilderInfo MethodBuilderInfo
argTypes System.Type
argNames string
methodAttributes MethodAttributes
return void
        internal void BeginMethod(Type returnType, MethodBuilderInfo methodBuilderInfo, Type[] argTypes, string[] argNames, MethodAttributes methodAttributes)
        {
#if DEBUG
            methodBuilderInfo.Validate(returnType, argTypes, methodAttributes);
#endif
            _methodBuilder = methodBuilderInfo.MethodBuilder;
            _ilGen = _methodBuilder.GetILGenerator();
            InitILGeneration(argTypes, argNames, (_methodBuilder.Attributes & MethodAttributes.Static) == MethodAttributes.Static);
        }

Same methods

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