Catalin Radu

Catalin Radu

  • NA
  • 30
  • 2.7k

I need some help to understand lambad expresion

Feb 18 2018 5:30 AM
I know this might sound very stupid but can someone explain to me why the following code do not work? and maybe some tutorial for dummie on lambad:
  1. int test = 1;  
  2.         int testLambadIndex = rooms.FindIndex (r => (Room.LastCreatedRoomAt)r.lastCreatedRoomAt = (Room.LastCreatedRoomAt)test);  
i try to use this enum from Room class 
  1. public enum LastCreatedRoomAt{North = 1,South,West,East,None};  
rooms is a list of type Room.
 

Answers (2)