Merge pull request #439 from mono-soc-2012/garyb/iconfix
[mono.git] / mcs / class / System / System.ComponentModel / SettingsBindableAttribute.cs
index 29e3a87a19f2cecd8c424c61973445b032bb7360..9833d7d277d7db6260df83ca1a1ce6b457311a05 100644 (file)
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
-
 namespace System.ComponentModel
 {
+       [AttributeUsage (AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
        public sealed class SettingsBindableAttribute : Attribute
        {
-               public static SettingsBindableAttribute Yes =
-                       new SettingsBindableAttribute (true);
-               public static SettingsBindableAttribute No =
-                       new SettingsBindableAttribute (false);
+               public static readonly SettingsBindableAttribute Yes = new SettingsBindableAttribute (true);
+               public static readonly SettingsBindableAttribute No = new SettingsBindableAttribute (false);
 
                public SettingsBindableAttribute (bool bindable)
                {
@@ -63,5 +60,3 @@ namespace System.ComponentModel
                }
        }
 }
-
-#endif