using System.Collections.Generic;
public static void Main()
Console.WriteLine(MelissaDataResultCode.GetShortDescription("AS01"));
Console.WriteLine(MelissaDataResultCode.GetLongDescription("AS01"));
var foo = MelissaDataResultCode.GetCode("AS02");
Console.WriteLine("{0} : {1} - {2}", foo.Code, foo.Status, foo.Description);
public class MelissaDataResultCode {
public string Code {get; set;}
public string Status {get; set;}
public string Description {get; set;}
static Dictionary<string, string> _mdCodeShortDesc = new Dictionary<string, string>
{"AS01", "Address Fully Verified"},
{"AS02", "Street Only Match"},
{"AS03", "Non USPS Address Match"},
{"AS09", "Foreign Address"},
{"AS10", "CMRA Address"},
{"AS13", "Address Updated By LACS"},
{"AS14", "Suite Appended"},
{"AS15", "Apartment Appended"},
{"AS16", "Vacant Address"},
{"AS17", "No Mail Delivery"},
{"AS18", "DPV Locked Out"},
{"AS20", "Deliverable only by USPS"},
{"AS22", "No Alternate Address Suggestion Found"},
{"AS23", "Extraneous Information"}
static Dictionary<string, string> _mdCodeLongDesc = new Dictionary<string, string>
{"AS01","The address is valid and deliverable according to official postal agencies."},
{"AS02","The street address was verified but the suite number is missing or invalid."},
{"AS03","US Only. This US address is not serviced by the USPS but does exist and may receive mail through third party carriers like UPS."},
{"AS09","The address is in a non-supported country."},
{"AS10","US Only. The address is a Commercial Mail Receiving Agency (CMRA) like a Mailboxes Etc. These addresses include a Private Mail Box (PMB or #) number."},
{"AS12","The record moved to a new address."},
{"AS13","US Only. The address has been converted by LACSLink® from a rural-style address to a city-style address."},
{"AS14","US Only. A suite was appended by SuiteLink™ using the address and company name."},
{"AS15","An apartment number was appended by AddressPlus using the address and last name."},
{"AS16","US Only. The address has been unoccupied for more than 90 days."},
{"AS17","US Only. The address does not currently receive mail but will likely in the near future."},
{"AS18","US Only. DPV processing was terminated due to the detection of what is determined to be an artificially created address."},
{"AS20","US Only. This address can only receive mail delivered through the USPS (i.e. PO Box or a military address)."},
{"AS22","No alternate address suggestion was found for this address."},
{"AS23","Extraneous information not used in verifying the address was found. This includes unnecessary sub premises and other unrecognized data. The unrecognized data has been placed in the ParsedGarbage field."}
public static string GetShortDescription(string code)
if (!_mdCodeShortDesc.TryGetValue(code, out result))
public static string GetLongDescription(string code)
if (!_mdCodeLongDesc.TryGetValue(code, out result))
public static MelissaDataResultCode GetCode(string code){
if (!_mdCodeShortDesc.ContainsKey(code))
return new MelissaDataResultCode {
Status = _mdCodeShortDesc[code],
Description = _mdCodeLongDesc[code],