aboutsummaryrefslogtreecommitdiff
path: root/src/ProtocolBuffers/FieldAccess/ReflectionUtil.cs
diff options
context:
space:
mode:
authorJon Skeet <skeet@pobox.com>2012-06-04 10:35:59 +0100
committerJon Skeet <skeet@pobox.com>2012-06-04 10:35:59 +0100
commit34378b49b5b7a2cac2305cd32a041b3ec29c66f8 (patch)
tree9bdf556de3b97fcb855c30e7788fdc8ef9a4f02f /src/ProtocolBuffers/FieldAccess/ReflectionUtil.cs
parent8f0dcf3df1548a1eff0bed54a9b992f55b8f72d5 (diff)
downloadprotobuf-34378b49b5b7a2cac2305cd32a041b3ec29c66f8.tar.gz
protobuf-34378b49b5b7a2cac2305cd32a041b3ec29c66f8.tar.bz2
protobuf-34378b49b5b7a2cac2305cd32a041b3ec29c66f8.zip
Test and fix for issue 45. When we fetch properties, explicitly state that
we don't want any arguments, to avoid ambiguity with indexers. (Also, change a few "typeof (Foo)" to "typeof(Foo)". Fuller replacement coming.)
Diffstat (limited to 'src/ProtocolBuffers/FieldAccess/ReflectionUtil.cs')
-rw-r--r--src/ProtocolBuffers/FieldAccess/ReflectionUtil.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ProtocolBuffers/FieldAccess/ReflectionUtil.cs b/src/ProtocolBuffers/FieldAccess/ReflectionUtil.cs
index 31ebde06..e876d9ce 100644
--- a/src/ProtocolBuffers/FieldAccess/ReflectionUtil.cs
+++ b/src/ProtocolBuffers/FieldAccess/ReflectionUtil.cs
@@ -45,6 +45,11 @@ namespace Google.ProtocolBuffers.FieldAccess
internal static class ReflectionUtil
{
/// <summary>
+ /// Empty Type[] used when calling GetProperty to force property instead of indexer fetching.
+ /// </summary>
+ internal static readonly Type[] EmptyTypes = new Type[0];
+
+ /// <summary>
/// Creates a delegate which will execute the given method and then return
/// the result as an object.
/// </summary>