public static bool TryParse(string value, out SecurityEventObjectLifecycle result)
            {
                result = default(SecurityEventObjectLifecycle);

                if( value=="1")
                    result = SecurityEventObjectLifecycle.N1;
                else if( value=="2")
                    result = SecurityEventObjectLifecycle.N2;
                else if( value=="3")
                    result = SecurityEventObjectLifecycle.N3;
                else if( value=="4")
                    result = SecurityEventObjectLifecycle.N4;
                else if( value=="5")
                    result = SecurityEventObjectLifecycle.N5;
                else if( value=="6")
                    result = SecurityEventObjectLifecycle.N6;
                else if( value=="7")
                    result = SecurityEventObjectLifecycle.N7;
                else if( value=="8")
                    result = SecurityEventObjectLifecycle.N8;
                else if( value=="9")
                    result = SecurityEventObjectLifecycle.N9;
                else if( value=="10")
                    result = SecurityEventObjectLifecycle.N10;
                else if( value=="11")
                    result = SecurityEventObjectLifecycle.N11;
                else if( value=="12")
                    result = SecurityEventObjectLifecycle.N12;
                else if( value=="13")
                    result = SecurityEventObjectLifecycle.N13;
                else if( value=="14")
                    result = SecurityEventObjectLifecycle.N14;
                else if( value=="15")
                    result = SecurityEventObjectLifecycle.N15;
                else
                    return false;

                return true;
            }
 public static string ToString(SecurityEventObjectLifecycle value)
 {
     if( value==SecurityEventObjectLifecycle.N1 )
         return "1";
     else if( value==SecurityEventObjectLifecycle.N2 )
         return "2";
     else if( value==SecurityEventObjectLifecycle.N3 )
         return "3";
     else if( value==SecurityEventObjectLifecycle.N4 )
         return "4";
     else if( value==SecurityEventObjectLifecycle.N5 )
         return "5";
     else if( value==SecurityEventObjectLifecycle.N6 )
         return "6";
     else if( value==SecurityEventObjectLifecycle.N7 )
         return "7";
     else if( value==SecurityEventObjectLifecycle.N8 )
         return "8";
     else if( value==SecurityEventObjectLifecycle.N9 )
         return "9";
     else if( value==SecurityEventObjectLifecycle.N10 )
         return "10";
     else if( value==SecurityEventObjectLifecycle.N11 )
         return "11";
     else if( value==SecurityEventObjectLifecycle.N12 )
         return "12";
     else if( value==SecurityEventObjectLifecycle.N13 )
         return "13";
     else if( value==SecurityEventObjectLifecycle.N14 )
         return "14";
     else if( value==SecurityEventObjectLifecycle.N15 )
         return "15";
     else
         throw new ArgumentException("Unrecognized SecurityEventObjectLifecycle value: " + value.ToString());
 }