public static AddressBase GetAddress(Object address, Object type) { AddressBase ret; if (Convert.IsDBNull(address) || Convert.IsDBNull(type)) { ret = new AddressBase(); } else { try { ret = AddressBase.Factory(address.ToString(), (AddressType)(Convert.ToInt32(type))); } catch { ret = new EmptyAddress(); } } return(ret); }
static Address() { empty = new EmptyAddress(); }