예제 #1
0
파일: Match.cs 프로젝트: kenkendk/SMEIL
 /// <summary>
 /// Gets the first match for the given instance, or null
 /// </summary>
 /// <param name="instance">The instance to look for</param>
 /// <returns>The first match or null</returns>
 public BNF.Match FirstOrDefault(BNF.BNFItem instance)
 {
     return(Flat.FirstOrDefault(x => x.Token == instance));
 }