Ejemplo n.º 1
0
 public static string GetErrorString(this IPositionableInputStream stream, CanCauseError error)
 {
     return(string.Format("{0}: {1}", (object)stream.GetPositionString(), (object)error.ErrorMessage));
 }
Ejemplo n.º 2
0
 public static string GetErrorString(this IPositionableInputStream stream, string error)
 {
     return(string.Format("{0}: {1}" /*: {2}"*/, (object)stream.GetPositionString(), (object)error /*, (object) stream.PeekOriginalLine()*/));
 }