Example #1
0
 public static string ToString(FamilialRelationship value)
 {
     if (value == FamilialRelationship.AUNT)
     {
         return("AUNT");
     }
     else if (value == FamilialRelationship.BRO)
     {
         return("BRO");
     }
     else if (value == FamilialRelationship.BROINLAW)
     {
         return("BROINLAW");
     }
     else if (value == FamilialRelationship.CHLDADOPT)
     {
         return("CHLDADOPT");
     }
     else if (value == FamilialRelationship.CHLDFOST)
     {
         return("CHLDFOST");
     }
     else if (value == FamilialRelationship.CHLDINLAW)
     {
         return("CHLDINLAW");
     }
     else if (value == FamilialRelationship.COUSN)
     {
         return("COUSN");
     }
     else if (value == FamilialRelationship.DAU)
     {
         return("DAU");
     }
     else if (value == FamilialRelationship.DAUADOPT)
     {
         return("DAUADOPT");
     }
     else if (value == FamilialRelationship.DAUC)
     {
         return("DAUC");
     }
     else if (value == FamilialRelationship.DAUFOST)
     {
         return("DAUFOST");
     }
     else if (value == FamilialRelationship.DAUINLAW)
     {
         return("DAUINLAW");
     }
     else if (value == FamilialRelationship.CHILD)
     {
         return("CHILD");
     }
     else if (value == FamilialRelationship.EXT)
     {
         return("EXT");
     }
     else if (value == FamilialRelationship.IMED)
     {
         return("IMED");
     }
     else if (value == FamilialRelationship.PRN)
     {
         return("PRN");
     }
     else if (value == FamilialRelationship.SIB)
     {
         return("SIB");
     }
     else if (value == FamilialRelationship.SIGOTHR)
     {
         return("SIGOTHR");
     }
     else if (value == FamilialRelationship.DOMPART)
     {
         return("DOMPART");
     }
     else if (value == FamilialRelationship.SPS)
     {
         return("SPS");
     }
     else if (value == FamilialRelationship.FTH)
     {
         return("FTH");
     }
     else if (value == FamilialRelationship.FTHINLAW)
     {
         return("FTHINLAW");
     }
     else if (value == FamilialRelationship.GGRFTH)
     {
         return("GGRFTH");
     }
     else if (value == FamilialRelationship.GGRMTH)
     {
         return("GGRMTH");
     }
     else if (value == FamilialRelationship.GGRPRN)
     {
         return("GGRPRN");
     }
     else if (value == FamilialRelationship.GRFTH)
     {
         return("GRFTH");
     }
     else if (value == FamilialRelationship.GRMTH)
     {
         return("GRMTH");
     }
     else if (value == FamilialRelationship.GRNDCHILD)
     {
         return("GRNDCHILD");
     }
     else if (value == FamilialRelationship.GRNDDAU)
     {
         return("GRNDDAU");
     }
     else if (value == FamilialRelationship.GRNDSON)
     {
         return("GRNDSON");
     }
     else if (value == FamilialRelationship.GRPRN)
     {
         return("GRPRN");
     }
     else if (value == FamilialRelationship.HBRO)
     {
         return("HBRO");
     }
     else if (value == FamilialRelationship.HSIB)
     {
         return("HSIB");
     }
     else if (value == FamilialRelationship.HSIS)
     {
         return("HSIS");
     }
     else if (value == FamilialRelationship.HUSB)
     {
         return("HUSB");
     }
     else if (value == FamilialRelationship.MTH)
     {
         return("MTH");
     }
     else if (value == FamilialRelationship.MTHINLAW)
     {
         return("MTHINLAW");
     }
     else if (value == FamilialRelationship.NBOR)
     {
         return("NBOR");
     }
     else if (value == FamilialRelationship.NBRO)
     {
         return("NBRO");
     }
     else if (value == FamilialRelationship.NCHILD)
     {
         return("NCHILD");
     }
     else if (value == FamilialRelationship.NEPHEW)
     {
         return("NEPHEW");
     }
     else if (value == FamilialRelationship.NFTH)
     {
         return("NFTH");
     }
     else if (value == FamilialRelationship.NFTHF)
     {
         return("NFTHF");
     }
     else if (value == FamilialRelationship.NIECE)
     {
         return("NIECE");
     }
     else if (value == FamilialRelationship.NIENEPH)
     {
         return("NIENEPH");
     }
     else if (value == FamilialRelationship.NMTH)
     {
         return("NMTH");
     }
     else if (value == FamilialRelationship.NOK)
     {
         return("NOK");
     }
     else if (value == FamilialRelationship.NPRN)
     {
         return("NPRN");
     }
     else if (value == FamilialRelationship.NSIB)
     {
         return("NSIB");
     }
     else if (value == FamilialRelationship.NSIS)
     {
         return("NSIS");
     }
     else if (value == FamilialRelationship.PRNINLAW)
     {
         return("PRNINLAW");
     }
     else if (value == FamilialRelationship.ROOM)
     {
         return("ROOM");
     }
     else if (value == FamilialRelationship.SIBINLAW)
     {
         return("SIBINLAW");
     }
     else if (value == FamilialRelationship.SIS)
     {
         return("SIS");
     }
     else if (value == FamilialRelationship.SISINLAW)
     {
         return("SISINLAW");
     }
     else if (value == FamilialRelationship.SON)
     {
         return("SON");
     }
     else if (value == FamilialRelationship.SONADOPT)
     {
         return("SONADOPT");
     }
     else if (value == FamilialRelationship.SONC)
     {
         return("SONC");
     }
     else if (value == FamilialRelationship.SONFOST)
     {
         return("SONFOST");
     }
     else if (value == FamilialRelationship.SONINLAW)
     {
         return("SONINLAW");
     }
     else if (value == FamilialRelationship.STPBRO)
     {
         return("STPBRO");
     }
     else if (value == FamilialRelationship.STPCHLD)
     {
         return("STPCHLD");
     }
     else if (value == FamilialRelationship.STPDAU)
     {
         return("STPDAU");
     }
     else if (value == FamilialRelationship.STPFTH)
     {
         return("STPFTH");
     }
     else if (value == FamilialRelationship.STPMTH)
     {
         return("STPMTH");
     }
     else if (value == FamilialRelationship.STPPRN)
     {
         return("STPPRN");
     }
     else if (value == FamilialRelationship.STPSIB)
     {
         return("STPSIB");
     }
     else if (value == FamilialRelationship.STPSIS)
     {
         return("STPSIS");
     }
     else if (value == FamilialRelationship.STPSON)
     {
         return("STPSON");
     }
     else if (value == FamilialRelationship.UNCLE)
     {
         return("UNCLE");
     }
     else if (value == FamilialRelationship.WIFE)
     {
         return("WIFE");
     }
     else
     {
         throw new ArgumentException("Unrecognized FamilialRelationship value: " + value.ToString());
     }
 }
