System.Web.Hosting.ApplicationHost.FindWebConfig C# (CSharp) Method

FindWebConfig() static private method

static private FindWebConfig ( string basedir ) : string
basedir string
return string
		static string FindWebConfig (string basedir)
		{
			string r = null;
				
			foreach (string s in WebConfigFileNames){
				r = Path.Combine (basedir, s);

				if (File.Exists (r))
					return r;
			}
			// default: return the last one
			return r;
		}