Source/NFX.Erlang/Types/ErlVar.cs
/// <summary>
/// Get the printable version of the string contained in this object
/// </summary>
Get the printable version of the string contained in this object
Get the printable version of the string contained in this object
public override string ToString()
    {
      string tp;
      switch (ValueType)
      {
        case ErlTypeOrder.ErlAtom:    tp = "::atom()";   break;
        case ErlTypeOrder.ErlBinary:  tp = "::binary()"; break;
        case ErlTypeOrder.ErlBoolean: tp = "::bool()";   break;
        case ErlTypeOrder.ErlByte:    tp = "::byte()";   break;
        case ErlTypeOrder.ErlDouble:  tp = "::double()"; break;
        case ErlTypeOrder.ErlLong:    tp = "::int()";    break;
        case ErlTypeOrder.ErlList:    tp = "::list()";   break;
        case ErlTypeOrder.ErlPid:     tp = "::pid()";    break;
        case ErlTypeOrder.ErlPort:    tp = "::port()";   break;
        case ErlTypeOrder.ErlRef:     tp = "::ref()";    break;
        case ErlTypeOrder.ErlString:  tp = "::string()"; break;
        case ErlTypeOrder.ErlTuple:   tp = "::tuple()";  break;
        case ErlTypeOrder.ErlVar:     tp = "::var()";    break;
        default: tp = string.Empty; break;
      }
      return tp == string.Empty
          ? string.Format("{0}", Name.Value)
          : string.Format("{0}{1}", Name.Value, tp);
    }
public override string ToString ( ) { string tp ; switch ( ValueType ) { case ErlTypeOrder . ErlAtom : tp = " " ; break ; case ErlTypeOrder . ErlBinary : tp = " " ; break ; case ErlTypeOrder . ErlBoolean : tp = " " ; break ; case ErlTypeOrder . ErlByte : tp = " " ; break ; case ErlTypeOrder . ErlDouble : tp = " " ; break ; case ErlTypeOrder . ErlLong : tp = " " ; break ; case ErlTypeOrder . ErlList : tp = " " ; break ; case ErlTypeOrder . ErlPid : tp = " " ; break ; case ErlTypeOrder . ErlPort : tp = " " ; break ; case ErlTypeOrder . ErlRef : tp = " " ; break ; case ErlTypeOrder . ErlString : tp = " " ; break ; case ErlTypeOrder . ErlTuple : tp = " " ; break ; case ErlTypeOrder . ErlVar : tp = " " ; break ; default : tp = string . Empty ; break ; } return tp == string . Empty ? string . Format ( " " , Name . Value ) : string . Format ( " " , Name . Value , tp ) ; }
Get the printable version of the string contained in this object
Get the printable version of the string contained in this object