# Int array TypeConverter method parameter attribute problem

**URL:** <https://discuss.hangfire.io/t/int-array-typeconverter-method-parameter-attribute-problem/174>\
**Category:** question\
**Created:** [September 2, 2014, 1:10pm UTC](https://discuss.hangfire.io/t/int-array-typeconverter-method-parameter-attribute-problem/174 "2014-09-02T13:10:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhlavaty](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/dhlavaty/32/47_2.png) [@dhlavaty](https://discuss.hangfire.io/u/dhlavaty)\
**Post date:** [September 2, 2014, 1:10pm UTC](https://discuss.hangfire.io/t/int-array-typeconverter-method-parameter-attribute-problem/174/1 "2014-09-02T13:10:55Z")

</div>

I have created my own int array `TypeConverter` (which is working just fine with `Convert.ChangeType()` ), but it does not work with Hangfire when used as method parameter attribute:

```
...
int[] intarray = new int[] { 1, 2, 3, 4 };
Hangfire.BackgroundJob.Enqueue(() => TestJobIntArray(intarray));
...
...
public static void TestJobIntArray([TypeConverter(typeof(IntArrayConverter))] int[] intarray) {
  foreach (var i in intarray) {
    Console.WriteLine(i);
  }
}

```

And I think it should.

The only workaround I have found is create my own class derived from `List<int>`, and apply `TypeConverterAttribute` to this class. But that is very impractical solution. Am I doing something wrong, or method parameter attributes are not supported by Hangfire ?

PS: I have tried adding `TypeConverterAttribute` to a class property, but that didn’t work neither.

---

<div class="post-metadata">

**Author:** ![odinserj](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/odinserj/32/648_2.png) [@odinserj](https://discuss.hangfire.io/u/odinserj)\
**Post date:** [September 4, 2014, 8:20am UTC](https://discuss.hangfire.io/t/int-array-typeconverter-method-parameter-attribute-problem/174/2 "2014-09-04T08:20:36Z")

</div>

@dhlavaty, I’m solving your problems in advance 😄 This problem is solved in Hangfire 1.1.0 version, please see its [release notes](https://github.com/HangfireIO/Hangfire/releases/tag/v1.1.0).

---

<div class="post-metadata">

**Author:** ![dhlavaty](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/dhlavaty/32/47_2.png) [@dhlavaty](https://discuss.hangfire.io/u/dhlavaty)\
**Post date:** [September 4, 2014, 11:20am UTC](https://discuss.hangfire.io/t/int-array-typeconverter-method-parameter-attribute-problem/174/3 "2014-09-04T11:20:23Z")

</div>

“#all-four-thumbs-up” thank you
