private ModuleData(SerializationInfo info, StreamingContext context) { _moduleData.Id = (ModuleDataId)info.GetValue(nameof(Id), typeof(ModuleDataId)); _moduleData.Kind = (OutputKind)info.GetInt32(nameof(Kind)); _moduleData.Image = info.GetByteArray(nameof(Image)); _moduleData.Pdb = info.GetByteArray(nameof(Pdb)); _moduleData.InMemoryModule = info.GetBoolean(nameof(InMemoryModule)); }
private ModuleData(SerializationInfo info, StreamingContext context) { //public readonly string FullName; this.FullName = info.GetString("FullName"); //public readonly OutputKind Kind; this.Kind = (OutputKind)info.GetInt32("kind"); //public readonly ImmutableArray<byte> Image; this.Image = info.GetByteArray("Image"); //public readonly ImmutableArray<byte> PDB; this.PDB = info.GetByteArray("PDB"); //public readonly bool InMemoryModule; this.InMemoryModule = info.GetBoolean("InMemoryModule"); //private Guid? mvid; this.mvid = (Guid?)info.GetValue("mvid", typeof(Guid?)); }