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

Commit

Permalink
Work around the fact that MethodInfo.ReturnParameter throws NotImplem…
Browse files Browse the repository at this point in the history
…entedException on WP7.

(cherry picked from commit 8092e17)
  • Loading branch information
jdhardy committed Mar 10, 2012
1 parent 7c306ee commit f8cce37
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ public Type/*!*/ ReturnType {
public bool MaybeNotImplemented {
get {
if (_function != null) {
ParameterInfo ret = _function.Overload.ReturnParameter;
return ret != null && ret.IsDefined(typeof(MaybeNotImplementedAttribute), false);
var method = _function.Overload.ReflectionInfo as MethodInfo;
return method != null && method.IsDefined(typeof(MaybeNotImplementedAttribute), false);
}

return true;
Expand Down

0 comments on commit f8cce37

Please sign in to comment.