Преглед изворни кода

2007-05-01 Dick Porter <[email protected]>

	* File.cs:
	* Stream.cs: Missed a few 2.0 methods

2007-05-01  Dick Porter  <[email protected]>

	* RegistryKeyPermissionCheck.cs: Not serializable



svn path=/trunk/mcs/; revision=76523
Dick Porter пре 18 година
родитељ
комит
bf9bb4bc89

+ 4 - 0
mcs/class/corlib/Microsoft.Win32/ChangeLog

@@ -1,3 +1,7 @@
+2007-05-01  Dick Porter  <[email protected]>
+
+	* RegistryKeyPermissionCheck.cs: Not serializable
+
 2007-04-30  Dick Porter  <[email protected]>
 
 	* Registry.cs: 

+ 0 - 1
mcs/class/corlib/Microsoft.Win32/RegistryKeyPermissionCheck.cs

@@ -32,7 +32,6 @@ using System;
 namespace Microsoft.Win32
 {
 
-	[Serializable]
 	public enum RegistryKeyPermissionCheck
 	{
 		Default			= 0,

+ 5 - 0
mcs/class/corlib/System.IO/ChangeLog

@@ -1,3 +1,8 @@
+2007-05-01  Dick Porter  <[email protected]>
+
+	* File.cs:
+	* Stream.cs: Missed a few 2.0 methods
+
 2007-04-30  Dick Porter  <[email protected]>
 
 	* Directory.cs: 

+ 36 - 1
mcs/class/corlib/System.IO/File.cs

@@ -1,5 +1,5 @@
 // 
-// System.IO.FIle.cs 
+// System.IO.File.cs 
 //
 // 
 // Authors:
@@ -217,6 +217,18 @@ namespace System.IO
 			return MonoIO.ExistsFile (path, out error);
 		}
 
+#if NET_2_0
+		public static FileSecurity GetAccessControl (string path)
+		{
+			throw new NotImplementedException ();
+		}
+		
+		public static FileSecurity GetAccessControl (string path, AccessControlSections includeSections)
+		{
+			throw new NotImplementedException ();
+		}
+#endif
+
 		public static FileAttributes GetAttributes (string path)
 		{
 			if (null == path) {
@@ -382,6 +394,29 @@ namespace System.IO
 			return new FileStream(path, FileMode.OpenOrCreate, FileAccess.Write, FileShare.None);
 		}
 
+#if NET_2_0
+		public static void Replace (string sourceFileName,
+					    string destinationFileName,
+					    string destinationBackupFileName)
+		{
+			throw new NotImplementedException ();
+		}
+		
+		public static void Replace (string sourceFileName,
+					    string destinationFileName,
+					    string destinationBackupFileName,
+					    bool ignoreMetadataErrors)
+		{
+			throw new NotImplementedException ();
+		}
+		
+		public static void SetAccessControl (string path,
+						     FileSecurity fileSecurity)
+		{
+			throw new NotImplementedException ();
+		}
+#endif
+
 		public static void SetAttributes (string path,
 						  FileAttributes attributes)
 		{

+ 8 - 0
mcs/class/corlib/System.IO/Stream.cs

@@ -40,6 +40,9 @@ using System.Runtime.InteropServices;
 namespace System.IO
 {
 	[Serializable]
+#if NET_2_0
+	[ComVisible (true)]
+#endif
 	public abstract class Stream : MarshalByRefObject, IDisposable
 	{
 		public static readonly Stream Null = new NullStream ();
@@ -124,6 +127,11 @@ namespace System.IO
 				throw new InvalidOperationException ("Timeouts are not supported on this stream.");
 			}
 		}
+
+		public static Stream Synchronized (Stream stream)
+		{
+			throw new NotImplementedException ();
+		}
 #else
 		// 1.1 version of Close
 		public virtual void Close ()