コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WebDependencyFile" /> class.
 /// </summary>
 /// <param name="path">The path.</param>
 /// <param name="type">The type.</param>
 /// <param name="encoding">The encoding.</param>
 /// <param name="attributes">The attributes.</param>
 public WebDependencyFile(string path, WebDependencyFileType type, Encoding encoding = null, IDictionary <string, object> attributes = null)
 {
     this.Path       = path;
     this.Type       = type;
     this.Encoding   = encoding;
     this.Attributes = attributes;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WebDependencyFile" /> class.
 /// </summary>
 /// <param name="path">The path.</param>
 /// <param name="type">The type.</param>
 /// <param name="attributes">The attributes.</param>
 public WebDependencyFile(string path, WebDependencyFileType type, params string[] attributes)
 {
     this.Path       = path;
     this.Type       = type;
     this.Attributes = ReadAttributes(attributes);
 }