Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は次のリストクラスを持っています
public class Users { public string Username { get; set; } public string PlayerID { get; set; } }
username = xのplayerIDを選択するにはどうすればよいですか?
var player = playerList.FirstOrDefault(p => p.Username == "x"); if(player != null) { string id = player.PlayerID; }