changeset 45:7b6d1feb6e03

* Line-ending fix no-open-ticket
author IBBoard <dev@ibboard.co.uk>
date Sun, 04 Oct 2009 19:30:31 +0000
parents 8725c5440606
children 298b2ff956bb
files Xml/CustomXmlResolver.cs
diffstat 1 files changed, 14 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/Xml/CustomXmlResolver.cs	Sun Oct 04 15:50:58 2009 +0000
+++ b/Xml/CustomXmlResolver.cs	Sun Oct 04 19:30:31 2009 +0000
@@ -2,7 +2,7 @@
 //
 // The file and the library/program it is in are licensed under the GNU LGPL license, either version 3 of the License or (at your option) any later version. Please see COPYING.LGPL for more information and the full license.
 
-using System;
+using System;
 using System.Collections.Generic;
 using System.Xml;
 
@@ -12,22 +12,22 @@
 	/// A custom XML resolver that lets developers specify their own mappings of relative URIs to file locations.
 	/// </summary>
 	public class CustomXmlResolver : XmlUrlResolver
-	{
-		private Dictionary<string, Uri> relativeToUriMap = new Dictionary<string, Uri>();
-
-		/// <summary>
-		/// Adds a custom mapping of relative URI string to actual URI that will be returned by <code>ResolveUri(Uri, string)</code>
-		/// </summary>
-		/// <param name="relativeURI">the relative URI string</param>
-		/// <param name="resolvedUri">the <code>Uri</code> that <code>ResolveUri(Uri, string)</code> should return for <paramref name="relativeURI"/> </param>
-		public void AddMapping(string relativeURI, Uri resolvedUri)
-		{
-			relativeToUriMap.Add(relativeURI, resolvedUri);
+	{
+		private Dictionary<string, Uri> relativeToUriMap = new Dictionary<string, Uri>();
+
+		/// <summary>
+		/// Adds a custom mapping of relative URI string to actual URI that will be returned by <code>ResolveUri(Uri, string)</code>
+		/// </summary>
+		/// <param name="relativeURI">the relative URI string</param>
+		/// <param name="resolvedUri">the <code>Uri</code> that <code>ResolveUri(Uri, string)</code> should return for <paramref name="relativeURI"/> </param>
+		public void AddMapping(string relativeURI, Uri resolvedUri)
+		{
+			relativeToUriMap.Add(relativeURI, resolvedUri);
 		}
 
 		public override Uri ResolveUri(Uri baseUri, string relativeUri)
-		{
-			Uri uri = DictionaryUtils.GetValue(relativeToUriMap, relativeUri);
+		{
+			Uri uri = DictionaryUtils.GetValue(relativeToUriMap, relativeUri);
 			return (uri == null) ? base.ResolveUri(baseUri, relativeUri) : uri;
 		}
 	}