X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem%2FSystem.Net.Configuration%2FAuthenticationModuleElement.cs;h=62413a1d7c03cfc006bf1d79a2d22bc470fcf721;hb=b6513d2047228ee7ef7f50173bcc2432968b8e6e;hp=a0ab8bb36e44023e4ecc702cb850e30046e33c63;hpb=234225d112c4b018b8d1796f4c06a15812137500;p=mono.git diff --git a/mcs/class/System/System.Net.Configuration/AuthenticationModuleElement.cs b/mcs/class/System/System.Net.Configuration/AuthenticationModuleElement.cs old mode 100755 new mode 100644 index a0ab8bb36e4..62413a1d7c0 --- a/mcs/class/System/System.Net.Configuration/AuthenticationModuleElement.cs +++ b/mcs/class/System/System.Net.Configuration/AuthenticationModuleElement.cs @@ -3,9 +3,10 @@ // // Authors: // Tim Coleman (tim@timcoleman.com) +// Chris Toshok (toshok@ximian.com) // // Copyright (C) Tim Coleman, 2004 -// (c) 2004 Novell, Inc. (http://www.novell.com) +// (C) 2004,2005 Novell, Inc. (http://www.novell.com) // // @@ -29,7 +30,7 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -#if NET_2_0 && XML_DEP +#if NET_2_0 && CONFIGURATION_DEP using System.Configuration; @@ -39,21 +40,26 @@ namespace System.Net.Configuration { #region Fields - ConfigurationPropertyCollection properties; - static ConfigurationProperty type = new ConfigurationProperty ("Type", typeof (string), null); + static ConfigurationPropertyCollection properties; + static ConfigurationProperty typeProp; #endregion // Fields #region Constructors - public AuthenticationModuleElement () + static AuthenticationModuleElement () { + typeProp = new ConfigurationProperty ("type", typeof (string), null, ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey); properties = new ConfigurationPropertyCollection (); - properties.Add (type); + + properties.Add (typeProp); + } + + public AuthenticationModuleElement () + { } public AuthenticationModuleElement (string typeName) - : this () { Type = typeName; } @@ -62,13 +68,14 @@ namespace System.Net.Configuration #region Properties - protected internal override ConfigurationPropertyCollection Properties { + protected override ConfigurationPropertyCollection Properties { get { return properties; } } + [ConfigurationProperty ("type", Options = ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey)] public string Type { - get { return (string) base [type]; } - set { base [type] = value; } + get { return (string) base [typeProp]; } + set { base [typeProp] = value; } } #endregion // Properties