PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/tags/stable-1.1.1/Server/DefaultDocument/DefaultDocumentSection.cs

#
C# | 32 lines | 20 code | 4 blank | 8 comment | 2 complexity | aa7158c7f43c5ec2ed7c904e513f5843 MD5 | raw file
 1//-----------------------------------------------------------------------
 2// <copyright>
 3// Copyright (C) Ruslan Yakushev for the PHP Manager for IIS project.
 4//
 5// This file is subject to the terms and conditions of the Microsoft Public License (MS-PL).
 6// See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL for more details.
 7// </copyright>
 8//----------------------------------------------------------------------- 
 9
10using Microsoft.Web.Administration;
11
12namespace Web.Management.PHP.DefaultDocument
13{
14
15    internal class DefaultDocumentSection : ConfigurationSection
16    {
17        private FilesCollection _files;
18
19        public FilesCollection Files
20        {
21            get
22            {
23                if (this._files == null)
24                {
25                    ConfigurationElement files = base.GetChildElement("files");
26                    this._files = (FilesCollection)files.GetCollection(typeof(FilesCollection));
27                }
28                return this._files;
29            }
30        }
31    }
32}