Skip to content
This repository has been archived by the owner on Sep 14, 2018. It is now read-only.
Permalink
Browse files
Work around the fact that MethodInfo.ReturnParameter throws NotImplem…
…entedException on WP7.

(cherry picked from commit 8092e17)
  • Loading branch information
jdhardy committed Mar 10, 2012
1 parent 7c306ee commit f8cce37420838b8197f31eedb1e04ae3a2e102ac
Showing 1 changed file with 2 additions and 2 deletions.
@@ -87,8 +87,8 @@ sealed class SlotOrFunction {
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;

0 comments on commit f8cce37

Please sign in to comment.