Skip to content

Commit 01c5d10

Browse files
ngbrownhazzik
authored andcommitted
NH-3807 - Guard CodeDom and handle switch between DelegateBuilder creation calls.
1 parent 5fb4f65 commit 01c5d10

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/NHibernate/Bytecode/CodeDom/BytecodeProviderImpl.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#if FEATURE_CODEDOM
2+
13
using System;
24
using System.CodeDom.Compiler;
35
using System.Reflection;
@@ -262,3 +264,5 @@ private string GenerateCode()
262264
#endregion
263265
}
264266
}
267+
268+
#endif

src/NHibernate/Cfg/Environment.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,10 @@ private static IBytecodeProvider BuildBytecodeProvider(string providerName)
348348
{
349349
switch (providerName)
350350
{
351+
#if FEATURE_CODEDOM
351352
case "codedom":
352353
return new Bytecode.CodeDom.BytecodeProviderImpl();
354+
#endif
353355
case "lcg":
354356
return new Bytecode.Lightweight.BytecodeProviderImpl();
355357
case "null":

0 commit comments

Comments
 (0)