예제 #1
0
 public static string GetErrorString(this IPositionableInputStream stream, CanCauseError error)
 {
     return(string.Format("{0}: {1}", (object)stream.GetPositionString(), (object)error.ErrorMessage));
 }
예제 #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()*/));
 }