Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2016-09-30 18:43:08 +0300
committerMichal Strehovský <MichalStrehovsky@users.noreply.github.com>2016-09-30 18:43:08 +0300
commitffa46916c4a43bb5b5bcc33ca763db7d144ea964 (patch)
treec5ffc19e60bb867368455a0451b7d45d7f797144 /src/Test.CoreLib
parentb0b34b90bb58e61935ba5e8d54b6b370d01726ec (diff)
Move EagerStaticClassConstructionAttribute under Runtime.Base to reduce ifdefs (#1955)
Diffstat (limited to 'src/Test.CoreLib')
-rw-r--r--src/Test.CoreLib/src/System/Runtime/CompilerServices/EagerStaticClassConstructionAttribute.cs13
-rw-r--r--src/Test.CoreLib/src/Test.CoreLib.csproj4
2 files changed, 3 insertions, 14 deletions
diff --git a/src/Test.CoreLib/src/System/Runtime/CompilerServices/EagerStaticClassConstructionAttribute.cs b/src/Test.CoreLib/src/System/Runtime/CompilerServices/EagerStaticClassConstructionAttribute.cs
deleted file mode 100644
index 7556f57c9..000000000
--- a/src/Test.CoreLib/src/System/Runtime/CompilerServices/EagerStaticClassConstructionAttribute.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-
-namespace System.Runtime.CompilerServices
-{
- // When applied to a type this custom attribute will cause any static class constructor to be run eagerly
- // at module load time rather than deferred till just before the class is used.
- [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, Inherited = false, AllowMultiple = false)]
- public class EagerStaticClassConstructionAttribute : Attribute
- {
- }
-}
diff --git a/src/Test.CoreLib/src/Test.CoreLib.csproj b/src/Test.CoreLib/src/Test.CoreLib.csproj
index 041706c58..5ac1e8833 100644
--- a/src/Test.CoreLib/src/Test.CoreLib.csproj
+++ b/src/Test.CoreLib/src/Test.CoreLib.csproj
@@ -172,6 +172,9 @@
<Compile Include="..\..\Runtime.Base\src\System\RuntimeTypeHandle.cs">
<Link>System\RuntimeTypeHandle.cs</Link>
</Compile>
+ <Compile Include="..\..\Runtime.Base\src\System\Runtime\CompilerServices\EagerStaticClassConstructionAttribute.cs">
+ <Link>System\Runtime\CompilerServices\EagerStaticClassConstructionAttribute.cs</Link>
+ </Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\CompilerServices\IntrinsicAttribute.cs">
<Link>System\Runtime\CompilerServices\IntrinsicAttribute.cs</Link>
</Compile>
@@ -241,7 +244,6 @@
<Compile Include="..\..\Runtime.Base\src\System\Void.cs">
<Link>System\Void.cs</Link>
</Compile>
- <Compile Include="System\Runtime\CompilerServices\EagerStaticClassConstructionAttribute.cs" />
<Compile Include="System\Runtime\RuntimeImports.cs" />
<Compile Include="System\RuntimeExceptionHelpers.cs" />
</ItemGroup>