* ContextStack.cs: Also check for subclasses in the Type-based
indexter property.
[Fixes bug #509151]
svn path=/trunk/mcs/; revision=135546
+2008-06-05 Ivan N. Zlatev <contact@i-nz.net>
+
+ * ContextStack.cs: Also check for subclasses in the Type-based
+ indexter property.
+ [Fixes bug #509151]
+
2007-11-13 Atsushi Enomoto <atsushi@ximian.com>
* ResolveNameEventHandler.cs, RootDesignerSerializerAttribute.cs,
public object this[Type type] {
get {
for (int i = _contextList.Count - 1; i >= 0; i--)
- if (_contextList[i].GetType () == type)
+ if (type.IsInstanceOfType (_contextList[i]))
return _contextList[i];
return null;
}