Selaa lähdekoodia

* EditorBrowsableState.cs: Changed line ending from CRLF to LF to
match other sources. Set eol-style to native.
* ExtenderProvidedPropertyAttribute.cs: Changed line ending from CRLF
to LF to match other sources. Set eol-style to native.
* RefreshEventHandler.cs: Changed line ending from CRLF to LF to match
other sources. Set eol-style to native.
* TypeDescriptor.cs: Changed line ending from CRLF to LF to match
other sources. Set eol-style to native.

svn path=/trunk/mcs/; revision=48508

Gert Driesen 20 vuotta sitten
vanhempi
sitoutus
12c0390838

+ 11 - 0
mcs/class/System/System.ComponentModel/ChangeLog

@@ -1,3 +1,14 @@
+2005-08-18  Gert Driesen <[email protected]>
+
+	* EditorBrowsableState.cs: Changed line ending from CRLF to LF to
+	match other sources. Set eol-style to native.
+	* ExtenderProvidedPropertyAttribute.cs: Changed line ending from CRLF
+	to LF to match other sources. Set eol-style to native.
+	* RefreshEventHandler.cs: Changed line ending from CRLF to LF to match
+	other sources. Set eol-style to native.
+	* TypeDescriptor.cs: Changed line ending from CRLF to LF to match 
+	other sources. Set eol-style to native.
+
 2005-08-16  Gert Driesen <[email protected]>
 
 	* BaseNumberConverter.cs: In ConvertFrom, wrap all exceptions that

+ 34 - 34
mcs/class/System/System.ComponentModel/EditorBrowsableState.cs

@@ -1,11 +1,11 @@
-//
-// ProjectData.cs
-//
-// Author:
-//   Martin Adoue ([email protected])
-//
-// (C) 2002 Martin Adoue
-//
+//
+// ProjectData.cs
+//
+// Author:
+//   Martin Adoue ([email protected])
+//
+// (C) 2002 Martin Adoue
+//
 
 //
 // Permission is hereby granted, free of charge, to any person obtaining
@@ -27,29 +27,29 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-
-using System;
-
-namespace System.ComponentModel
-{
-
-	/// <summary>
-	/// Specifies the browsable state of a property or method from within an editor.
-	/// </summary>
-	public enum EditorBrowsableState 
-	{
-		/// <summary>
-		/// The property or method is always browsable from within an editor.
-		/// </summary>
-		Always = 0,
-		/// <summary>
-		/// The property or method is never browsable from within an editor.
-		/// </summary>
-		Never = 1,
-		/// <summary>
-		/// The property or method is a feature that only advanced users should see. An editor can either show or hide such properties.
-		/// </summary>
-		Advanced = 2
-	}
-
-}
+
+using System;
+
+namespace System.ComponentModel
+{
+
+	/// <summary>
+	/// Specifies the browsable state of a property or method from within an editor.
+	/// </summary>
+	public enum EditorBrowsableState 
+	{
+		/// <summary>
+		/// The property or method is always browsable from within an editor.
+		/// </summary>
+		Always = 0,
+		/// <summary>
+		/// The property or method is never browsable from within an editor.
+		/// </summary>
+		Never = 1,
+		/// <summary>
+		/// The property or method is a feature that only advanced users should see. An editor can either show or hide such properties.
+		/// </summary>
+		Advanced = 2
+	}
+
+}

+ 10 - 10
mcs/class/System/System.ComponentModel/ExtenderProvidedPropertyAttribute.cs

@@ -27,23 +27,23 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-
+
 using System;
