Author: miguel
Date: 2007-03-22 18:35:03 -0500 (Thu, 22 Mar 2007)
New Revision: 74858

Modified:
   trunk/mcs/class/corlib/System.Resources/NeutralResourcesLanguageAttribute.cs
Log:
Add new ctor

Modified: 
trunk/mcs/class/corlib/System.Resources/NeutralResourcesLanguageAttribute.cs
===================================================================
--- 
trunk/mcs/class/corlib/System.Resources/NeutralResourcesLanguageAttribute.cs    
    2007-03-22 23:26:43 UTC (rev 74857)
+++ 
trunk/mcs/class/corlib/System.Resources/NeutralResourcesLanguageAttribute.cs    
    2007-03-22 23:35:03 UTC (rev 74858)
@@ -36,10 +36,12 @@
        public sealed class NeutralResourcesLanguageAttribute : Attribute
        {
                
-               private string culture;
-               
+               string culture;
+#if NET_2_0
+               UltimateResourceFallbackLocation loc;
+#endif
                // Constructors
-               public NeutralResourcesLanguageAttribute (string cultureName)
+               public NeutralResourcesLanguageAttribute (string cultureName) 
                {
                        if(cultureName==null) {
                                throw new ArgumentNullException("culture is 
null");
@@ -47,9 +49,30 @@
                        
                        culture = cultureName;
                }
+
                public string CultureName
                {
-                               get { return culture; }
+                       get {
+                               return culture;
+                       }
                }
+
+#if NET_2_0
+               public NeutralResourcesLanguageAttribute (string cultureName, 
UltimateResourceFallbackLocation location)
+               {
+                       if(cultureName==null) {
+                               throw new ArgumentNullException("culture is 
null");
+                       }
+                       
+                       culture = cultureName;
+                       loc = location;
+               }
+               
+               public UltimateResourceFallbackLocation Location {
+                       get {
+                               return loc;
+                       }  
+               }
+#endif
        }
 }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to