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