blob: 2371b491f53c0de2ad8ee69ba1be7cda92dc882d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
//-----------------------------------------------------------------------
// <copyright file="ValueMapping.cs" company="Andrew Arnott">
// Copyright (c) Andrew Arnott. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace DotNetOAuth.Messaging.Reflection {
using System;
internal struct ValueMapping {
internal Func<object, string> ValueToString;
internal Func<string, object> StringToValue;
internal ValueMapping(Func<object, string> toString, Func<string, object> toValue) {
if (toString == null) {
throw new ArgumentNullException("toString");
}
if (toValue == null) {
throw new ArgumentNullException("toValue");
}
this.ValueToString = toString;
this.StringToValue = toValue;
}
}
}
|