private void ThrowValidationException() { //SerializationException is internal in SL and so cannot be directly invoked from DynamicMethod //So use helper function to create SerializationException _ilg.Call(XmlFormatGeneratorStatics.CreateSerializationExceptionMethod); _ilg.Throw(); } #endif