public static GetRequiredObject ( this items, string key ) : object | ||
items | this | |
key | string | |
리턴 | object |
public static object GetRequiredObject(this RouteValueDictionary items, string key)
{
if (!items.Keys.Contains(key))
throw new ArgumentNullException("The " + key + " query string parameter was not found but is required");
return items[key];
}