diff --git a/Ooui/HtmlMapping.cs b/Ooui/Mapping.cs similarity index 64% rename from Ooui/HtmlMapping.cs rename to Ooui/Mapping.cs index c98fb03..7de0174 100644 --- a/Ooui/HtmlMapping.cs +++ b/Ooui/Mapping.cs @@ -3,12 +3,12 @@ using System.Collections.Generic; namespace Ooui { - public class HtmlMapping + public class Mapping { readonly Type type; public string TagName { get; private set; } - public HtmlMapping (Type type) + public Mapping (Type type) { this.type = type; TagName = type.Name.ToLowerInvariant (); @@ -19,15 +19,15 @@ namespace Ooui return propertyName; } - static readonly Dictionary mappings = - new Dictionary (); + static readonly Dictionary mappings = + new Dictionary (); - public static HtmlMapping Get (Type type) + public static Mapping Get (Type type) { var key = type.FullName; - HtmlMapping m; + Mapping m; if (!mappings.TryGetValue (key, out m)) { - m = new HtmlMapping (type); + m = new Mapping (type); mappings[key] = m; } return m; diff --git a/Ooui/Node.cs b/Ooui/Node.cs index b9ddad3..45b64b3 100644 --- a/Ooui/Node.cs +++ b/Ooui/Node.cs @@ -8,7 +8,7 @@ namespace Ooui { public string Id { get; private set; } = GenerateId (); - public HtmlMapping Mapping { get; private set; } + public Mapping Mapping { get; private set; } readonly List children = new List (); readonly List messages = new List (); @@ -16,7 +16,7 @@ namespace Ooui public Node () { - Mapping = HtmlMapping.Get (GetType ()); + Mapping = Mapping.Get (GetType ()); LogCreate (); }