From 6025a89235f0677e38992abee49e914b47e762cb Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 26 Jun 2013 12:08:16 -0400 Subject: read 3d format from xml --- MediaBrowser.Controller/Reflection/TypeMapper.cs | 47 ------------------------ 1 file changed, 47 deletions(-) delete mode 100644 MediaBrowser.Controller/Reflection/TypeMapper.cs (limited to 'MediaBrowser.Controller/Reflection/TypeMapper.cs') diff --git a/MediaBrowser.Controller/Reflection/TypeMapper.cs b/MediaBrowser.Controller/Reflection/TypeMapper.cs deleted file mode 100644 index d968a3b420..0000000000 --- a/MediaBrowser.Controller/Reflection/TypeMapper.cs +++ /dev/null @@ -1,47 +0,0 @@ -using System; -using System.Collections.Concurrent; -using System.Linq; - -namespace MediaBrowser.Controller.Reflection -{ - /// - /// Class TypeMapper - /// - public class TypeMapper - { - /// - /// This holds all the types in the running assemblies so that we can de-serialize properly when we don't have strong types - /// - private readonly ConcurrentDictionary _typeMap = new ConcurrentDictionary(); - - /// - /// Gets the type. - /// - /// Name of the type. - /// Type. - /// - public Type GetType(string typeName) - { - if (string.IsNullOrEmpty(typeName)) - { - throw new ArgumentNullException(); - } - - return _typeMap.GetOrAdd(typeName, LookupType); - } - - /// - /// Lookups the type. - /// - /// Name of the type. - /// Type. - private Type LookupType(string typeName) - { - return AppDomain - .CurrentDomain - .GetAssemblies() - .Select(a => a.GetType(typeName, false)) - .FirstOrDefault(t => t != null); - } - } -} -- cgit v1.2.3