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

InvokePostConverter() private method

private InvokePostConverter ( object instance, PropertyBag bag ) : bool
instance object
bag PropertyBag
return bool
        private bool InvokePostConverter(object instance, PropertyBag bag)
        {
            Type instanceType = instance.GetType();
            if (_converters.ContainsKey(instanceType))
            {
                IPropertyBagPostConverter converter = _converters[instanceType];
                converter.ApplyConversion(instance, instanceType, bag.Properties);

                return true;
            }
            else
            {
                return false;
            }
        }