-
+
 namespace System.ComponentModel
 {
 
 	[AttributeUsage(AttributeTargets.All)]
 	public sealed class ExtenderProvidedPropertyAttribute : Attribute
-	{
+	{
 		private PropertyDescriptor extender;
 		private IExtenderProvider extenderProvider;
 		private Type receiver;
-
+
 		public ExtenderProvidedPropertyAttribute()
 		{
 		}
-
+
 		// Call this method to create a ExtenderProvidedPropertyAttribute and set it's values
 		internal static ExtenderProvidedPropertyAttribute CreateAttribute (PropertyDescriptor extenderProperty, IExtenderProvider provider, Type receiverType)
 		{
@@ -59,19 +59,19 @@ namespace System.ComponentModel
 				return extender;
 			}
 		}
-
+
 		public IExtenderProvider Provider {
 			get {
 				return extenderProvider;
 			}
 		}
-
+
 		public Type ReceiverType {
 			get {
 				return receiver;
 			}
 		}
-
+
 		public override bool IsDefaultAttribute()
 		{
 			// FIXME correct implementation??
@@ -79,7 +79,7 @@ namespace System.ComponentModel
 			(extenderProvider == null) &&
 			(receiver == null);
 		}
-
+
 		public override bool Equals (object obj)
 		{
 			if (!(obj is ExtenderProvidedPropertyAttribute))
@@ -96,4 +96,4 @@ namespace System.ComponentModel
 			return extender.GetHashCode() ^ extenderProvider.GetHashCode() ^ receiver.GetHashCode();
 		}
 	}
-}
+}

+ 14 - 14
mcs/class/System/System.ComponentModel/RefreshEventHandler.cs

@@ -1,11 +1,11 @@
-//
-// System.ComponentModel.RefreshEventHandler
-//
-// Author:
-//   Gonzalo Paniagua Javier ([email protected])
-//
-// (C) 2002 Ximian, Inc (http://www.ximian.com)
-//
+//
+// System.ComponentModel.RefreshEventHandler
+//
+// Author:
+//   Gonzalo Paniagua Javier ([email protected])
+//
+// (C) 2002 Ximian, Inc (http://www.ximian.com)
+//
 
 //
 // Permission is hereby granted, free of charge, to any person obtaining
@@ -27,9 +27,9 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-
-namespace System.ComponentModel
-{
-	public delegate void RefreshEventHandler (RefreshEventArgs e);
-}
-
+
+namespace System.ComponentModel
+{
+	public delegate void RefreshEventHandler (RefreshEventArgs e);
+}
+

+ 27 - 27
mcs/class/System/System.ComponentModel/TypeDescriptor.cs

@@ -265,10 +265,10 @@ public sealed class TypeDescriptor
 				return new ArrayConverter ();
 			}
 		}
-		
-		if (t == null)
-			t = FindConverterType (type);
-
+		
+		if (t == null)
+			t = FindConverterType (type);
+
 		if (t != null) {
 			Exception exc = null;
 			try {
@@ -285,29 +285,29 @@ public sealed class TypeDescriptor
 		}
 
 		return new ReferenceConverter (type);    // Default?
-	}
-
-	private static Type FindConverterType (Type type)
-	{
-		Type t = null;
-		
-		// Is there a default converter
-		t = (Type) DefaultConverters [type];
-		if (t != null)
-			return t;
-		
-		// Find default converter with a type this type is assignable to
-		foreach (Type defType in DefaultConverters.Keys) {
-			if (defType.IsInterface && defType.IsAssignableFrom (type)) {
-				return (Type) DefaultConverters [defType];
-			}
-		}
-		
-		// Nothing found, try the same with our base type
-		if (type.BaseType != null)
-			return FindConverterType (type.BaseType);
-		else
-			return null;
+	}
+
+	private static Type FindConverterType (Type type)
+	{
+		Type t = null;
+		
+		// Is there a default converter
+		t = (Type) DefaultConverters [type];
+		if (t != null)
+			return t;
+		
+		// Find default converter with a type this type is assignable to
+		foreach (Type defType in DefaultConverters.Keys) {
+			if (defType.IsInterface && defType.IsAssignableFrom (type)) {
+				return (Type) DefaultConverters [defType];
+			}
+		}
+		
+		// Nothing found, try the same with our base type
+		if (type.BaseType != null)
+			return FindConverterType (type.BaseType);
+		else
+			return null;
 	}
 
 	public static EventDescriptor GetDefaultEvent (Type componentType)