我在這段代碼中得到一個StackOverflow的錯誤:列表中找到()StackOverflow的錯誤
編輯
[XmlAttribute("ID")]
public string ID { get; set; }
EDIT2
public ParameterEntity this[string szID]
{
get
{
//Finds the parameter entity with the ID passed in.
return rParameters.Find(
delegate(ParameterEntity oParameterEntity)
{
return oParameterEntity.ID.Equals(szID, StringComparison.OrdinalIgnoreCase);
});
}
}
你們可以請指教?
我可能只需要使用一個簡單的手動循環。
感謝 -Oliver
ParameterEntity.ID的getter是否有任何時髦的代碼? – Charlie 2009-09-03 11:38:22
是的,1-請提供ID吸氣器(看起來實際上有兩個ID吸氣器) – Toto 2009-09-03 11:43:33
你能給出一些更詳細的代碼或更大的代碼快照嗎? – malay 2009-09-03 11:44:56