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/)
**[Live Demo](http://jsfiddle.net/FfzgR/1/)**

you can use `$.inArray("Your data", array)` using `Jquery` function

for ex:
 **HTML:**

```
<select name="country" id="country">
    <option value="0">Your country</option>
    <option value="IT">Afghanistan</option>
    <option value="AX">&#197;land Islands</option>
    <option value="RU">Albania</option>
</select>

```

**JQuery:**

```
$(function() {
    $('select').on('change', function() {
var countries=["FR","IT","DE", "AU", "RU"];
        var data1 = $(this).val();http://jsfiddle.net/FfzgR/#update
if ($.inArray(data1, countries) !== -1)
{
    alert('yes');
}
        else{
            alert('no');
        }
    });
});

```