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 Activator.cs,1.6,1.7


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System Activator.cs,1.6,1.7
Date: Thu, 28 Nov 2002 17:28:01 -0500

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

Modified Files:
        Activator.cs 
Log Message:


Implement the missing functionality in "System.Activator".


Index: Activator.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Activator.cs,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** Activator.cs        6 Nov 2002 06:31:07 -0000       1.6
--- Activator.cs        28 Nov 2002 22:27:59 -0000      1.7
***************
*** 142,146 ****
        // a list of arguments, binding information, and a list of
        // activation attributes.
-       [TODO]
        public static ObjectHandle CreateInstance
                                (String assemblyName, String typeName, bool 
ignoreCase,
--- 142,145 ----
***************
*** 150,155 ****
                                 Evidence securityInfo)
        {
!               // TODO
!               return null;
        }
  
--- 149,157 ----
                                 Evidence securityInfo)
        {
!               Assembly assembly = Assembly.Load(assemblyName);
!               Type type = assembly.GetType(typeName, true, ignoreCase);
!               return new ObjectHandle
!                       (CreateInstance(type, bindingAttr, binder, args,
!                                                       culture, 
activationAttributes));
        }
  
***************
*** 185,189 ****
        // using "LoadFrom" instead of "Load" to load the assembly.
        // All relevant information is supplied.
-       [TODO]
        public static ObjectHandle CreateInstanceFrom
                                (String assemblyName, String typeName, bool 
ignoreCase,
--- 187,190 ----
***************
*** 193,198 ****
                                 Evidence securityInfo)
        {
!               // TODO
!               return null;
        }
  
--- 194,202 ----
                                 Evidence securityInfo)
        {
!               Assembly assembly = Assembly.LoadFrom(assemblyName);
!               Type type = assembly.GetType(typeName, true, ignoreCase);
!               return new ObjectHandle
!                       (CreateInstance(type, bindingAttr, binder, args,
!                                                       culture, 
activationAttributes));
        }
  





reply via email to

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