Source/NFX.Erlang/ErlInputStream.cs
/// <summary>
/// Read an Erlang atom from the stream and interpret the value as a boolean
/// </summary>
Read an Erlang atom from the stream and interpret the value as a boolean
Read an Erlang atom from the stream and interpret the value as a boolean
public ErlBoolean ReadBoolean()
      {
        var a = ReadAtom();
        switch (a.Index)
        {
          case AtomTable.TRUE_INDEX: return new ErlBoolean(true);
          case AtomTable.FALSE_INDEX: return new ErlBoolean(false);
          default:
            throw new ErlException(StringConsts.ERL_INVALID_VALUE_ERROR,
                a.Value);
        }
      }
public ErlBoolean ReadBoolean ( ) { var a = ReadAtom ( ) ; switch ( a . Index ) { case AtomTable . TRUE_INDEX : return new ErlBoolean ( true ) ; case AtomTable . FALSE_INDEX : return new ErlBoolean ( false ) ; default : throw new ErlException ( StringConsts . ERL_INVALID_VALUE_ERROR , a . Value ) ; } }
Read an Erlang atom from the stream and interpret the value as a boolean
Read an Erlang atom from the stream and interpret the value as a boolean