私はこのオブジェクトを持っています:
class Animation
{
//[...]
private SortedList<int,Frame> frames = new SortedList<int,Frame>();
private IDictionaryEnumerator frameEnumerator = null;
//[...]
public void someFunction() {
frameEnumerator = frames.GetEnumerator(); //throw error
}
//[...]
}
私はそこでmsnのドキュメントをチェックします:http://msdn.microsoft.com/en-us/library/system.collections.sortedlist.getenumerator.aspx、私のコードは正しいように見えますが、VSは言います:
System.Collections.Generic.IEnumerator>'を'System.Collections.IDictionaryEnumerator'に変換できません。