Mercurial > altnet-hispano
comparison Agendas/trunk/src/Agendas.Domain/Ponente.cs @ 38:3c5657d99727
Cambio de setters de las propiedades a private
author | nelo@MTEySS.neluz.int |
---|---|
date | Thu, 17 Mar 2011 23:16:35 -0300 |
parents | 41b283d27e3e |
children | 3059a5f8930f |
comparison
equal
deleted
inserted
replaced
37:90f0cab1febc | 38:3c5657d99727 |
---|---|
1 using System; | 1 using System; |
2 | 2 |
3 namespace AltNetHispano.Agendas.Domain | 3 namespace AltNetHispano.Agendas.Domain |
4 { | 4 { |
5 public class Ponente { | 5 public class Ponente { |
6 public Guid Id { get; set; } | 6 public Ponente(string nombre, string mail, string twitter, string blog) |
7 : this(nombre) | |
8 { | |
9 Mail = mail; | |
10 Twitter = twitter; | |
11 Blog = blog; | |
12 } | |
7 | 13 |
8 public string Nombre { get; set; } | 14 public Ponente(string nombre) |
15 { | |
16 Id = Guid.NewGuid(); | |
17 Nombre = nombre; | |
18 } | |
9 | 19 |
10 public string Mail { get; set; } | 20 public Guid Id { get; private set; } |
11 | 21 |
12 public string Twitter { get; set; } | 22 public string Nombre { get; private set; } |
13 | 23 |
14 public string Blog { get; set; } | 24 public string Mail { get; private set; } |
25 | |
26 public string Twitter { get; private set; } | |
27 | |
28 public string Blog { get; private set; } | |
15 | 29 |
16 } | 30 } |
17 } | 31 } |