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/)
[JSFIDDLE](http://jsfiddle.net/zDuq5/)

```
var countries=["FR","IT","DE", "AU", "RU"];
$("#country").change(function(){
    var selectedVal = $(this).val();
    if(countries.indexOf(selectedVal) != -1){

        $("#divToShow").show();
    }
    else {
        $("#divToShow").hide();
    }
});

```