Thu Sep 13 18:04:23 CEST 2001 Paolo Molaro <lupus@ximian.com>
authorPaolo Molaro <lupus@oddwiz.org>
Thu, 13 Sep 2001 12:09:03 +0000 (12:09 -0000)
committerPaolo Molaro <lupus@oddwiz.org>
Thu, 13 Sep 2001 12:09:03 +0000 (12:09 -0000)
* FileLoadException.cs, FileNotFoundException.cs: added.

Thu Sep 13 18:05:16 CEST 2001 Paolo Molaro <lupus@ximian.com>

* Assembly.cs: added stub code.

svn path=/trunk/mcs/; revision=807

mcs/class/corlib/System.IO/ChangeLog
mcs/class/corlib/System.IO/FileLoadException.cs [new file with mode: 0755]
mcs/class/corlib/System.IO/FileNotFoundException.cs [new file with mode: 0755]
mcs/class/corlib/System.IO/common.src
mcs/class/corlib/System.Reflection/Assembly.cs [new file with mode: 0644]
mcs/class/corlib/System.Reflection/ChangeLog
mcs/class/corlib/System.Reflection/common.src

index 790d003e5877e19b2d01a888b707d96e1f131f3e..46558ee67072a5517ad4112fddeeb670d89168bb 100644 (file)
@@ -1,3 +1,8 @@
+
+Thu Sep 13 18:04:23 CEST 2001 Paolo Molaro <lupus@ximian.com>
+
+       * FileLoadException.cs, FileNotFoundException.cs: added.
+
 2001-08-28  Dietmar Maurer  <dietmar@ximian.com>
 
        * TextReader.cs: implemented the Read method
diff --git a/mcs/class/corlib/System.IO/FileLoadException.cs b/mcs/class/corlib/System.IO/FileLoadException.cs
new file mode 100755 (executable)
index 0000000..65d233a
--- /dev/null
@@ -0,0 +1,29 @@
+//
+// System.IO.FileLoadException.cs
+//
+// Author:
+//   Paolo Molaro (lupus@ximian.com)
+//
+// (C) 2001 Ximian, Inc.  http://www.ximian.com
+//
+
+namespace System.IO {
+
+       public class FileLoadException : SystemException {
+               // Constructors
+               public FileLoadException ()
+                       : base ("I/O Error")
+               {
+               }
+
+               public FileLoadException (string message)
+                       : base (message)
+               {
+               }
+
+               public FileLoadException (string message, Exception inner)
+                       : base (message, inner)
+               {
+               }
+       }
+}
diff --git a/mcs/class/corlib/System.IO/FileNotFoundException.cs b/mcs/class/corlib/System.IO/FileNotFoundException.cs
new file mode 100755 (executable)
index 0000000..f506d1c
--- /dev/null
@@ -0,0 +1,29 @@
+//
+// System.IO.FileNotFoundException.cs
+//
+// Author:
+//   Paolo Molaro (lupus@ximian.com)
+//
+// (C) 2001 Ximian, Inc.  http://www.ximian.com
+//
+
+namespace System.IO {
+
+       public class FileNotFoundException : SystemException {
+               // Constructors
+               public FileNotFoundException ()
+                       : base ("File not found")
+               {
+               }
+
+               public FileNotFoundException (string message)
+                       : base (message)
+               {
+               }
+
+               public FileNotFoundException (string message, Exception inner)
+                       : base (message, inner)
+               {
+               }
+       }
+}
index 5121656018517cdda16d11d89bfcb707112e28a5..93b09d25e68464385f82ae3d1cbe6e32a6d2d2a4 100644 (file)
@@ -6,7 +6,9 @@ File.cs
 FileAccess.cs
 FileAttributes.cs
 FileInfo.cs
+FileLoadException.cs
 FileMode.cs
+FileNotFoundException.cs
 FileShare.cs
 FileStream.cs
 FileSystemInfo.cs
