public Land(int id, string naam, string taalcode) { this.Id = id; this.Naam = naam; this.TaalCode = taalcode; this.Regios = new Regios(); }
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(); }