Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 static Address()
 {
     empty = new EmptyAddress();
 }