Limpieza usando recomendaciones de R#

This commit is contained in:
2014-09-09 12:47:52 +02:00
parent 00b1da5da7
commit 9d77bb552b
12 changed files with 222 additions and 313 deletions

View File

@@ -1,7 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
namespace ServerExplorer.Code
@@ -9,16 +7,16 @@ namespace ServerExplorer.Code
[Serializable]
public class DatabaseDesc
{
private string nombre = string.Empty;
private string _nombre = string.Empty;
[XmlAttribute("Nombre")]
public string Nombre
{
get { return nombre; }
set { nombre = value; }
get { return _nombre; }
set { _nombre = value; }
}
private List<TablaDesc> tablas = new List<TablaDesc>();
private readonly List<TablaDesc> _tablas = new List<TablaDesc>();
[XmlArray("Tablas")]
public List<TablaDesc> Tablas { get { return tablas; } }
public List<TablaDesc> Tablas { get { return _tablas; } }
}
}