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

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

[Dotgnu-pnet-commits] CVS: pnetlib/I18N/Common Strings.cs,1.2,1.3


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/I18N/Common Strings.cs,1.2,1.3
Date: Mon, 14 Apr 2003 21:48:07 -0400

Update of /cvsroot/dotgnu-pnet/pnetlib/I18N/Common
In directory subversions:/tmp/cvs-serv6765/I18N/Common

Modified Files:
        Strings.cs 
Log Message:


Mark the contents of "System.Resources" as non-ECMA and introduce
a cut-down resource API for use in ECMA_COMPAT mode in the other assemblies.


Index: Strings.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/I18N/Common/Strings.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** Strings.cs  9 Aug 2002 00:42:15 -0000       1.2
--- Strings.cs  15 Apr 2003 01:48:05 -0000      1.3
***************
*** 36,40 ****
--- 36,44 ----
  {
        // Cached copy of the resources for this assembly.
+ #if ECMA_COMPAT
+       private static ECMAResourceManager resources = null;
+ #else
        private static ResourceManager resources = null;
+ #endif
  
        // Helper for obtaining string resources for this assembly.
***************
*** 45,50 ****
--- 49,59 ----
                                        if(resources == null)
                                        {
+                                       #if ECMA_COMPAT
+                                               resources = new 
ECMAResourceManager
+                                                       ("I18N", 
Assembly.GetExecutingAssembly());
+                                       #else
                                                resources = new ResourceManager
                                                        ("I18N", 
Assembly.GetExecutingAssembly());
+                                       #endif
                                        }
                                        return resources.GetString(tag, null);





reply via email to

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