[corlib] Remove unused files
[mono.git] / mcs / class / System.Web.Mvc3 / Mvc / ViewEngineResult.cs
1 namespace System.Web.Mvc {
2     using System;
3     using System.Collections.Generic;
4
5     public class ViewEngineResult {
6
7         public ViewEngineResult(IEnumerable<string> searchedLocations) {
8             if (searchedLocations == null) {
9                 throw new ArgumentNullException("searchedLocations");
10             }
11
12             SearchedLocations = searchedLocations;
13         }
14
15         public ViewEngineResult(IView view, IViewEngine viewEngine) {
16             if (view == null) {
17                 throw new ArgumentNullException("view");
18             }
19             if (viewEngine == null) {
20                 throw new ArgumentNullException("viewEngine");
21             }
22
23             View = view;
24             ViewEngine = viewEngine;
25         }
26
27         public IEnumerable<string> SearchedLocations {
28             get;
29             private set;
30         }
31
32         public IView View {
33             get;
34             private set;
35         }
36
37         public IViewEngine ViewEngine {
38             get;
39             private set;
40         }
41     }
42 }