File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change
1
+ #if FEATURE_CODEDOM
2
+
1
3
using System ;
2
4
using System . CodeDom . Compiler ;
3
5
using System . Reflection ;
@@ -262,3 +264,5 @@ private string GenerateCode()
262
264
#endregion
263
265
}
264
266
}
267
+
268
+ #endif
Original file line number Diff line number Diff line change @@ -179,7 +179,11 @@ public static System.Type DefineDelegateType(
179
179
methodBuilder . SetImplementationFlags (
180
180
MethodImplAttributes . Runtime | MethodImplAttributes . Managed ) ;
181
181
182
+ #if FEATURE_LEGACY_REFLECTION_API
182
183
return delegateBuilder . CreateType ( ) ;
184
+ #else
185
+ return delegateBuilder . CreateTypeInfo ( ) . AsType ( ) ;
186
+ #endif
183
187
}
184
188
185
189
public static void EmitLoadType ( ILGenerator il , System . Type type )
Original file line number Diff line number Diff line change @@ -348,8 +348,10 @@ private static IBytecodeProvider BuildBytecodeProvider(string providerName)
348
348
{
349
349
switch ( providerName )
350
350
{
351
+ #if FEATURE_CODEDOM
351
352
case "codedom" :
352
353
return new Bytecode . CodeDom . BytecodeProviderImpl ( ) ;
354
+ #endif
353
355
case "lcg" :
354
356
return new Bytecode . Lightweight . BytecodeProviderImpl ( ) ;
355
357
case "null" :
You can’t perform that action at this time.
0 commit comments