summaryrefslogtreecommitdiff
path: root/src/mscorlib/src/System/Reflection/AssemblyName.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/mscorlib/src/System/Reflection/AssemblyName.cs')
-rw-r--r--src/mscorlib/src/System/Reflection/AssemblyName.cs16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/mscorlib/src/System/Reflection/AssemblyName.cs b/src/mscorlib/src/System/Reflection/AssemblyName.cs
index f1d58ba44a..5575af18e5 100644
--- a/src/mscorlib/src/System/Reflection/AssemblyName.cs
+++ b/src/mscorlib/src/System/Reflection/AssemblyName.cs
@@ -25,10 +25,12 @@ namespace System.Reflection {
using System.Runtime.Versioning;
using System.Diagnostics.Contracts;
+#if FEATURE_SERIALIZATION
[Serializable]
+#endif
[ClassInterface(ClassInterfaceType.None)]
[ComDefaultInterface(typeof(_AssemblyName))]
-[System.Runtime.InteropServices.ComVisible(true)]
+ [System.Runtime.InteropServices.ComVisible(true)]
public sealed class AssemblyName : _AssemblyName, ICloneable, ISerializable, IDeserializationCallback
{
//
@@ -105,13 +107,13 @@ namespace System.Reflection {
public String CodeBase
{
- #if FEATURE_CORECLR
+#if FEATURE_CORECLR
[System.Security.SecurityCritical] // auto-generated
- #endif
+#endif
get { return _CodeBase; }
- #if FEATURE_CORECLR
+#if FEATURE_CORECLR
[System.Security.SecurityCritical] // auto-generated
- #endif
+#endif
set { _CodeBase = value; }
}
@@ -309,7 +311,7 @@ namespace System.Reflection {
info.AddValue("_Name", _Name);
info.AddValue("_PublicKey", _PublicKey, typeof(byte[]));
info.AddValue("_PublicKeyToken", _PublicKeyToken, typeof(byte[]));
-#if FEATURE_USE_LCID
+#if FEATURE_USE_LCID
info.AddValue("_CultureInfo", (_CultureInfo == null) ? -1 :_CultureInfo.LCID);
#endif
info.AddValue("_CodeBase", _CodeBase);
@@ -335,7 +337,7 @@ namespace System.Reflection {
int lcid = (int)m_siInfo.GetInt32("_CultureInfo");
if (lcid != -1)
_CultureInfo = new CultureInfo(lcid);
-#endif
+#endif
_CodeBase = m_siInfo.GetString("_CodeBase");
_Version = (Version) m_siInfo.GetValue("_Version", typeof(Version));