Ver código fonte

Improves the compatibility of Mono's Configuration stack

QuickJack 14 anos atrás
pai
commit
10dbda2cda

+ 5 - 0
mcs/class/System.Configuration/System.Configuration/ConfigurationElement.cs

@@ -344,6 +344,11 @@ namespace System.Configuration
 					throw new ConfigurationErrorsException (msg, reader);
 				}
 				readProps [prop] = prop.Name;
+				
+				ConfigXmlTextReader _reader = reader as ConfigXmlTextReader;
+				
+				prop.Source = _reader.Filename;
+				prop.LineNumber = _reader.LineNumber;
 			}
 			
 			reader.MoveToElement ();

+ 0 - 2
mcs/class/System.Configuration/System.Configuration/PropertyInformation.cs

@@ -83,7 +83,6 @@ namespace System.Configuration
 			get { return property.IsRequired; }
 		}
 		
-		[MonoTODO]
 		public int LineNumber {
 			get { return lineNumber; }
 			internal set { lineNumber = value; }
@@ -93,7 +92,6 @@ namespace System.Configuration
 			get { return property.Name; }
 		}
 		
-		[MonoTODO]
 		public string Source {
 			get { return source; }
 			internal set { source = value; }