public CompilationFailedException(SerializationInfo info, StreamingContext context) : base(info, context)
 {
     GeneratedCode = info.GetString("GeneratedCode");
     var messages = new CompilationMessage[info.GetInt32("Messages.Count")];
     for (int i = 0; i < messages.Length; i++)
     {
         messages[i] = (CompilationMessage)info.GetValue("Messages[" + i + "]", typeof(CompilationMessage));
     }
     Messages = messages.ToList();
 }
Ejemplo n.º 2
0
 public ErrorMessage(CompilationMessage cm)
 {
     Message = cm.Message;
     Location = cm.Location;
 }