45 references to Castclass
mscorlib (7)
system\runtime\interopservices\tceadaptergen\eventproviderwriter.cs (7)
188il.Emit( OpCodes.Castclass, typeof(Object) ); 209il.Emit( OpCodes.Castclass, typeof(Object) ); 354il.Emit( OpCodes.Castclass, SinkHelperClass ); 369il.Emit( OpCodes.Castclass, typeof(Object) ); 538il.Emit( OpCodes.Castclass, typeof(IConnectionPoint) ); 577il.Emit( OpCodes.Castclass, typeof(IConnectionPointContainer) ); 677il.Emit( OpCodes.Castclass, SinkHelperClass );
System.AddIn (1)
System\Addin\Hosting\AddInActivator.cs (1)
475il.Emit(OpCodes.Castclass, argType); // need to cast Object to the specific Contract type expected by the constructor
System.Core (11)
Microsoft\Scripting\Compiler\BoundConstants.cs (1)
189lc.IL.Emit(OpCodes.Castclass, type);
Microsoft\Scripting\Compiler\CompilerScope.Storage.cs (1)
140Compiler.IL.Emit(OpCodes.Castclass, _boxType);
Microsoft\Scripting\Compiler\ILGen.cs (4)
504il.Emit(OpCodes.Castclass, type); 520il.Emit(OpCodes.Castclass, type); 643il.Emit(OpCodes.Castclass, typeTo); 646il.Emit(OpCodes.Castclass, typeTo);
Microsoft\Scripting\Compiler\LambdaCompiler.Expressions.cs (1)
139_ilg.Emit(OpCodes.Castclass, type);
Microsoft\Scripting\Compiler\LambdaCompiler.Lambda.cs (1)
106_ilg.Emit(OpCodes.Castclass, delegateType);
Microsoft\Scripting\Compiler\LambdaCompiler.Logical.cs (2)
207_ilg.Emit(OpCodes.Castclass, b.Type); 213_ilg.Emit(OpCodes.Castclass, b.Type);
Microsoft\Scripting\Compiler\LambdaCompiler.Unary.cs (1)
52_ilg.Emit(OpCodes.Castclass, quote.Type);
System.Data.Entity (7)
System\Data\Metadata\Edm\LightweightCodeGenerator.cs (4)
134gen.Emit(OpCodes.Castclass, declaringType); 136gen.Emit(OpCodes.Castclass, navigationProperty.PropertyType); 227gen.Emit(OpCodes.Castclass, mi.DeclaringType); 337gen.Emit(OpCodes.Castclass, mi.DeclaringType);
System\Data\Objects\Internal\EntityProxyFactory.cs (3)
1021gen.Emit(OpCodes.Castclass, _baseSetters[i].PropertyType); 1166generator.Emit(OpCodes.Castclass, proxyType); 1685generator.Emit(OpCodes.Castclass, field.FieldType);
System.Data.Linq (8)
SqlClient\Reader\ObjectReaderCompiler.cs (8)
993gen.Emit(OpCodes.Castclass, sn.ClrType); 1457gen.Emit(OpCodes.Castclass, actualType); 1589gen.Emit(OpCodes.Castclass, expectedType); 1671gen.Emit(OpCodes.Castclass, expectedType); 1689gen.Emit(OpCodes.Castclass, expectedType); 1791gen.Emit(OpCodes.Castclass, expectedType); 2162gen.Emit(OpCodes.Castclass, varType); 2170gen.Emit(OpCodes.Castclass, type);
System.Data.Services (3)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (1)
2359generator.Emit(System.Reflection.Emit.OpCodes.Castclass, typeof(ObjectContext));
System\Data\Services\Providers\ReflectionServiceProvider.cs (1)
322generator.Emit(System.Reflection.Emit.OpCodes.Castclass, this.Type);
System\Data\Services\Serializers\SyndicationSerializer.cs (1)
791generator.Emit(OpCodes.Castclass, customObjectType);
System.Data.SqlXml (2)
System\Xml\Xsl\IlGen\GenerateHelper.cs (1)
900Emit(OpCodes.Castclass, clrTypeDst);
System\Xml\Xsl\IlGen\IteratorDescriptor.cs (1)
627this.helper.Emit(OpCodes.Castclass, typeof(XPathNavigator));
System.Runtime.Serialization (1)
System\Runtime\Serialization\CodeGenerator.cs (1)
929ilGen.Emit(OpCodes.Castclass, target);
System.ServiceModel (1)
System\ServiceModel\Dispatcher\CodeGenerator.cs (1)
374ilGen.Emit(OpCodes.Castclass, target);
System.Web (3)
Util\FastPropertyAccessor.cs (3)
134il.Emit(OpCodes.Castclass, type); 176il.Emit(OpCodes.Castclass, type); 234il.Emit(OpCodes.Castclass, propertyType);
System.Xml (1)
System\Xml\Serialization\CodeGenerator.cs (1)
926ilGen.Emit(OpCodes.Castclass, target);