Example #2
0
            public static bool TryParse(string value, out FamilialRelationship result)
            {
                result = default(FamilialRelationship);

                if (value == "AUNT")
                {
                    result = FamilialRelationship.AUNT;
                }
                else if (value == "BRO")
                {
                    result = FamilialRelationship.BRO;
                }
                else if (value == "BROINLAW")
                {
                    result = FamilialRelationship.BROINLAW;
                }
                else if (value == "CHLDADOPT")
                {
                    result = FamilialRelationship.CHLDADOPT;
                }
                else if (value == "CHLDFOST")
                {
                    result = FamilialRelationship.CHLDFOST;
                }
                else if (value == "CHLDINLAW")
                {
                    result = FamilialRelationship.CHLDINLAW;
                }
                else if (value == "COUSN")
                {
                    result = FamilialRelationship.COUSN;
                }
                else if (value == "DAU")
                {
                    result = FamilialRelationship.DAU;
                }
                else if (value == "DAUADOPT")
                {
                    result = FamilialRelationship.DAUADOPT;
                }
                else if (value == "DAUC")
                {
                    result = FamilialRelationship.DAUC;
                }
                else if (value == "DAUFOST")
                {
                    result = FamilialRelationship.DAUFOST;
                }
                else if (value == "DAUINLAW")
                {
                    result = FamilialRelationship.DAUINLAW;
                }
                else if (value == "CHILD")
                {
                    result = FamilialRelationship.CHILD;
                }
                else if (value == "EXT")
                {
                    result = FamilialRelationship.EXT;
                }
                else if (value == "IMED")
                {
                    result = FamilialRelationship.IMED;
                }
                else if (value == "PRN")
                {
                    result = FamilialRelationship.PRN;
                }
                else if (value == "SIB")
                {
                    result = FamilialRelationship.SIB;
                }
                else if (value == "SIGOTHR")
                {
                    result = FamilialRelationship.SIGOTHR;
                }
                else if (value == "DOMPART")
                {
                    result = FamilialRelationship.DOMPART;
                }
                else if (value == "SPS")
                {
                    result = FamilialRelationship.SPS;
                }
                else if (value == "FTH")
                {
                    result = FamilialRelationship.FTH;
                }
                else if (value == "FTHINLAW")
                {
                    result = FamilialRelationship.FTHINLAW;
                }
                else if (value == "GGRFTH")
                {
                    result = FamilialRelationship.GGRFTH;
                }
                else if (value == "GGRMTH")
                {
                    result = FamilialRelationship.GGRMTH;
                }
                else if (value == "GGRPRN")
                {
                    result = FamilialRelationship.GGRPRN;
                }
                else if (value == "GRFTH")
                {
                    result = FamilialRelationship.GRFTH;
                }
                else if (value == "GRMTH")
                {
                    result = FamilialRelationship.GRMTH;
                }
                else if (value == "GRNDCHILD")
                {
                    result = FamilialRelationship.GRNDCHILD;
                }
                else if (value == "GRNDDAU")
                {
                    result = FamilialRelationship.GRNDDAU;
                }
                else if (value == "GRNDSON")
                {
                    result = FamilialRelationship.GRNDSON;
                }
                else if (value == "GRPRN")
                {
                    result = FamilialRelationship.GRPRN;
                }
                else if (value == "HBRO")
                {
                    result = FamilialRelationship.HBRO;
                }
                else if (value == "HSIB")
                {
                    result = FamilialRelationship.HSIB;
                }
                else if (value == "HSIS")
                {
                    result = FamilialRelationship.HSIS;
                }
                else if (value == "HUSB")
                {
                    result = FamilialRelationship.HUSB;
                }
                else if (value == "MTH")
                {
                    result = FamilialRelationship.MTH;
                }
                else if (value == "MTHINLAW")
                {
                    result = FamilialRelationship.MTHINLAW;
                }
                else if (value == "NBOR")
                {
                    result = FamilialRelationship.NBOR;
                }
                else if (value == "NBRO")
                {
                    result = FamilialRelationship.NBRO;
                }
                else if (value == "NCHILD")
                {
                    result = FamilialRelationship.NCHILD;
                }
                else if (value == "NEPHEW")
                {
                    result = FamilialRelationship.NEPHEW;
                }
                else if (value == "NFTH")
                {
                    result = FamilialRelationship.NFTH;
                }
                else if (value == "NFTHF")
                {
                    result = FamilialRelationship.NFTHF;
                }
                else if (value == "NIECE")
                {
                    result = FamilialRelationship.NIECE;
                }
                else if (value == "NIENEPH")
                {
                    result = FamilialRelationship.NIENEPH;
                }
                else if (value == "NMTH")
                {
                    result = FamilialRelationship.NMTH;
                }
                else if (value == "NOK")
                {
                    result = FamilialRelationship.NOK;
                }
                else if (value == "NPRN")
                {
                    result = FamilialRelationship.NPRN;
                }
                else if (value == "NSIB")
                {
                    result = FamilialRelationship.NSIB;
                }
                else if (value == "NSIS")
                {
                    result = FamilialRelationship.NSIS;
                }
                else if (value == "PRNINLAW")
                {
                    result = FamilialRelationship.PRNINLAW;
                }
                else if (value == "ROOM")
                {
                    result = FamilialRelationship.ROOM;
                }
                else if (value == "SIBINLAW")
                {
                    result = FamilialRelationship.SIBINLAW;
                }
                else if (value == "SIS")
                {
                    result = FamilialRelationship.SIS;
                }
                else if (value == "SISINLAW")
                {
                    result = FamilialRelationship.SISINLAW;
                }
                else if (value == "SON")
                {
                    result = FamilialRelationship.SON;
                }
                else if (value == "SONADOPT")
                {
                    result = FamilialRelationship.SONADOPT;
                }
                else if (value == "SONC")
                {
                    result = FamilialRelationship.SONC;
                }
                else if (value == "SONFOST")
                {
                    result = FamilialRelationship.SONFOST;
                }
                else if (value == "SONINLAW")
                {
                    result = FamilialRelationship.SONINLAW;
                }
                else if (value == "STPBRO")
                {
                    result = FamilialRelationship.STPBRO;
                }
                else if (value == "STPCHLD")
                {
                    result = FamilialRelationship.STPCHLD;
                }
                else if (value == "STPDAU")
                {
                    result = FamilialRelationship.STPDAU;
                }
                else if (value == "STPFTH")
                {
                    result = FamilialRelationship.STPFTH;
                }
                else if (value == "STPMTH")
                {
                    result = FamilialRelationship.STPMTH;
                }
                else if (value == "STPPRN")
                {
                    result = FamilialRelationship.STPPRN;
                }
                else if (value == "STPSIB")
                {
                    result = FamilialRelationship.STPSIB;
                }
                else if (value == "STPSIS")
                {
                    result = FamilialRelationship.STPSIS;
                }
                else if (value == "STPSON")
                {
                    result = FamilialRelationship.STPSON;
                }
                else if (value == "UNCLE")
                {
                    result = FamilialRelationship.UNCLE;
                }
                else if (value == "WIFE")
                {
                    result = FamilialRelationship.WIFE;
                }
                else
                {
                    return(false);
                }

                return(true);
            }