File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 21
21
<OutputName >mscorlib</OutputName >
22
22
<IsCoreAssembly >true</IsCoreAssembly >
23
23
<IsMscorlib >true</IsMscorlib >
24
+ <DefineConstants >$(DefineConstants);NANOCLR_APPDOMAINS</DefineConstants >
24
25
<TargetFrameworkVersion >v1.0</TargetFrameworkVersion >
25
26
<DocumentationFile >bin\$(Configuration)\mscorlib.xml</DocumentationFile >
26
27
</PropertyGroup >
Original file line number Diff line number Diff line change 4
4
// See LICENSE file in the project root for full license information.
5
5
//
6
6
7
+ ///////////////////////////////////////////////////
8
+ // DEV NOTE: to enable the AppDomain API add //
9
+ // 'NANOCLR_APPDOMAINS' to the compile constants //
10
+ ///////////////////////////////////////////////////
11
+ #if ( NANOCLR_APPDOMAINS )
12
+
7
13
using System . Reflection ;
8
14
using System . Threading ;
9
15
using System . Runtime . CompilerServices ;
@@ -113,3 +119,4 @@ public Assembly Load(String assemblyString)
113
119
public static extern void Unload ( AppDomain domain ) ;
114
120
}
115
121
}
122
+ #endif // #if (NANOCLR_APPDOMAINS)
Original file line number Diff line number Diff line change @@ -168,11 +168,16 @@ public extern ThreadState ThreadState
168
168
get ;
169
169
}
170
170
171
+ #if ( NANOCLR_APPDOMAINS )
172
+
171
173
/// <summary>
172
174
/// Returns the current domain in which the current thread is running.
173
175
/// </summary>
174
176
/// <returns>An AppDomain representing the current application domain of the running thread.</returns>
175
177
[ MethodImpl ( MethodImplOptions . InternalCall ) ]
176
178
public static extern AppDomain GetDomain ( ) ;
179
+
180
+ #endif // #if (NANOCLR_APPDOMAINS)
181
+
177
182
}
178
183
}
You can’t perform that action at this time.
0 commit comments