This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void Main() | |
| { | |
| var indi = new List<Indi>(); | |
| var cedulaSearch = "02317270340"; | |
| indi.Add(new Indi{Name="Joseph", Cedula="013-1487034-8"}); | |
| indi.Add(new Indi{Name="Milton", Cedula="023-1727034-0"}); | |
| var result = indi.FirstOrDefault(u => u.Cedula.Replace("-","") == cedulaSearch); |
NewerOlder