Added default ctors to more classes

This commit is contained in:
Rick Falkvinge
2012-11-05 12:02:10 +00:00
parent 01d797cf33
commit 6af0345ebc
3 changed files with 19 additions and 0 deletions
+6
View File
@@ -19,6 +19,12 @@ namespace Activizr.Basic.Types
{
}
[Obsolete ("Do not call this ctor directly. It exists to enable serialization.", true)]
public BasicPostalCode()
{
// this should never be called from code
}
public string PostalCode { get; private set; } // any whitespace removed
public string CityName { get; protected set; }
public string CountryCode { get; protected set; }