Posts by Joao Raposo • 131 points
2 posts
-
1
votes3
answers2393
viewsA: Xmldocument Exception: hexadecimal value 0x1a, is an invalid character
Good answer @Conrad Clark I have a third suggestion in case you don’t know how many more characters the file has at the end. xmlDoc.LoadXml(System.Text.RegularExpressions.Regex.Match(localMontaXML,…
-
12
votes5
answers14262
viewsA: How to sort list with complex object by one of its properties?
You can use Lynne for that: objetos = objetos.OrderBy(o => o.Desc).ToList(); or passing a function on . Sort() objetos.Sort((o1,o2) => o1.Desc.CompareTo(o2.Desc));…