diff --git a/mcs/class/corlib/System.Reflection/Assembly.cs b/mcs/class/corlib/System.Reflection/Assembly.cs
new file mode 100644 (file)
index 0000000..3befe01
--- /dev/null
@@ -0,0 +1,278 @@
+using System;
+using System.Security.Policy;
+using System.Runtime.Serialization;
+using System.Reflection.Emit;
+using System.IO;
+using System.Globalization;
+
+namespace System.Reflection {
+
+       public class Assembly : System.Object, System.Reflection.ICustomAttributeProvider,
+               System.Security.IEvidenceFactory, System.Runtime.Serialization.ISerializable {
+
+               private string codebase;
+               private string copiedcodebase;
+               private string fullname;
+               private string location;
+               private Evidence evidence;
+               private MethodInfo entrypoint;
+       
+               public virtual string CodeBase { get {return codebase;} }
+
+               public virtual string CopiedCodeBase { get {return copiedcodebase;} } 
+
+               public virtual string FullName { get {return fullname;} }
+
+               public MethodInfo EntryPoint { get {return entrypoint;} }
+
+               public virtual Evidence Evidence { get {return evidence;} }
+
+               public String Location { get {return location;} }
+
+               public virtual void GetObjectData(SerializationInfo info, StreamingContext context)
+               {
+               }
+
+               public virtual Boolean IsDefined(Type attributeType)
+               {
+                       return false;
+               }
+
+               public virtual bool IsDefined (Type attribute_type, bool inherit)
+               {
+                       return false;
+               }
+
+               public virtual Object[] GetCustomAttributes()
+               {
+                       return null;
+               }
+
+               public virtual Object[] GetCustomAttributes(Type attributeType)
+               {
+                       return null;
+               }
+               
+               public virtual object [] GetCustomAttributes (bool inherit)
+               {
+                       return null;
+               }
+
+               public virtual object [] GetCustomAttributes (Type attribute_type, bool inherit)
+               {
+                       return null;
+               }
+
+               public virtual void RemoveOnTypeResolve(ResolveEventHandler handler)
+               {
+               }
+
+               public virtual void AddOnTypeResolve(ResolveEventHandler handler)
+               {
+               }
+
+               public virtual void RemoveOnResourceResolve(ResolveEventHandler handler)
+               {
+               }
+               
+               public virtual void AddOnResourceResolve(ResolveEventHandler handler)
+               {
+               }
+
+               public virtual ModuleBuilder DefineDynamicModule(String name, Boolean emitSymbolInfo)
+               {
+                       return null;
+               }
+
+               public virtual ModuleBuilder DefineDynamicModule(String name)
+               {
+                       return null;
+               }
+
+               public virtual FileStream[] GetFiles()
+               {
+                       return null;
+               }
+
+               public virtual FileStream GetFile(String name)
+               {
+                       return null;
+               }
+
+               public virtual Stream GetManifestResourceStream(String name)
+               {
+                       return null;
+               }
+
+               public virtual Stream GetManifestResourceStream(Type type, String name)
+               {
+                       return null;
+               }
+
+               public virtual Type[] GetTypes()
+               {
+                       return null;
+               }
+
+               public virtual Type[] GetExportedTypes()
+               {
+                       return null;
+               }
+
+               public virtual Type GetType(String name, Boolean throwOnError)
+               {
+                       return null;
+               }
+
+               public virtual Type GetType(String name)
+               {
+                       return GetType (name, true);
+               }
+               
+               public virtual AssemblyName GetName(Boolean copiedName)
+               {
+                       return null;
+               }
+
+               public virtual AssemblyName GetName()
+               {
+                       return null;
+               }
+
+               public override String ToString()
+               {
+                       return "FIXME: assembly";
+               }
+               
+               public static String CreateQualifiedName(String assemblyName, String typeName) 
+               {
+                       return "FIXME: assembly";
+               }
+
+               public static String nCreateQualifiedName(String assemblyName, String typeName)
+               {
+                       return "FIXME: assembly";
+               }
+
+               public static Assembly GetAssembly(Type type)
+               {
+                       return null;
+               }
+
+               public Type GetType(String name, Boolean throwOnError, Boolean ignoreCase)
+               {
+                       return null;
+               }
+
+               public Assembly GetSatelliteAssembly(CultureInfo culture)
+               {
+                       return null;
+               }
+
+               public static Assembly LoadFrom(String assemblyFile)
+               {
+                       return null;
+               }
+
+               public static Assembly LoadFrom(String assemblyFile, Evidence securityEvidence)
+               {
+                       return null;
+               }
+
+               public static Assembly Load(String assemblyString)
+               {
+                       return null;
+               }
+               
+               public static Assembly Load(String assemblyString, Evidence assemblySecurity)
+               {
+                       return null;
+               }
+
+               public static Assembly Load(AssemblyName assemblyRef)
+               {
+                       return null;
+               }
+
+               public static Assembly Load(AssemblyName assemblyRef, Evidence assemblySecurity)
+               {
+                       return null;
+               }
+
+               public static Assembly Load(Byte[] rawAssembly)
+               {
+                       return null;
+               }
+
+               public static Assembly Load(Byte[] rawAssembly, Byte[] rawSymbolStore)
+               {
+                       return null;
+               }
+
+               public static Assembly Load(Byte[] rawAssembly, Byte[] rawSymbolStore, Evidence securityEvidence)
+               {
+                       return null;
+               }
+
+               public Object CreateInstance(String typeName) 
+               {
+                       return null;
+               }
+
+               public Object CreateInstance(String typeName, Boolean ignoreCase)
+               {
+                       return null;
+               }
+
+               public Object CreateInstance(String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
+               {
+                       return null;
+               }
+
+               public Module[] GetLoadedModules()
+               {
+                       return null;
+               }
+
+               public Module[] GetModules()
+               {
+                       return null;
+               }
+
+               public Module GetModule(String name)
+               {
+                       return null;
+               }
+
+               public String[] GetManifestResourceNames()
+               {
+                       return null;
+               }
+
+               public static Assembly GetExecutingAssembly()
+               {
+                       return null;
+               }
+
+               public AssemblyName[] GetReferencedAssemblies()
+               {
+                       return null;
+               }
+
+               public ManifestResourceInfo GetManifestResourceInfo(String resourceName)
+               {
+                       return null;
+               }
+
+               public static Assembly Load(AssemblyName assemblyRef, Evidence assemblySecurity, String callerLocation)
+               {
+                       return null;
+               }
+
+               public static Assembly Load(String assemblyString, Evidence assemblySecurity, String callerLocation)
+               {
+                       return null;
+               }
+
+       }
+}
index 3f67105fd41bc7ef5b8be1a71866a30139c4ea0c..991f80327cbddd153df04ffd2307b2821e4712c8 100644 (file)
@@ -1,3 +1,8 @@
+\r
+Thu Sep 13 18:05:16 CEST 2001 Paolo Molaro <lupus@ximian.com>\r
+\r
+       * Assembly.cs: added stub code.\r
+\r
 2001-07-18  Michael Lambert <michaellambert@email.com>\r
 \r
        * BindingFlags.cs: Add.\r
index 52f5947a0cb86b4d012f9286d90a897aa5432e45..8093cfad9c06d5c2af5eb35df32c84d393f7f81c 100644 (file)
@@ -1,3 +1,4 @@
+Assembly.cs
 AssemblyNameFlags.cs
 BindingFlags.cs
 CallingConventions.cs