Ejemplo n.º 1
0
 public Land(int id, string naam, string taalcode)
 {
     this.Id       = id;
     this.Naam     = naam;
     this.TaalCode = taalcode;
     this.Regios   = new Regios();
 }
Ejemplo n.º 2
0
        public void LoadBLOB()
        {
            string     filename = "Straten.bin";
            IFormatter f        = new BinaryFormatter();
            Stream     s        = new FileStream(Path.Combine(path, filename), FileMode.Open, FileAccess.Read);

            Land loadedLand = (Land)f.Deserialize(s);

            this.Regios = loadedLand.Regios;
            Console.WriteLine("Read OK");
            s.Close();
        }