# Serializing types

**URL:** <https://discuss.hangfire.io/t/serializing-types/4288>\
**Category:** 2.0-features\
**Created:** [January 25, 2018, 6:09am UTC](https://discuss.hangfire.io/t/serializing-types/4288 "2018-01-25T06:09:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Barak\_Zehavi](https://avatars.discourse-cdn.com/v4/letter/b/b3f665/32.png) [@Barak\_Zehavi](https://discuss.hangfire.io/u/Barak_Zehavi)\
**Post date:** [January 25, 2018, 6:09am UTC](https://discuss.hangfire.io/t/serializing-types/4288/1 "2018-01-25T06:09:13Z")

</div>

Hi,  
Great project!

I’d like to suggest that parameters would be serialized by it’s type, rather than the function parameter type.

static void DoIt(AbstractType myself) {}

AbstractType me = new InheritType {};  
BackgroundJob.Enqueue(()=\> DoIt(me));

Relaying on me variable runtime type would work, while relaying on the variable type, or the function parameter type, result in null serialization.

Cheers
