C# Class System.Waf.Applications.Services.FileType

Represents a file type.
Exibir arquivo Open project: jbe2277/waf Class Usage Examples

Public Methods

Method Description
FileType ( string description, IEnumerable fileExtensions ) : System.Collections.Generic

Initializes a new instance of the FileType class.

FileType ( string description, string fileExtension ) : System.Collections.Generic

Initializes a new instance of the FileType class.

Private Methods

Method Description
CheckFileExtensions ( IEnumerable fileExtensions ) : IEnumerable

Method Details

FileType() public method

Initializes a new instance of the FileType class.
description is null or an empty string. One or more of the file extension strings doesn't start with a '.' point character. fileExtensions is null.
public FileType ( string description, IEnumerable fileExtensions ) : System.Collections.Generic
description string The description of the file type.
fileExtensions IEnumerable A list of file extensions. Every string has to start with a '.' point.
return System.Collections.Generic

FileType() public method

Initializes a new instance of the FileType class.
description is null or an empty string. fileExtension is null, an empty string or doesn't start with a '.' point character.
public FileType ( string description, string fileExtension ) : System.Collections.Generic
description string The description of the file type.
fileExtension string The file extension. This string has to start with a '.' point. Use the string ".*" to allow all file extensions.
return System.Collections.Generic