Exemple #1
0
            public override string /*!*/ ToString()
            {
                if (_args == null)
                {
                    return(string.Empty);
                }
                if (_args.__len__() == 0)
                {
                    return(String.Empty);
                }
                if (_args.__len__() == 1)
                {
                    string str;
                    Extensible <string> extStr;

                    if ((str = _args[0] as string) != null)
                    {
                        return(str);
                    }

                    if ((extStr = _args[0] as Extensible <string>) != null)
                    {
                        return(extStr.Value);
                    }

                    return(PythonOps.ToString(_args[0]));
                }

                return(_args.ToString());
            }
 public override string /*!*/ ToString()
 {
     return((_args.__len__()) switch
     {
         0 => string.Empty,
         1 => PythonOps.ToString(_args[0]),
         _ => _args.ToString(),
     });