2
Answers

I need some help to understand lambad expresion

Catalin Radu

Catalin Radu

7y
574
1
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)