Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/System/System.ComponentModel.Design.Serialization/ContextStack.cs')
-rwxr-xr-x[-rw-r--r--]mcs/class/System/System.ComponentModel.Design.Serialization/ContextStack.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mcs/class/System/System.ComponentModel.Design.Serialization/ContextStack.cs b/mcs/class/System/System.ComponentModel.Design.Serialization/ContextStack.cs
index e7b0dd96066..132e28447c8 100644..100755
--- a/mcs/class/System/System.ComponentModel.Design.Serialization/ContextStack.cs
+++ b/mcs/class/System/System.ComponentModel.Design.Serialization/ContextStack.cs
@@ -57,7 +57,7 @@ namespace System.ComponentModel.Design.Serialization
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;
}