예제 #1
0
파일: CpParser.cs 프로젝트: cobergmd/cplib
        public CpAddress Parse(string line)
        {
            CpAddress addr = CreateAddressStruct();

            CpParserParse(line, ref addr);
            return(addr);
        }
예제 #2
0
파일: CpParser.cs 프로젝트: cobergmd/cplib
        private CpAddress CreateAddressStruct()
        {
            CpAddress addr = new CpAddress();

            addr.AddressType           = CpAddressType.UnknownAddress;
            addr.AddressNumber         = "";
            addr.PreDirectional        = "";
            addr.StreetName            = "";
            addr.Suffix                = "";
            addr.PostDirectional       = "";
            addr.SecondaryIdentifier   = "";
            addr.SecondaryRange        = "";
            addr.MailstopCode          = "";
            addr.Department            = "";
            addr.BoxNumber             = "";
            addr.MilitaryUnitType      = "";
            addr.MilitaryUnitNumber    = "";
            addr.MilitaryBoxNumber     = "";
            addr.MilitaryShipName      = "";
            addr.RuralRouteNumber      = "";
            addr.RuralRouteBoxNumber   = "";
            addr.HighwayContractNumber = "";
            addr.City  = "";
            addr.State = "";
            addr.Zip5  = "";
            addr.Zip4  = "";

            return(addr);
        }
예제 #3
0
파일: CpParser.cs 프로젝트: cobergmd/cplib
 private static extern void CpParserParse([MarshalAs(UnmanagedType.LPStr)] string line,
                                          ref CpAddress address);