private Type GetDestinationType(PropertyBag bag)
{
Type destinationType = null;
if (TypeResolver != null)
{
destinationType = TypeResolver.Resolve(bag.TypeName, bag.Namespace, bag.AssemblyName);
}
if (destinationType == null)
{
destinationType = Type.GetType(bag.AssemblyQualfiedName);
}
return destinationType;
}