summaryrefslogtreecommitdiffstats
path: root/src/DotNetOAuth/Messaging/Reflection/ValueMapping.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2008-09-21 12:39:32 -0700
committerAndrew <andrewarnott@gmail.com>2008-09-21 12:39:32 -0700
commit76c4a164c8af4b5239834934bfa8915a60678ed5 (patch)
treebcf40394f040fced8b7b121d4a2d7f9367c78985 /src/DotNetOAuth/Messaging/Reflection/ValueMapping.cs
parent3b3a1836352fc2d50cb2698f9a2910aa1f9ba0d2 (diff)
downloadDotNetOpenAuth-76c4a164c8af4b5239834934bfa8915a60678ed5.zip
DotNetOpenAuth-76c4a164c8af4b5239834934bfa8915a60678ed5.tar.gz
DotNetOpenAuth-76c4a164c8af4b5239834934bfa8915a60678ed5.tar.bz2
StylCop and FxCop work.
Diffstat (limited to 'src/DotNetOAuth/Messaging/Reflection/ValueMapping.cs')
-rw-r--r--src/DotNetOAuth/Messaging/Reflection/ValueMapping.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/DotNetOAuth/Messaging/Reflection/ValueMapping.cs b/src/DotNetOAuth/Messaging/Reflection/ValueMapping.cs
index 2371b49..e2d869b 100644
--- a/src/DotNetOAuth/Messaging/Reflection/ValueMapping.cs
+++ b/src/DotNetOAuth/Messaging/Reflection/ValueMapping.cs
@@ -7,10 +7,25 @@
namespace DotNetOAuth.Messaging.Reflection {
using System;
+ /// <summary>
+ /// A pair of conversion functions to map some type to a string and back again.
+ /// </summary>
internal struct ValueMapping {
+ /// <summary>
+ /// The mapping function that converts some custom type to a string.
+ /// </summary>
internal Func<object, string> ValueToString;
+
+ /// <summary>
+ /// The mapping function that converts a string to some custom type.
+ /// </summary>
internal Func<string, object> StringToValue;
+ /// <summary>
+ /// Initializes a new instance of the <see cref="ValueMapping"/> struct.
+ /// </summary>
+ /// <param name="toString">The mapping function that converts some custom type to a string.</param>
+ /// <param name="toValue">The mapping function that converts a string to some custom type.</param>
internal ValueMapping(Func<object, string> toString, Func<string, object> toValue) {
if (toString == null) {
throw new ArgumentNullException("toString");