I want to serialize my enum-value as an int, but i only get the name.
Here is my (sample) class and enum:
public class Request { public RequestTy
Take a look at the System.Enum class. The Parse method converts a string or int representation into the Enum object and the ToString method converts the Enum object to a string which can be serialized.