MessageBox.Show(ex.Message);
catch (ArgumentNullException e) {
// System.Diagnostics.Debug.Write(e.Message);
throw;
}
public Hotel(string name) : this()
{
this.Name = name;
}
public Hotel(string name, Rating rating) : this(name)
{
this.SetRating(rating);
}
public Hotel(string name, Rating rating, List<string> nutrition) : this(name, rating)
{
this.Nutrition = nutrition;
}
public Hotel(string name, Rating rating, List<string> nutrition, List<Image> images) : this(name, rating, nutrition)
{
this.Images = images;
}
http://api.site.com/api.ph?get=fullList
http://api.site.com/api.ph?usr=user001&psw=pass&get=fullList
реализация что то в этом роде подходит? С этим наверное можно реализовать!? public string Name
{
get { return this.name; }
set
{
if (!string.IsNullOrEmpty(value.Trim()))
{
this.name = value.Trim();
}
else
{
throw new ArgumentException("An argument can't be Null or Empty.", "MainClass.Name");
}
}
}
try
{
MainClass inst = new MainClass();
// ...
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}