Ncqrs.Eventing.Storage.PropertyBagConverter.GetDestinationType C# (CSharp) Method

GetDestinationType() private method

private GetDestinationType ( PropertyBag bag ) : Type
bag PropertyBag
return System.Type
        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;
        }