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

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

[Dotgnu-pnet-commits] CVS: pnetlib/Xsharp S.cs,1.1,1.2


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/Xsharp S.cs,1.1,1.2
Date: Wed, 28 May 2003 00:53:39 -0400

Update of /cvsroot/dotgnu-pnet/pnetlib/Xsharp
In directory subversions:/tmp/cvs-serv730/Xsharp

Modified Files:
        S.cs 
Log Message:


Minor fixes to build in non-full profiles.


Index: S.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/Xsharp/S.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** S.cs        28 May 2003 04:17:53 -0000      1.1
--- S.cs        28 May 2003 04:53:36 -0000      1.2
***************
*** 28,33 ****
  internal sealed class S
  {
!       // Cached copy of the resources for this assembly.
        private static ResourceManager stringResources = null;
  
        // Helper for obtaining string resources for this assembly.
--- 28,39 ----
  internal sealed class S
  {
! #if CONFIG_RUNTIME_INFRA
! 
!       // Cached copy of the resources for this assembly and mscorlib.
! #if ECMA_COMPAT
!       private static ECMAResourceManager stringResources = null;
! #else
        private static ResourceManager stringResources = null;
+ #endif
  
        // Helper for obtaining string resources for this assembly.
***************
*** 38,47 ****
--- 44,68 ----
                                        if(stringResources == null)
                                        {
+                                       #if ECMA_COMPAT
+                                               stringResources = new 
ECMAResourceManager
+                                                       ("Xsharp", 
(typeof(S)).Assembly);
+                                       #else
                                                stringResources = new 
ResourceManager
                                                        ("Xsharp", 
(typeof(S)).Assembly);
+                                       #endif
                                        }
                                        return stringResources.GetString(tag, 
null);
                                }
                        }
+ 
+ #else // !CONFIG_RUNTIME_INFRA
+ 
+       // We don't have sufficient runtime infrastructure to load resources.
+       public static String _(String tag)
+                       {
+                               return tag;
+                       }
+ 
+ #endif // !CONFIG_RUNTIME_INFRA
  
  } // class S





reply via email to

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