1 override of Emit
mscorlib (1)
system\reflection\emit\dynamicilgenerator.cs (1)
178
public override void
Emit
(OpCode opcode, Type type)
153 references to Emit
mscorlib (8)
system\runtime\interopservices\tceadaptergen\eventproviderwriter.cs (8)
188
il.
Emit
( OpCodes.Castclass, typeof(Object) );
209
il.
Emit
( OpCodes.Castclass, typeof(Object) );
354
il.
Emit
( OpCodes.Castclass, SinkHelperClass );
369
il.
Emit
( OpCodes.Castclass, typeof(Object) );
507
il.
Emit
( OpCodes.Newarr, typeof(Byte) );
538
il.
Emit
( OpCodes.Castclass, typeof(IConnectionPoint) );
577
il.
Emit
( OpCodes.Castclass, typeof(IConnectionPointContainer) );
677
il.
Emit
( OpCodes.Castclass, SinkHelperClass );
System (3)
regex\system\text\regularexpressions\RegexCompiler.cs (3)
3252
_ilg.
Emit
(OpCodes.Newarr, typeof(String)); // create new string array
3331
_ilg.
Emit
(OpCodes.Box, typeof(Int32));
3339
_ilg.
Emit
(OpCodes.Box, typeof(Int32));
System.AddIn (1)
System\Addin\Hosting\AddInActivator.cs (1)
475
il.
Emit
(OpCodes.Castclass, argType); // need to cast Object to the specific Contract type expected by the constructor
System.Core (54)
Microsoft\Scripting\Compiler\BoundConstants.cs (2)
187
lc.IL.
Emit
(OpCodes.Unbox_Any, type);
189
lc.IL.
Emit
(OpCodes.Castclass, type);
Microsoft\Scripting\Compiler\CompilerScope.cs (1)
304
lc.IL.
Emit
(OpCodes.Newarr, typeof(object));
Microsoft\Scripting\Compiler\CompilerScope.Storage.cs (1)
140
Compiler.IL.
Emit
(OpCodes.Castclass, _boxType);
Microsoft\Scripting\Compiler\ILGen.cs (20)
123
il.
Emit
(OpCodes.Ldobj, type);
153
il.
Emit
(OpCodes.Stobj, type);
168
il.
Emit
(OpCodes.Ldelem, type);
202
il.
Emit
(OpCodes.Ldelem, type);
215
il.
Emit
(OpCodes.Stelem, type);
245
il.
Emit
(OpCodes.Stelem, type);
256
il.
Emit
(OpCodes.Ldtoken, type);
504
il.
Emit
(OpCodes.Castclass, type);
514
il.
Emit
(OpCodes.Ldtoken, dt);
520
il.
Emit
(OpCodes.Castclass, type);
639
il.
Emit
(OpCodes.Unbox_Any, typeTo);
641
il.
Emit
(OpCodes.Box, typeFrom);
643
il.
Emit
(OpCodes.Castclass, typeTo);
646
il.
Emit
(OpCodes.Castclass, typeTo);
801
il.
Emit
(OpCodes.Initobj, typeTo);
849
il.
Emit
(OpCodes.Box, typeFrom);
898
il.
Emit
(OpCodes.Newarr, typeof(T));
917
il.
Emit
(OpCodes.Newarr, elementType);
939
il.
Emit
(OpCodes.Newarr, arrayType.GetElementType());
999
il.
Emit
(OpCodes.Initobj, type);
Microsoft\Scripting\Compiler\LambdaCompiler.Address.cs (3)
96
_ilg.
Emit
(OpCodes.Ldelema, node.Type);
190
_ilg.
Emit
(OpCodes.Ldelema, node.Type);
203
_ilg.
Emit
(OpCodes.Unbox, type);
Microsoft\Scripting\Compiler\LambdaCompiler.Binary.cs (4)
486
_ilg.
Emit
(OpCodes.Unbox_Any, resultType);
551
_ilg.
Emit
(OpCodes.Initobj, resultType);
624
_ilg.
Emit
(OpCodes.Initobj, type);
696
_ilg.
Emit
(OpCodes.Initobj, type);
Microsoft\Scripting\Compiler\LambdaCompiler.Expressions.cs (7)
139
_ilg.
Emit
(OpCodes.Castclass, type);
348
_ilg.
Emit
(OpCodes.Constrained, objectType);
384
_ilg.
Emit
(OpCodes.Constrained, objectType);
526
_ilg.
Emit
(OpCodes.Initobj, node.Type);
577
_ilg.
Emit
(OpCodes.Box, type);
579
_ilg.
Emit
(OpCodes.Isinst, node.TypeOperand);
987
_ilg.
Emit
(OpCodes.Initobj, resultType);
Microsoft\Scripting\Compiler\LambdaCompiler.Lambda.cs (1)
106
_ilg.
Emit
(OpCodes.Castclass, delegateType);
Microsoft\Scripting\Compiler\LambdaCompiler.Logical.cs (5)
205
_ilg.
Emit
(OpCodes.Box, b.Right.Type);
207
_ilg.
Emit
(OpCodes.Castclass, b.Type);
213
_ilg.
Emit
(OpCodes.Castclass, b.Type);
272
_ilg.
Emit
(OpCodes.Initobj, type);
388
_ilg.
Emit
(OpCodes.Initobj, type);
Microsoft\Scripting\Compiler\LambdaCompiler.Statements.cs (1)
802
_ilg.
Emit
(OpCodes.Isinst, cb.Test);
Microsoft\Scripting\Compiler\LambdaCompiler.Unary.cs (9)
52
_ilg.
Emit
(OpCodes.Castclass, quote.Type);
172
_ilg.
Emit
(OpCodes.Initobj, resultType);
180
_ilg.
Emit
(OpCodes.Box, operandType);
181
_ilg.
Emit
(OpCodes.Isinst, resultType);
183
_ilg.
Emit
(OpCodes.Unbox_Any, resultType);
221
_ilg.
Emit
(OpCodes.Box, operandType);
223
_ilg.
Emit
(OpCodes.Isinst, resultType);
225
_ilg.
Emit
(OpCodes.Unbox_Any, resultType);
276
_ilg.
Emit
(OpCodes.Unbox_Any, node.Type);
System.Data.Entity (17)
System\Data\Metadata\Edm\LightweightCodeGenerator.cs (10)
134
gen.
Emit
(OpCodes.Castclass, declaringType);
136
gen.
Emit
(OpCodes.Castclass, navigationProperty.PropertyType);
227
gen.
Emit
(OpCodes.Castclass, mi.DeclaringType);
247
gen.
Emit
(OpCodes.Box, elementType = realType.GetGenericArguments()[0]);
257
gen.
Emit
(OpCodes.Box, elementType);
337
gen.
Emit
(OpCodes.Castclass, mi.DeclaringType);
341
gen.
Emit
(OpCodes.Isinst, elementType);
357
gen.
Emit
(OpCodes.Initobj, realType); // init &
368
gen.
Emit
(OpCodes.Unbox_Any, elementType); // ((PropertyType)value)
384
gen.
Emit
(OpCodes.Ldtoken, elementType);
System\Data\Objects\Internal\EntityProxyFactory.cs (7)
1021
gen.
Emit
(OpCodes.Castclass, _baseSetters[i].PropertyType);
1166
generator.
Emit
(OpCodes.Castclass, proxyType);
1294
generator.
Emit
(OpCodes.Box, propertyType);
1299
generator.
Emit
(OpCodes.Box, propertyType);
1643
generator.
Emit
(OpCodes.Ldtoken, field.FieldType);
1682
generator.
Emit
(OpCodes.Ldtoken, field.FieldType);
1685
generator.
Emit
(OpCodes.Castclass, field.FieldType);
System.Data.Linq (26)
SqlClient\Reader\ObjectReaderCompiler.cs (26)
869
gen.
Emit
(OpCodes.Newarr, elemType);
918
gen.
Emit
(OpCodes.Constrained, mc.Object.ClrType);
953
gen.
Emit
(OpCodes.Initobj, sn.ClrType);
993
gen.
Emit
(OpCodes.Castclass, sn.ClrType);
1388
gen.
Emit
(OpCodes.Newarr, typeof(object));
1428
gen.
Emit
(OpCodes.Newarr, typeof(object));
1446
gen.
Emit
(OpCodes.Box, clrType);
1457
gen.
Emit
(OpCodes.Castclass, actualType);
1580
gen.
Emit
(OpCodes.Box, actualType);
1583
gen.
Emit
(OpCodes.Unbox_Any, expectedType);
1589
gen.
Emit
(OpCodes.Castclass, expectedType);
1671
gen.
Emit
(OpCodes.Castclass, expectedType);
1689
gen.
Emit
(OpCodes.Castclass, expectedType);
1778
gen.
Emit
(OpCodes.Box, actualType);
1780
gen.
Emit
(OpCodes.Ldtoken, expectedType);
1788
gen.
Emit
(OpCodes.Unbox_Any, expectedType);
1791
gen.
Emit
(OpCodes.Castclass, expectedType);
2060
gen.
Emit
(OpCodes.Box, type);
2062
gen.
Emit
(OpCodes.Box, type);
2083
gen.
Emit
(OpCodes.Initobj, type);
2087
gen.
Emit
(OpCodes.Ldtoken, type);
2162
gen.
Emit
(OpCodes.Castclass, varType);
2170
gen.
Emit
(OpCodes.Castclass, type);
2226
gen.
Emit
(OpCodes.Stelem, type);
2256
gen.
Emit
(OpCodes.Stelem, type);
2331
gen.
Emit
(OpCodes.Initobj, type);
System.Data.Services (5)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (2)
2359
generator.
Emit
(System.Reflection.Emit.OpCodes.Castclass, typeof(ObjectContext));
2362
generator.
Emit
(System.Reflection.Emit.OpCodes.Newarr, typeof(ObjectParameter));
System\Data\Services\Providers\ReflectionServiceProvider.cs (1)
322
generator.
Emit
(System.Reflection.Emit.OpCodes.Castclass, this.Type);
System\Data\Services\Serializers\SyndicationSerializer.cs (2)
791
generator.
Emit
(OpCodes.Castclass, customObjectType);
805
generator.
Emit
(OpCodes.Box, property.Type);
System.Data.SqlXml (1)
System\Xml\Xsl\IlGen\GenerateHelper.cs (1)
1603
this.ilgen.
Emit
(opcode, typVal);
System.Runtime.Serialization (9)
System\Runtime\Serialization\CodeGenerator.cs (9)
678
ilGen.
Emit
(OpCodes.Initobj, valueType);
686
ilGen.
Emit
(OpCodes.Newarr, elementType);
929
ilGen.
Emit
(OpCodes.Castclass, target);
936
ilGen.
Emit
(OpCodes.Box, type);
943
ilGen.
Emit
(OpCodes.Unbox, type);
995
ilGen.
Emit
(OpCodes.Ldobj, type);
1003
ilGen.
Emit
(OpCodes.Stobj, type);
1039
ilGen.
Emit
(OpCodes.Ldtoken, t);
1427
ilGen.
Emit
(opCode, arrayElementType);
System.ServiceModel (8)
System\ServiceModel\Dispatcher\CodeGenerator.cs (8)
287
ilGen.
Emit
(OpCodes.Initobj, valueType);
374
ilGen.
Emit
(OpCodes.Castclass, target);
381
ilGen.
Emit
(OpCodes.Box, type);
388
ilGen.
Emit
(OpCodes.Unbox, type);
404
ilGen.
Emit
(OpCodes.Ldobj, type);
412
ilGen.
Emit
(OpCodes.Stobj, type);
419
ilGen.
Emit
(OpCodes.Ldtoken, t);
731
ilGen.
Emit
(opCode, arrayElementType);
System.Web (10)
Util\FastPropertyAccessor.cs (9)
134
il.
Emit
(OpCodes.Castclass, type);
142
il.
Emit
(OpCodes.Box, propertyType);
176
il.
Emit
(OpCodes.Castclass, type);
181
il.
Emit
(OpCodes.Unbox, propertyType);
215
il.
Emit
(OpCodes.Ldobj, propertyType);
224
il.
Emit
(OpCodes.Ldobj, propertyType);
229
il.
Emit
(OpCodes.Unbox, propertyType);
230
il.
Emit
(OpCodes.Ldobj, propertyType);
234
il.
Emit
(OpCodes.Castclass, propertyType);
Util\ReflectionUtil.cs (1)
44
ilGen.
Emit
(OpCodes.Initobj, fieldInfo.FieldType);
System.Web.Extensions (1)
UI\WebControls\Dynamic.cs (1)
372
gen.
Emit
(OpCodes.Isinst, tb);
System.Xml (10)
System\Xml\Serialization\CodeGenerator.cs (10)
636
ilGen.
Emit
(OpCodes.Initobj, valueType);
641
ilGen.
Emit
(OpCodes.Newarr, elementType);
926
ilGen.
Emit
(OpCodes.Castclass, target);
930
ilGen.
Emit
(OpCodes.Box, type);
934
ilGen.
Emit
(OpCodes.Unbox, type);
1002
ilGen.
Emit
(OpCodes.Ldobj, type);
1007
ilGen.
Emit
(OpCodes.Stobj, type);
1040
ilGen.
Emit
(OpCodes.Ldtoken, t);
1447
ilGen.
Emit
(opCode, arrayElementType);
2104
ilGen.
Emit
(OpCodes.Isinst, type);