Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2002-07-24 Martin Baulig <martin@gnome.org>
* statement.cs (Foreach.ForeachHelperMethods): Added `Type element_type', initialize it to TypeManager.object_type in the constructor. (Foreach.GetEnumeratorFilter): Set `hm.element_type' to the return type of the `hm.get_current' method if we're using the collection pattern. (Foreach.EmitCollectionForeach): Use `hm.element_type' as the source type for the explicit conversion to make it work when we're using the collection pattern and the `Current' property has a different return type than `object'. Fixes #27713. svn path=/trunk/mcs/; revision=6153
- Loading branch information
Martin Baulig
committed
Jul 24, 2002
1 parent
170352e
commit e1acf0f
Showing
2 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters