private CSharpSerializableParseOptions(SerializationInfo info, StreamingContext context)
 {
     _options = new CSharpParseOptions(
         languageVersion: (LanguageVersion)info.GetValue("LanguageVersion", typeof(LanguageVersion)),
         documentationMode: (DocumentationMode)info.GetValue("DocumentationMode", typeof(DocumentationMode)),
         kind: (SourceCodeKind)info.GetValue("Kind", typeof(SourceCodeKind)),
         preprocessorSymbols: info.GetArray<string>("PreprocessorSymbols"));
 }
Esempio n. 2
0
 private CSDiagnosticInfo(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     additionalLocations = info.GetArray<Location>("additionalLocations");
 }