Skip to content
This repository was archived by the owner on Sep 14, 2018. It is now read-only.

Commit f8cce37

Browse files
committed
Work around the fact that MethodInfo.ReturnParameter throws NotImplementedException on WP7.
(cherry picked from commit 8092e17)
1 parent 7c306ee commit f8cce37

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Languages/IronPython/IronPython/Runtime/Binding/SlotOrFunction.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ public Type/*!*/ ReturnType {
8787
public bool MaybeNotImplemented {
8888
get {
8989
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);
9292
}
9393

9494
return true;

0 commit comments

Comments
 (0)