linux-packaging-mono/mcs/class/System.Web.Mvc3/Mvc/UnvalidatedRequestValuesWrapper.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

29 lines
838 B
C#

namespace System.Web.Mvc {
using System.Collections.Specialized;
using System.Web.Helpers;
// Concrete implementation for the IUnvalidatedRequestValues helper interface
internal sealed class UnvalidatedRequestValuesWrapper : IUnvalidatedRequestValues {
private readonly UnvalidatedRequestValues _unvalidatedValues;
public UnvalidatedRequestValuesWrapper(UnvalidatedRequestValues unvalidatedValues) {
_unvalidatedValues = unvalidatedValues;
}
public NameValueCollection Form {
get { return _unvalidatedValues.Form; }
}
public NameValueCollection QueryString {
get { return _unvalidatedValues.QueryString; }
}
public string this[string key] {
get { return _unvalidatedValues[key]; }
}
}
}