BL_pundt.WebSite.WebSite C# (CSharp) Method

WebSite() public method

public WebSite ( string url ) : System
url string
return System
        public WebSite(string url)
        {
            this.URL = url;
            this.content = LoadContent();
            this.fileName = url;

            foreach (var invalidChar in Path.GetInvalidFileNameChars())
            {
                fileName = fileName.Replace(invalidChar, '_');
            }

            this.fileName =  Path.ChangeExtension(fileName, ".html");
        }