public bool TryGetValue(string Usage, int UsageIndex, out VertexValue val) { foreach (var value in Values) if (value.Usage == Usage && value.UsageIndex == UsageIndex) { val = value; return true; } val = new VertexValue(new Vector(), 0, Usage, UsageIndex); return false; }
public bool TryGetValue(string Usage, int UsageIndex, out VertexValue val) { foreach (var value in Values) { if (value.Usage == Usage && value.UsageIndex == UsageIndex) { val = value; return(true); } } val = new VertexValue(new Vector(), 0, Usage, UsageIndex); return(false); }