我在此行中收到错误“语法错误'=>'预期“
ListOfPossiblePlates.Sort((OnePlate ,OtherPlate) OtherPlate.strChars.Length.CompareTo(OnePlate.strChars.Length));
请告诉我解决方案
答案 0 :(得分:0)
你应该这样写;
ListOfPossiblePlates.Sort((OnePlate ,OtherPlate) => OtherPlate.strChars.Length.CompareTo(OnePlate.strChars.Length));