Пример #1
0
 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));
 }
Пример #2
0
        private RuntimeModuleData(SerializationInfo info, StreamingContext context)
        {
            var id             = (RuntimeModuleDataId)info.GetValue(nameof(ModuleData.Id), typeof(RuntimeModuleDataId));
            var kind           = (OutputKind)info.GetInt32(nameof(ModuleData.Kind));
            var image          = info.GetByteArray(nameof(ModuleData.Image));
            var pdb            = info.GetByteArray(nameof(ModuleData.Pdb));
            var inMemoryModule = info.GetBoolean(nameof(ModuleData.InMemoryModule));

            Data = new ModuleData(id.Id, kind, image, pdb, inMemoryModule);
        }
Пример #3
0
 private AssemblyIdentity(SerializationInfo info, StreamingContext context)
 {
     this.name               = (string)info.GetValue("name", typeof(string));
     this.version            = (Version)info.GetValue("version", typeof(Version));
     this.cultureName        = (string)info.GetValue("cultureName", typeof(string));
     this.publicKey          = info.GetByteArray("publicKey");
     this.lazyPublicKeyToken = info.GetByteArray("publicKeyToken");
     this.isRetargetable     = (bool)info.GetValue("isRetargetable", typeof(bool));
     this.contentType        = (AssemblyContentType)info.GetValue("contentType", typeof(AssemblyContentType));
 }
Пример #4
0
        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;
            _mvid = (Guid?)info.GetValue("mvid", typeof(Guid?));
        }