Question: I have an array like as below

```
var arr = [ 'type=A', 'day=45' ];
var trans = { 'type': 'A', 'day': 45 }

```

Please write easiest and most efficient way :)

Answer: 
`var` infers the type. If you don't assign a value, it can't infer the type of the value.

You have to create a class or struct and put your fields in there. Then use the type of the created class.
Why not use `object` instead of `var`?

`var` needs to be implicitly typed first. But, since you're assigning an object without a type, might as well just use 'object'.

E.g. `object Rs1;`