dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Reflection Assembly.cs


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Reflection Assembly.cs, 1.31, 1.32
Date: Fri, 22 Aug 2003 21:44:55 -0400

Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Reflection
In directory subversions:/tmp/cvs-serv12555/runtime/System/Reflection

Modified Files:
        Assembly.cs 
Log Message:


Add missing internalcall's to "System.Reflection.Assembly".


Index: Assembly.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Reflection/Assembly.cs,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -r1.31 -r1.32
*** Assembly.cs 22 Aug 2003 03:44:55 -0000      1.31
--- Assembly.cs 23 Aug 2003 01:44:53 -0000      1.32
***************
*** 642,645 ****
--- 642,649 ----
                        }
  
+       // Get a module by name from this assembly.
+       [MethodImpl(MethodImplOptions.InternalCall)]
+       extern private Module GetModuleInternal(String name);
+ 
        // Get a particular module from within this assembly.
        public Module GetModule(String name)
***************
*** 649,654 ****
                                        throw new ArgumentNullException("name");
                                }
!                               // TODO
!                               return null;
                        }
  
--- 653,662 ----
                                        throw new ArgumentNullException("name");
                                }
!                               else if(name.Length == 0)
!                               {
!                                       throw new ArgumentException
!                                               (_("ArgRange_StringNotEmpty"), 
"name");
!                               }
!                               return GetModuleInternal(name);
                        }
  
***************
*** 658,667 ****
                                return GetModules(false);
                        }
!       [TODO]
!       public Module[] GetModules(bool getResourceModules)
!                       {
!                               // TODO
!                               return new Module [0];
!                       }
  
        // Fill in an assembly name block with a loaded assembly's information.
--- 666,671 ----
                                return GetModules(false);
                        }
!       [MethodImpl(MethodImplOptions.InternalCall)]
!       extern public Module[] GetModules(bool getResourceModules);
  
        // Fill in an assembly name block with a loaded assembly's information.
***************
*** 696,705 ****
                        }
  
        // Get a list of the assemblies that are referenced by this one.
-       [TODO]
        public AssemblyName[] GetReferencedAssemblies()
                        {
!                               // TODO
!                               return new AssemblyName [0];
                        }
  
--- 700,722 ----
                        }
  
+       // Get the assemblies referenced by this one.
+       [MethodImpl(MethodImplOptions.InternalCall)]
+       extern private Assembly[] GetReferencedAssembliesInternal();
+ 
        // Get a list of the assemblies that are referenced by this one.
        public AssemblyName[] GetReferencedAssemblies()
                        {
!                               Assembly[] list = 
GetReferencedAssembliesInternal();
!                               if(list == null)
!                               {
!                                       return null;
!                               }
!                               AssemblyName[] names = new AssemblyName 
[list.Length];
!                               int posn;
!                               for(posn = 0; posn < list.Length; ++posn)
!                               {
!                                       names[posn] = list[posn].GetName();
!                               }
!                               return names;
                        }
  





reply via email to

[Prev in Thread] Current Thread [Next in Thread]