http://stackoverflow.com/questions/793897/check-if-keyvaluepair-exists-with-linqs-firstordefault 问题: I have a dictionary of type Dictionary<Guid,int> I want to return the first instance where a condition is met using var available = m_AvailableDict.…
using UnityEngine; using System.Collections; using System.Collections.Generic;public class test : MonoBehaviour { void Start () { Dictionary<int,object> dict = new Dictionary<int,object> (); dict.Add (,,)); dict.Add (,,)); dict.Add (,,)); dict…