45 references to Castclass
mscorlib (7)
system\runtime\interopservices\tceadaptergen\eventproviderwriter.cs (7)
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) );
538
il.Emit( OpCodes.
Castclass
, typeof(IConnectionPoint) );
577
il.Emit( OpCodes.
Castclass
, typeof(IConnectionPointContainer) );
677
il.Emit( OpCodes.
Castclass
, SinkHelperClass );
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 (11)
Microsoft\Scripting\Compiler\BoundConstants.cs (1)
189
lc.IL.Emit(OpCodes.
Castclass
, type);
Microsoft\Scripting\Compiler\CompilerScope.Storage.cs (1)
140
Compiler.IL.Emit(OpCodes.
Castclass
, _boxType);
Microsoft\Scripting\Compiler\ILGen.cs (4)
504
il.Emit(OpCodes.
Castclass
, type);
520
il.Emit(OpCodes.
Castclass
, type);
643
il.Emit(OpCodes.
Castclass
, typeTo);
646
il.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)
134
gen.Emit(OpCodes.
Castclass
, declaringType);
136
gen.Emit(OpCodes.
Castclass
, navigationProperty.PropertyType);
227
gen.Emit(OpCodes.
Castclass
, mi.DeclaringType);
337
gen.Emit(OpCodes.
Castclass
, mi.DeclaringType);
System\Data\Objects\Internal\EntityProxyFactory.cs (3)
1021
gen.Emit(OpCodes.
Castclass
, _baseSetters[i].PropertyType);
1166
generator.Emit(OpCodes.
Castclass
, proxyType);
1685
generator.Emit(OpCodes.
Castclass
, field.FieldType);
System.Data.Linq (8)
SqlClient\Reader\ObjectReaderCompiler.cs (8)
993
gen.Emit(OpCodes.
Castclass
, sn.ClrType);
1457
gen.Emit(OpCodes.
Castclass
, actualType);
1589
gen.Emit(OpCodes.
Castclass
, expectedType);
1671
gen.Emit(OpCodes.
Castclass
, expectedType);
1689
gen.Emit(OpCodes.
Castclass
, expectedType);
1791
gen.Emit(OpCodes.
Castclass
, expectedType);
2162
gen.Emit(OpCodes.
Castclass
, varType);
2170
gen.Emit(OpCodes.
Castclass
, type);
System.Data.Services (3)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (1)
2359
generator.Emit(System.Reflection.Emit.OpCodes.
Castclass
, typeof(ObjectContext));
System\Data\Services\Providers\ReflectionServiceProvider.cs (1)
322
generator.Emit(System.Reflection.Emit.OpCodes.
Castclass
, this.Type);
System\Data\Services\Serializers\SyndicationSerializer.cs (1)
791
generator.Emit(OpCodes.
Castclass
, customObjectType);
System.Data.SqlXml (2)
System\Xml\Xsl\IlGen\GenerateHelper.cs (1)
900
Emit(OpCodes.
Castclass
, clrTypeDst);
System\Xml\Xsl\IlGen\IteratorDescriptor.cs (1)
627
this.helper.Emit(OpCodes.
Castclass
, typeof(XPathNavigator));
System.Runtime.Serialization (1)
System\Runtime\Serialization\CodeGenerator.cs (1)
929
ilGen.Emit(OpCodes.
Castclass
, target);
System.ServiceModel (1)
System\ServiceModel\Dispatcher\CodeGenerator.cs (1)
374
ilGen.Emit(OpCodes.
Castclass
, target);
System.Web (3)
Util\FastPropertyAccessor.cs (3)
134
il.Emit(OpCodes.
Castclass
, type);
176
il.Emit(OpCodes.
Castclass
, type);
234
il.Emit(OpCodes.
Castclass
, propertyType);
System.Xml (1)
System\Xml\Serialization\CodeGenerator.cs (1)
926
ilGen.Emit(OpCodes.
Castclass
, target);