Foxoft.Ci.CiResolver.GetConstString C# (CSharp) Method

GetConstString() static private method

static private GetConstString ( CiExpr expr ) : string
expr CiExpr
return string
        static string GetConstString(CiExpr expr)
        {
            object o = ((CiConstExpr) expr).Value;
            if (o is string || o is int || o is byte)
            return Convert.ToString(o, CultureInfo.InvariantCulture);
            throw new ResolveException("Cannot convert {0} to string", expr.Type);
        }