|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Mef.Extended.Tools.Interfaces;
using System.Reflection;
namespace Mef.Extended.Tools.Generics
{
public class TypeResolver : ITypeResolver
{
public Type Get(Type i)
{
return Type.GetType(Assembly.CreateQualifiedName(i.Assembly.FullName,
string.Format("{0}.{1}", i.Namespace, i.Name)));
}
public Func<string, bool> AssemblyFilter { get; set; }
public TypeResolver(Func<string, bool> assemblyFilter)
{
AssemblyFilter = assemblyFilter;
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Bsc (Hons) Business Information Systems.
MCTS: Web Applications Development with Microsoft .NET Framework 4
MCTS: Windows Communication Foundation Development with Microsoft .NET Framework 4
MCTS: Accessing Data with Microsoft .NET Framework 4
Microsoft Certified Professional Developer Certification.