Accord.Fuzzy.Rule.GetRPNExpression C# (CSharp) Method

GetRPNExpression() public method

Converts the RPN fuzzy expression into a string representation.
public GetRPNExpression ( ) : string
return string
        public string GetRPNExpression( )
        {
            string result = "";
            foreach ( object o in rpnTokenList )
            {
                // if its a fuzzy clause we can call clause's ToString()
                if ( o.GetType( ) == typeof( Clause ) )
                {
                    Clause c = o as Clause;
                    result += c.ToString( );
                }
                else
                    result += o.ToString( );
                result += ", ";
            }
            result += "#";
            result = result.Replace( ", #", "" );
            return result;
        }