[prev in list] [next in list] [prev in thread] [next in thread]
List: mono-patches
Subject: [Mono-patches] r67191 -
From: "Sebastien Pouliot (sebastien () ximian ! com)"
Date: 2006-10-31 21:11:49
Message-ID: 20061031211149.5F2139472C () mono-cvs ! ximian ! com
[Download RAW message or body]
Author: spouliot
Date: 2006-10-31 16:11:49 -0500 (Tue, 31 Oct 2006)
New Revision: 67191
Modified:
trunk/mcs/class/corlib/System.Configuration.Assemblies/AssemblyHash.cs
trunk/mcs/class/corlib/System.Configuration.Assemblies/AssemblyHashAlgorithm.cs
trunk/mcs/class/corlib/System.Configuration.Assemblies/AssemblyVersionCompatibility.cs
trunk/mcs/class/corlib/System.Configuration.Assemblies/ChangeLog
Log:
2006-10-31 Sebastien Pouliot <sebastien@ximian.com>
* AssemblyHashAlgorithm.cs: Added [Serializable] and
[ComVisible(true)] attributes for NET_2_0 profile.
* AssemblyHash.cs: Added bunch of [Obsolete] attributes to the NET_2_0
profile. Cleaned up the source code to match Mono source style.
* AssemblyVersionCompatibility.cs: Added [Serializable] and
[ComVisible(true)] attributes for NET_2_0 profile.
Modified: trunk/mcs/class/corlib/System.Configuration.Assemblies/AssemblyHash.cs
===================================================================
--- trunk/mcs/class/corlib/System.Configuration.Assemblies/AssemblyHash.cs 2006-10-31 \
20:52:52 UTC (rev 67190)
+++ trunk/mcs/class/corlib/System.Configuration.Assemblies/AssemblyHash.cs 2006-10-31 \
21:11:49 UTC (rev 67191) @@ -1,7 +1,12 @@
-
//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// AssemblyHash.cs
//
+// Authors:
+// Tomas Restrepo (tomasr@mvps.org)
+// Sebastien Pouliot <sebastien@ximian.com>
+//
+// Copyright (C) 2004, 2006 Novell, Inc (http://www.novell.com)
+//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
@@ -22,73 +27,73 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-//
-// AssemblyHash.cs
-//
-// Implementation of the
-// System.Configuration.Assemblies.AssemblyHash
-// class for the Mono Class Library
-//
-// Author:
-// Tomas Restrepo (tomasr@mvps.org)
-//
+using System.Runtime.InteropServices;
namespace System.Configuration.Assemblies {
-
+
[Serializable]
- public struct AssemblyHash : System.ICloneable
- {
- private AssemblyHashAlgorithm _algorithm;
- private byte[] _value;
+#if NET_2_0
+ [ComVisible (true)]
+ [Obsolete]
+#endif
+ public struct AssemblyHash : ICloneable {
- public static readonly AssemblyHash Empty =
- new AssemblyHash(AssemblyHashAlgorithm.None,null);
+ private AssemblyHashAlgorithm _algorithm;
+ private byte[] _value;
+ public static readonly AssemblyHash Empty = new AssemblyHash \
(AssemblyHashAlgorithm.None, null);
- //
- // properties
- //
- public AssemblyHashAlgorithm Algorithm {
- get { return _algorithm; }
- set { _algorithm = value; }
- }
+#if NET_2_0
+ [Obsolete]
+#endif
+ public AssemblyHashAlgorithm Algorithm {
+ get { return _algorithm; }
+ set { _algorithm = value; }
+ }
- //
- // construction
- //
- public AssemblyHash ( AssemblyHashAlgorithm algorithm, byte[] value )
- {
- _algorithm = algorithm;
- _value = null;
- if ( value != null )
- {
- int size = value.Length;
- _value = new byte[size];
- System.Array.Copy ( value, _value, size );
- }
- }
+#if NET_2_0
+ [Obsolete]
+#endif
+ public AssemblyHash (AssemblyHashAlgorithm algorithm, byte[] value)
+ {
+ _algorithm = algorithm;
+ if (value != null)
+ _value = (byte[]) value.Clone ();
+ else
+ _value = null;
+ }
- public AssemblyHash ( byte[] value )
- : this(AssemblyHashAlgorithm.SHA1, value)
- {
- }
+#if NET_2_0
+ [Obsolete]
+#endif
+ public AssemblyHash (byte[] value)
+ : this (AssemblyHashAlgorithm.SHA1, value)
+ {
+ }
- public object Clone()
- {
- return new AssemblyHash(_algorithm,_value);
- }
+#if NET_2_0
+ [Obsolete]
+#endif
+ public object Clone ()
+ {
+ return new AssemblyHash (_algorithm, _value);
+ }
- public byte[] GetValue()
- {
- return _value;
- }
- public void SetValue ( byte[] value )
- {
- _value = value;
- }
+#if NET_2_0
+ [Obsolete]
+#endif
+ public byte[] GetValue ()
+ {
+ return _value;
+ }
- } // class AssemblyHash
-
-} // namespace System.Configuration.Assemblies
-
+#if NET_2_0
+ [Obsolete]
+#endif
+ public void SetValue (byte[] value)
+ {
+ _value = value;
+ }
+ }
+}
Modified: trunk/mcs/class/corlib/System.Configuration.Assemblies/AssemblyHashAlgorithm.cs
===================================================================
--- trunk/mcs/class/corlib/System.Configuration.Assemblies/AssemblyHashAlgorithm.cs 2006-10-31 \
20:52:52 UTC (rev 67190)
+++ trunk/mcs/class/corlib/System.Configuration.Assemblies/AssemblyHashAlgorithm.cs 2006-10-31 \
21:11:49 UTC (rev 67191) @@ -8,10 +8,8 @@
// URL: http://devresource.hp.com/devresource/Docs/TechPapers/CSharp/all.xml
//
// (C) 2001 Ximian, Inc. http://www.ximian.com
-
+// Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
-//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
@@ -32,25 +30,17 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
+using System.Runtime.InteropServices;
namespace System.Configuration.Assemblies {
-
- /// <summary>
- /// </summary>
+#if NET_2_0
+ [Serializable]
+ [ComVisible (true)]
+#endif
public enum AssemblyHashAlgorithm {
-
- /// <summary>
- /// </summary>
None = 0,
-
- /// <summary>
- /// </summary>
MD5 = 32771,
-
- /// <summary>
- /// </summary>
- SHA1 = 32772,
- } // AssemblyHashAlgorithm
-
-} // System.Configuration.Assemblies
+ SHA1 = 32772
+ }
+}
Modified: trunk/mcs/class/corlib/System.Configuration.Assemblies/AssemblyVersionCompatibility.cs
===================================================================
--- trunk/mcs/class/corlib/System.Configuration.Assemblies/AssemblyVersionCompatibility.cs 2006-10-31 \
20:52:52 UTC (rev 67190)
+++ trunk/mcs/class/corlib/System.Configuration.Assemblies/AssemblyVersionCompatibility.cs 2006-10-31 \
21:11:49 UTC (rev 67191) @@ -8,10 +8,8 @@
// URL: http://devresource.hp.com/devresource/Docs/TechPapers/CSharp/all.xml
//
// (C) 2001 Ximian, Inc. http://www.ximian.com
-
+// Copyright (C) 2004, 2006 Novell, Inc (http://www.novell.com)
//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
-//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
@@ -32,25 +30,17 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
+using System.Runtime.InteropServices;
namespace System.Configuration.Assemblies {
-
- /// <summary>
- /// </summary>
+#if NET_2_0
+ [Serializable]
+ [ComVisible (true)]
+#endif
public enum AssemblyVersionCompatibility {
-
- /// <summary>
- /// </summary>
SameMachine = 1,
-
- /// <summary>
- /// </summary>
SameProcess = 2,
-
- /// <summary>
- /// </summary>
- SameDomain = 3,
- } // AssemblyVersionCompatibility
-
-} // System.Configuration.Assemblies
+ SameDomain = 3
+ }
+}
Modified: trunk/mcs/class/corlib/System.Configuration.Assemblies/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Configuration.Assemblies/ChangeLog 2006-10-31 \
20:52:52 UTC (rev 67190)
+++ trunk/mcs/class/corlib/System.Configuration.Assemblies/ChangeLog 2006-10-31 \
21:11:49 UTC (rev 67191) @@ -1,3 +1,12 @@
+2006-10-31 Sebastien Pouliot <sebastien@ximian.com>
+
+ * AssemblyHashAlgorithm.cs: Added [Serializable] and
+ [ComVisible(true)] attributes for NET_2_0 profile.
+ * AssemblyHash.cs: Added bunch of [Obsolete] attributes to the NET_2_0
+ profile. Cleaned up the source code to match Mono source style.
+ * AssemblyVersionCompatibility.cs: Added [Serializable] and
+ [ComVisible(true)] attributes for NET_2_0 profile.
+
2001-07-13 Tomas Restrepo (tomasr@mvps.org)
* AssemblyHash finished
@@ -3,3 +12,3 @@
* AssemblyHashAlgorithm finished
* AssemblyVersion finished
-
\ No newline at end of file
+
_______________________________________________
Mono-patches maillist - Mono-patches@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-patches
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic