The reason this has an out parameter rather than a returntype of TAllowedType is that TAllowedType would require a parameterless constructor, making it impossible to call this method having passed System.String and other primitive types as TAllowedType.
Method Details
Serialize()
publicmethod
Serializes the specified value.
The reason this has an out parameter rather than a returntype of TAllowedType is that TAllowedType would require a parameterless constructor, making it impossible to call this method having passed System.String and other primitive types as TAllowedType.