コード例 #1
0
ファイル: EmitTypeBuilder.cs プロジェクト: kswoll/sexy-emit
 public EmitMethodBuilder DefineMethod(string name, EmitType returnType, EmitVisibility visibility = EmitVisibility.Public,
     bool isAbstract = false, bool isSealed = false, bool isVirtual = false, bool isOverride = false,
     bool isExtern = false, bool isStatic = false)
 {
     var method = new EmitMethodBuilder(this, name, returnType, visibility, isStatic, isSealed, isVirtual, isAbstract);
     memberBuilders.Add(new EmitMethodReference(() => method));
     return method;
 }
コード例 #2
0
ファイル: EmitTypeBuilder.cs プロジェクト: kswoll/sexy-emit
        public EmitMethodBuilder DefineMethod(string name, EmitType returnType, EmitVisibility visibility = EmitVisibility.Public,
                                              bool isAbstract = false, bool isSealed = false, bool isVirtual = false, bool isOverride = false,
                                              bool isExtern   = false, bool isStatic = false)
        {
            var method = new EmitMethodBuilder(this, name, returnType, visibility, isStatic, isSealed, isVirtual, isAbstract);

            memberBuilders.Add(new EmitMethodReference(() => method));
            return(method);
        }