3 instantiations of MethodBuilder
mscorlib (3)
system\reflection\emit\constructorbuilder.cs (1)
44m_methodBuilder = new MethodBuilder(name, attributes, callingConvention, null, null, null,
system\reflection\emit\typebuilder.cs (2)
793MethodBuilder method = new MethodBuilder(name, attributes, callingConvention, 1730MethodBuilder method = new MethodBuilder(
162 references to MethodBuilder
mscorlib (99)
system\reflection\emit\cominterfaces.cs (1)
165[TypeLibImportClassAttribute(typeof(System.Reflection.Emit.MethodBuilder))]
system\reflection\emit\constructorbuilder.cs (1)
27private readonly MethodBuilder m_methodBuilder;
system\reflection\emit\dynamicilgenerator.cs (1)
514MethodBuilder.GetMethodBaseReturnType(methodInfo),
system\reflection\emit\eventbuilder.cs (5)
64private void SetMethodSemantics(MethodBuilder mdBuilder, MethodSemanticsAttributes semantics) 81public void SetAddOnMethod(MethodBuilder mdBuilder) 87public void SetRemoveOnMethod(MethodBuilder mdBuilder) 93public void SetRaiseMethod(MethodBuilder mdBuilder) 99public void AddOtherMethod(MethodBuilder mdBuilder)
system\reflection\emit\ilgenerator.cs (7)
125Contract.Requires(methodBuilder is MethodBuilder || methodBuilder is DynamicMethod); 159MethodBuilder mb = m_methodBuilder as MethodBuilder; 1274MethodBuilder methodBuilder = m_methodBuilder as MethodBuilder; 1313MethodBuilder methodBuilder = m_methodBuilder as MethodBuilder;
system\reflection\emit\localbuilder.cs (2)
77MethodBuilder methodBuilder = m_methodBuilder as MethodBuilder;
system\reflection\emit\methodbuilder.cs (5)
487if (!(obj is MethodBuilder)) { 490if (!(this.m_strName.Equals(((MethodBuilder)obj).m_strName))) { 494if (m_iAttributes!=(((MethodBuilder)obj).m_iAttributes)) { 498SignatureHelper thatSig = ((MethodBuilder)obj).GetMethodSignature(); 744MethodBuilder currentMethod = null;
system\reflection\emit\modulebuilder.cs (20)
700else if (method is MethodBuilder || method is ConstructorBuilder) 729returnType = MethodBuilder.GetMethodBaseReturnType(methDef); 734returnType = MethodBuilder.GetMethodBaseReturnType(method); 1462public MethodBuilder DefineGlobalMethod(String name, MethodAttributes attributes, Type returnType, Type[] parameterTypes) 1464Contract.Ensures(Contract.Result<MethodBuilder>() != null); 1469public MethodBuilder DefineGlobalMethod(String name, MethodAttributes attributes, CallingConventions callingConvention, 1472Contract.Ensures(Contract.Result<MethodBuilder>() != null); 1477public MethodBuilder DefineGlobalMethod(String name, MethodAttributes attributes, CallingConventions callingConvention, 1489private MethodBuilder DefineGlobalMethodNoLock(String name, MethodAttributes attributes, CallingConventions callingConvention, 1504Contract.Ensures(Contract.Result<MethodBuilder>() != null); 1522public MethodBuilder DefinePInvokeMethod(String name, String dllName, MethodAttributes attributes, 1526Contract.Ensures(Contract.Result<MethodBuilder>() != null); 1534public MethodBuilder DefinePInvokeMethod(String name, String dllName, String entryName, MethodAttributes attributes, 1538Contract.Ensures(Contract.Result<MethodBuilder>() != null); 1550private MethodBuilder DefinePInvokeMethodNoLock(String name, String dllName, String entryName, MethodAttributes attributes, 1559Contract.Ensures(Contract.Result<MethodBuilder>() != null); 1834MethodBuilder methBuilder = null; 1836if ( (methBuilder = method as MethodBuilder) != null ) 2397MethodBuilder mb = entryPoint as MethodBuilder;
system\reflection\emit\parameterbuilder.cs (2)
103MethodBuilder methodBuilder, 176private MethodBuilder m_methodBuilder;
system\reflection\emit\propertybuilder.cs (4)
109private void SetMethodSemantics(MethodBuilder mdBuilder, MethodSemanticsAttributes semantics) 125public void SetGetMethod(MethodBuilder mdBuilder) 132public void SetSetMethod(MethodBuilder mdBuilder) 139public void AddOtherMethod(MethodBuilder mdBuilder)
system\reflection\emit\typebuilder.cs (28)
541internal List<MethodBuilder> m_listMethods; 557private MethodBuilder m_declMeth; 568m_listMethods = new List<MethodBuilder>(); 575internal TypeBuilder(string szName, int genParamPos, MethodBuilder declMeth) 687m_listMethods = new List<MethodBuilder>(); 736private MethodBuilder DefinePInvokeMethodHelper( 759private MethodBuilder DefinePInvokeMethodHelperNoLock( 793MethodBuilder method = new MethodBuilder(name, attributes, callingConvention, 1651public MethodBuilder DefineMethod(String name, MethodAttributes attributes, Type returnType, Type[] parameterTypes) 1653Contract.Ensures(Contract.Result<MethodBuilder>() != null); 1658public MethodBuilder DefineMethod(String name, MethodAttributes attributes) 1660Contract.Ensures(Contract.Result<MethodBuilder>() != null); 1665public MethodBuilder DefineMethod(String name, MethodAttributes attributes, CallingConventions callingConvention) 1667Contract.Ensures(Contract.Result<MethodBuilder>() != null); 1672public MethodBuilder DefineMethod(String name, MethodAttributes attributes, CallingConventions callingConvention, 1675Contract.Ensures(Contract.Result<MethodBuilder>() != null); 1680public MethodBuilder DefineMethod(String name, MethodAttributes attributes, CallingConventions callingConvention, 1684Contract.Ensures(Contract.Result<MethodBuilder>() != null); 1694private MethodBuilder DefineMethodNoLock(String name, MethodAttributes attributes, CallingConventions callingConvention, 1703Contract.Ensures(Contract.Result<MethodBuilder>() != null); 1730MethodBuilder method = new MethodBuilder( 1907public MethodBuilder DefinePInvokeMethod(String name, String dllName, MethodAttributes attributes, 1911MethodBuilder method = DefinePInvokeMethodHelper( 1922public MethodBuilder DefinePInvokeMethod(String name, String dllName, String entryName, MethodAttributes attributes, 1926MethodBuilder method = DefinePInvokeMethodHelper( 1937public MethodBuilder DefinePInvokeMethod(String name, String dllName, String entryName, MethodAttributes attributes, 1943MethodBuilder method = DefinePInvokeMethodHelper( 2374MethodBuilder meth = m_listMethods[i];
system\reflection\emit\xxxontypebuilderinstantiation.cs (3)
35Contract.Assert(method is MethodBuilder || method is RuntimeMethodInfo); 59MethodBuilder mb = m_method as MethodBuilder;
system\runtime\interopservices\tceadaptergen\eventproviderwriter.cs (16)
63MethodBuilder InitSrcItfMethodBuilder = 73MethodBuilder AddEventMethodBuilder = DefineAddEventMethod( 77MethodBuilder RemoveEventMethodBuilder = DefineRemoveEventMethod( 86MethodBuilder FinalizeMethod = DefineFinalizeMethod( OutputTypeBuilder, m_SinkHelperType, fbSinkHelper, fbEventCP ); 94private MethodBuilder DefineAddEventMethod( TypeBuilder OutputTypeBuilder, MethodInfo SrcItfMethod, Type SinkHelperClass, FieldBuilder fbSinkHelperArray, FieldBuilder fbEventCP, MethodBuilder mbInitSrcItf ) 133MethodBuilder Meth = OutputTypeBuilder.DefineMethod( 237private MethodBuilder DefineRemoveEventMethod( TypeBuilder OutputTypeBuilder, MethodInfo SrcItfMethod, Type SinkHelperClass, FieldBuilder fbSinkHelperArray, FieldBuilder fbEventCP ) 293MethodBuilder Meth = OutputTypeBuilder.DefineMethod( 463private MethodBuilder DefineInitSrcItfMethod( TypeBuilder OutputTypeBuilder, Type SourceInterface, FieldBuilder fbSinkHelperArray, FieldBuilder fbEventCP, FieldBuilder fbCPC ) 483MethodBuilder Meth = OutputTypeBuilder.DefineMethod( 561MethodBuilder Cons = OutputTypeBuilder.DefineMethod( 584private MethodBuilder DefineFinalizeMethod( TypeBuilder OutputTypeBuilder, Type SinkHelperClass, FieldBuilder fbSinkHelper, FieldBuilder fbEventCP ) 621MethodBuilder Meth = OutputTypeBuilder.DefineMethod( "Finalize", MethodAttributes.Public | MethodAttributes.Virtual, null, null ); 743private void DefineDisposeMethod( TypeBuilder OutputTypeBuilder, MethodBuilder FinalizeMethod ) 750MethodBuilder Meth = OutputTypeBuilder.DefineMethod( "Dispose", MethodAttributes.Public | MethodAttributes.Virtual, null, null );
system\runtime\interopservices\tceadaptergen\eventsinkhelperwriter.cs (4)
106MethodBuilder Meth = OutputTypeBuilder.DefineMethod(Method.Name, 143MethodBuilder Meth = OutputTypeBuilder.DefineMethod( Method.Name, 191private void AddReturn(Type ReturnType, ILGenerator il, MethodBuilder Meth) 261MethodBuilder Cons = OutputTypeBuilder.DefineMethod( ".ctor",
System (1)
regex\system\text\regularexpressions\RegexCompiler.cs (1)
3073private MethodBuilder _methbuilder;
System.Activities (7)
System\Activities\Debugger\StateManager.cs (7)
544MethodBuilder methodBuilder = this.CreateIsland(typeBuilder, this.states[i], false, checksumCache); 553MethodBuilder methodBuilderWithPriming = this.CreateIsland(typeBuilder, this.states[i], true, checksumCache); 574internal MethodBuilder CreateMethodBuilder(TypeBuilder typeBuilder, Type typeIslandArguments, State state, bool withPriming) 607MethodBuilder methodbuilder = typeBuilder.DefineMethod( 634[Fx.Tag.InheritThrows(From = "GetILGenerator", FromDeclaringType = typeof(MethodBuilder))] 637MethodBuilder CreateIsland(TypeBuilder typeBuilder, State state, bool withPrimingTest, Dictionary<string, byte[]>checksumCache) 639MethodBuilder methodbuilder = this.CreateMethodBuilder(typeBuilder, threadWorkerControllerType, state, withPrimingTest);
System.Core (11)
Microsoft\Scripting\Ast\LambdaExpression.cs (5)
155/// <param name="method">A <see cref="MethodBuilder"/> which will be used to hold the lambda's IL.</param> 156public void CompileToMethod(MethodBuilder method) { 163/// <param name="method">A <see cref="MethodBuilder"/> which will be used to hold the lambda's IL.</param> 165public void CompileToMethod(MethodBuilder method, DebugInfoGenerator debugInfoGenerator) { 170private void CompileToMethodInternal(MethodBuilder method, DebugInfoGenerator debugInfoGenerator) {
Microsoft\Scripting\Compiler\LambdaCompiler.cs (2)
122private LambdaCompiler(AnalyzedTree tree, LambdaExpression lambda, MethodBuilder method) { 222internal static void Compile(LambdaExpression lambda, MethodBuilder method, DebugInfoGenerator debugInfoGenerator) {
Microsoft\Scripting\Compiler\LambdaCompiler.Lambda.cs (1)
129MethodBuilder mb = _typeBuilder.DefineMethod(name, MethodAttributes.Private | MethodAttributes.Static);
Microsoft\Scripting\Compiler\SymbolDocumentGenerator.cs (3)
45private ISymbolDocumentWriter GetSymbolWriter(MethodBuilder method, SymbolDocumentInfo document) { 60MethodBuilder builder = methodBase as MethodBuilder;
System.Data.Entity (13)
System\Data\Objects\Internal\EntityProxyFactory.cs (13)
743MethodBuilder getterBuilder = typeBuilder.DefineMethod("get_" + baseProperty.Name, getterAccess | getterAttributes, baseProperty.PropertyType, Type.EmptyTypes); 763MethodBuilder setterBuilder = typeBuilder.DefineMethod("set_" + baseProperty.Name, methodAccess | methodAttributes, null, new Type[] { baseProperty.PropertyType }); 893MethodBuilder getterBuilder = typeBuilder.DefineMethod("get_" + baseProperty.Name, getterAccess | getterAttributes, baseProperty.PropertyType, Type.EmptyTypes); 985MethodBuilder getterBuilder = typeBuilder.DefineMethod("GetBasePropertyValue", MethodAttributes.Public | MethodAttributes.HideBySig, typeof(object), new Type[] { typeof(string) }); 1007MethodBuilder setterBuilder = typeBuilder.DefineMethod("SetBasePropertyValue", MethodAttributes.Public | MethodAttributes.HideBySig, typeof(void), new Type[] { typeof(string), typeof(object) }); 1040MethodBuilder _entityMemberChanging; 1041MethodBuilder _entityMemberChanged; 1042MethodBuilder _getRelationshipManager; 1230MethodBuilder setterBuilder = typeBuilder.DefineMethod("set_" + baseProperty.Name, methodAccess | methodAttributes, null, new Type[] { baseProperty.PropertyType }); 1354MethodBuilder setterBuilder = typeBuilder.DefineMethod("set_" + baseProperty.Name, methodAccess | methodAttributes, null, new Type[] { baseProperty.PropertyType }); 1376MethodBuilder setterBuilder = typeBuilder.DefineMethod("set_" + baseProperty.Name, methodAccess | methodAttributes, null, new Type[] { baseProperty.PropertyType }); 1435MethodBuilder setChangeTracker = typeBuilder.DefineMethod("SetChangeTracker", MethodAttributes.Public | MethodAttributes.HideBySig | MethodAttributes.NewSlot | MethodAttributes.Virtual | MethodAttributes.Final, 1627MethodBuilder proxyGetObjectData = typeBuilder.DefineMethod(_getObjectDataMethod.Name,
System.Data.SqlXml (5)
System\Xml\Xsl\IlGen\GenerateHelper.cs (2)
826MethodBuilder methBldr = this.methInfo as MethodBuilder;
System\Xml\Xsl\IlGen\XmlILModule.cs (3)
184MethodBuilder methBldr; 236MethodBuilder methBldr = methInfo as MethodBuilder;
System.ServiceModel (1)
System\ServiceModel\ComIntegration\EmitterCache.cs (1)
88MethodBuilder methodInClass = null;
System.Web (2)
Util\FactoryGenerator.cs (1)
152MethodBuilder method = factoryTypeBuilder.DefineMethod("CreateInstance",
Util\FastPropertyAccessor.cs (1)
122MethodBuilder method = accessorTypeBuilder.DefineMethod("GetProperty",
System.Web.Extensions (4)
UI\WebControls\Dynamic.cs (4)
341MethodBuilder mbGet = tb.DefineMethod("get_" + dp.Name, 348MethodBuilder mbSet = tb.DefineMethod("set_" + dp.Name, 364MethodBuilder mb = tb.DefineMethod("Equals", 399MethodBuilder mb = tb.DefineMethod("GetHashCode",
System.Web.Mobile (1)
UI\MobileControls\FactoryGenerator.cs (1)
167MethodBuilder method = factoryTypeBuilder.DefineMethod("CreateInstance",
System.Xml (18)
System\Xml\Serialization\CodeGenerator.cs (6)
48MethodBuilder methodBuilder; 111internal MethodBuilder EndMethod() { 115MethodBuilder retVal = null; 128internal MethodBuilder MethodBuilder { 2728public readonly MethodBuilder MethodBuilder; 2730public MethodBuilderInfo(MethodBuilder methodBuilder, Type[] parameterTypes) {
System\Xml\Serialization\XmlSerializationILGen.cs (2)
77internal MethodBuilder EnsureMethodBuilder(TypeBuilder typeBuilder, string methodName, 81MethodBuilder methodBuilder = typeBuilder.DefineMethod(
System\Xml\Serialization\XmlSerializationReaderILGen.cs (7)
706MethodBuilder methodBuilder = EnsureMethodBuilder(typeBuilder, 965string WriteHashtable(EnumMapping mapping, string typeName, out MethodBuilder get_TableName) { 1045MethodBuilder get_TableName = null; 1181MethodBuilder methodBuilder = EnsureMethodBuilder(typeBuilder, 1227MethodBuilder methodBuilder = EnsureMethodBuilder(typeBuilder, 3001MethodBuilder methodBuilder = EnsureMethodBuilder(typeBuilder, 3190MethodBuilder methodBuilder = EnsureMethodBuilder(typeBuilder,
System\Xml\Serialization\XmlSerializationWriterILGen.cs (3)
124MethodBuilder methodBuilder = EnsureMethodBuilder(typeBuilder, 780MethodBuilder methodBuilder = EnsureMethodBuilder(typeBuilder, 1946MethodBuilder methodBuilder = EnsureMethodBuilder(typeBuilder,