Skip to content
This repository
Browse code

Work around the fact that MethodInfo.ReturnParameter throws NotImplem…

…entedException on WP7.

(cherry picked from commit 8092e17)
  • Loading branch information...
commit f8cce37420838b8197f31eedb1e04ae3a2e102ac 1 parent 7c306ee
Jeff Hardy authored March 09, 2012
4  Languages/IronPython/IronPython/Runtime/Binding/SlotOrFunction.cs
@@ -87,8 +87,8 @@ sealed class SlotOrFunction {
87 87
         public bool MaybeNotImplemented {
88 88
             get {
89 89
                 if (_function != null) {
90  
-                    ParameterInfo ret = _function.Overload.ReturnParameter;
91  
-                    return ret != null && ret.IsDefined(typeof(MaybeNotImplementedAttribute), false);
  90
+                    var method = _function.Overload.ReflectionInfo as MethodInfo;
  91
+                    return method != null && method.IsDefined(typeof(MaybeNotImplementedAttribute), false);
92 92
                 }
93 93
 
94 94
                 return true;

0 notes on commit f8cce37

Please sign in to comment.
Something went wrong with that request. Please try again.