There in C# available any methods like serialize and unserialize in php?

I need it for best way to transfer an array through network.
['https://Stackoverflow.com/questions/19447314', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1146533/']
```
var countries = ["FR", "IT", "DE", "AU", "RU"];

$('div').hide();

$('select').change(function () {
    if ($.inArray(this.value, countries) >= 0) {
        $('div').show();
    } else {
        $('div').hide();
    }
});

```

[**FIDDLE**](http://jsfiddle.net/qYnKK/1/)
Try this,

```
var countries = ["FR", "IT", "DE", "AU", "RU"];
$('#myitems').hide();
$('#country').on('change', function () {
    if ($.inArray($(this).val(), countries)!=-1) {
        $('#myitems').show();
    } else {
        $('#myitems').hide();
    }
});

```

[Demo](http://jsfiddle.net/rohankumar1524/sVXJF/)