diff options
author | csharptest <roger@csharptest.net> | 2011-10-04 13:43:26 -0500 |
---|---|---|
committer | rogerk <devnull@localhost> | 2011-10-04 13:43:26 -0500 |
commit | eac64a5f7afdfca32476534fd8d0bf69d77002ca (patch) | |
tree | 03a38e9992afd1ffb929f3f830d6054009a9cba2 /src/ProtocolBuffers/ThrowHelper.cs | |
parent | 5e48fef659b571db38be18afb61bea0cffcdfdca (diff) | |
download | protobuf-eac64a5f7afdfca32476534fd8d0bf69d77002ca.tar.gz protobuf-eac64a5f7afdfca32476534fd8d0bf69d77002ca.tar.bz2 protobuf-eac64a5f7afdfca32476534fd8d0bf69d77002ca.zip |
- Upgraded NUnit
- Added StatLight and Silverlight unit testing
- Added copies of all projects for Silverlight
- Integrated Silverlight unit tests in build
Diffstat (limited to 'src/ProtocolBuffers/ThrowHelper.cs')
-rw-r--r-- | src/ProtocolBuffers/ThrowHelper.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ProtocolBuffers/ThrowHelper.cs b/src/ProtocolBuffers/ThrowHelper.cs index c854a777..f04a7f16 100644 --- a/src/ProtocolBuffers/ThrowHelper.cs +++ b/src/ProtocolBuffers/ThrowHelper.cs @@ -79,5 +79,14 @@ namespace Google.ProtocolBuffers }
}
}
+
+ public static Exception CreateMissingMethod(Type type, string methodName)
+ {
+#if SILVERLIGHT
+ return new MissingMethodException(String.Format("The method '{0}' was not found on type {1}", methodName, type));
+#else
+ return new MissingMethodException(String.Format("{0}", type), methodName);
+#endif
+ }
}
}
\ No newline at end of file |