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

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEgor Bogatov <egorbo@gmail.com>2018-06-05 10:17:11 +0300
committerMarek Safar <marek.safar@gmail.com>2018-06-07 19:14:31 +0300
commit05a53870334c668fa6b6cdec39c3972b5ed0284d (patch)
treefc46b16949b7e58591caa964da0d73373605b899
parente49e094d9506d7b3062769e21413a9df1b3729b7 (diff)
hide more forwarders from corlib
-rw-r--r--src/Common/src/CoreLib/System/Boolean.cs2
-rw-r--r--src/Common/src/CoreLib/System/Char.cs2
-rw-r--r--src/Common/src/CoreLib/System/InvalidTimeZoneException.cs4
-rw-r--r--src/Common/src/CoreLib/System/TimeZoneNotFoundException.cs4
4 files changed, 12 insertions, 0 deletions
diff --git a/src/Common/src/CoreLib/System/Boolean.cs b/src/Common/src/CoreLib/System/Boolean.cs
index e476ef7ce6..fda749d5f3 100644
--- a/src/Common/src/CoreLib/System/Boolean.cs
+++ b/src/Common/src/CoreLib/System/Boolean.cs
@@ -18,7 +18,9 @@ using System.Runtime.Versioning;
namespace System
{
[Serializable]
+#if !MONO
[TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
+#endif
public struct Boolean : IComparable, IConvertible, IComparable<Boolean>, IEquatable<Boolean>
{
//
diff --git a/src/Common/src/CoreLib/System/Char.cs b/src/Common/src/CoreLib/System/Char.cs
index d0630ea1b2..01c0ae3f66 100644
--- a/src/Common/src/CoreLib/System/Char.cs
+++ b/src/Common/src/CoreLib/System/Char.cs
@@ -21,7 +21,9 @@ namespace System
{
[Serializable]
[StructLayout(LayoutKind.Sequential)]
+#if !MONO
[System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
+#endif
public struct Char : IComparable, IComparable<Char>, IEquatable<Char>, IConvertible
{
//
diff --git a/src/Common/src/CoreLib/System/InvalidTimeZoneException.cs b/src/Common/src/CoreLib/System/InvalidTimeZoneException.cs
index 25b155e8d1..3a7e41c843 100644
--- a/src/Common/src/CoreLib/System/InvalidTimeZoneException.cs
+++ b/src/Common/src/CoreLib/System/InvalidTimeZoneException.cs
@@ -7,7 +7,11 @@ using System.Runtime.Serialization;
namespace System
{
[Serializable]
+#if MONO
+ [System.Runtime.CompilerServices.TypeForwardedFrom("System.Core, Version=2.0.5.0, Culture=Neutral, PublicKeyToken=7cec85d7bea7798e")]
+#else
[System.Runtime.CompilerServices.TypeForwardedFrom("System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
+#endif
public class InvalidTimeZoneException : Exception
{
public InvalidTimeZoneException()
diff --git a/src/Common/src/CoreLib/System/TimeZoneNotFoundException.cs b/src/Common/src/CoreLib/System/TimeZoneNotFoundException.cs
index f83c6443c3..36c3d7ef08 100644
--- a/src/Common/src/CoreLib/System/TimeZoneNotFoundException.cs
+++ b/src/Common/src/CoreLib/System/TimeZoneNotFoundException.cs
@@ -7,7 +7,11 @@ using System.Runtime.Serialization;
namespace System
{
[Serializable]
+#if MONO
+ [System.Runtime.CompilerServices.TypeForwardedFrom("System.Core, Version=2.0.5.0, Culture=Neutral, PublicKeyToken=7cec85d7bea7798e")]
+#else
[System.Runtime.CompilerServices.TypeForwardedFrom("System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
+#endif
public class TimeZoneNotFoundException : Exception
{
public TimeZoneNotFoundException()