Support of delegates in serialization