aboutsummaryrefslogtreecommitdiff
path: root/src/ProtocolBuffers/FieldAccess/ReflectionUtil.cs
diff options
context:
space:
mode:
authorcsharptest <roger@csharptest.net>2012-10-14 23:13:09 -0500
committerrogerk <devnull@localhost>2012-10-14 23:13:09 -0500
commit09761a8967c5119f9f55e1f7e917f55369eded8b (patch)
treeeb6a9bdb73ca1eef21281d80865414dab0abd339 /src/ProtocolBuffers/FieldAccess/ReflectionUtil.cs
parentc9bce45a01cc8861ec7c88e84d947ed6ebc8f7d1 (diff)
downloadprotobuf-09761a8967c5119f9f55e1f7e917f55369eded8b.tar.gz
protobuf-09761a8967c5119f9f55e1f7e917f55369eded8b.tar.bz2
protobuf-09761a8967c5119f9f55e1f7e917f55369eded8b.zip
Build fixes from portable changes
Diffstat (limited to 'src/ProtocolBuffers/FieldAccess/ReflectionUtil.cs')
-rw-r--r--src/ProtocolBuffers/FieldAccess/ReflectionUtil.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ProtocolBuffers/FieldAccess/ReflectionUtil.cs b/src/ProtocolBuffers/FieldAccess/ReflectionUtil.cs
index 3c9504c4..798f0dd7 100644
--- a/src/ProtocolBuffers/FieldAccess/ReflectionUtil.cs
+++ b/src/ProtocolBuffers/FieldAccess/ReflectionUtil.cs
@@ -136,7 +136,7 @@ namespace Google.ProtocolBuffers.FieldAccess
internal static Func<TResult> CreateDelegateFunc<TResult>(MethodInfo method)
{
-#if !NOCREATEDELEGATE
+#if !CF20
object tdelegate = Delegate.CreateDelegate(typeof(Func<TResult>), null, method);
return (Func<TResult>)tdelegate;
#else
@@ -146,7 +146,7 @@ namespace Google.ProtocolBuffers.FieldAccess
internal static Func<T, TResult> CreateDelegateFunc<T, TResult>(MethodInfo method)
{
-#if !NOCREATEDELEGATE
+#if !CF20
object tdelegate = Delegate.CreateDelegate(typeof(Func<T, TResult>), null, method);
return (Func<T, TResult>)tdelegate;
#else
@@ -160,7 +160,7 @@ namespace Google.ProtocolBuffers.FieldAccess
internal static Func<T1, T2, TResult> CreateDelegateFunc<T1, T2, TResult>(MethodInfo method)
{
-#if !NOCREATEDELEGATE
+#if !CF20
object tdelegate = Delegate.CreateDelegate(typeof(Func<T1, T2, TResult>), null, method);
return (Func<T1, T2, TResult>)tdelegate;
#else
@@ -174,7 +174,7 @@ namespace Google.ProtocolBuffers.FieldAccess
internal static Action<T1, T2> CreateDelegateAction<T1, T2>(MethodInfo method)
{
-#if !NOCREATEDELEGATE
+#if !CF20
object tdelegate = Delegate.CreateDelegate(typeof(Action<T1, T2>), null, method);
return (Action<T1, T2>)tdelegate;
#else