C# Class Faker.Computer

Static class for computer generation
Exibir arquivo Open project: FermJacob/Faker.Data

Public Methods

Method Description
CommonFileExt ( ) : string

Returns a commonly used file extension

CommonFileName ( string ext = null ) : string

Gets a common filename

CommonFileType ( ) : string

Returns a commonly used file type

Exception ( ) : Exception

Get a random `Exception` with a fake stack trace.

FileExt ( string mimeType = null ) : string

Gets a random extension for the given mime type.

FileName ( string ext = null ) : string

Get a random file name

FileType ( ) : string

Returns any file type available as mime-type

SemanticVersion ( ) : string

Get a random Semantic Version version string.

Version ( ) : System.Version

Get a random `System.Version`

Method Details

CommonFileExt() public static method

Returns a commonly used file extension
public static CommonFileExt ( ) : string
return string

CommonFileName() public static method

Gets a common filename
public static CommonFileName ( string ext = null ) : string
ext string An extension
return string

CommonFileType() public static method

Returns a commonly used file type
public static CommonFileType ( ) : string
return string

Exception() public static method

Get a random `Exception` with a fake stack trace.
public static Exception ( ) : Exception
return System.Exception

FileExt() public static method

Gets a random extension for the given mime type.
public static FileExt ( string mimeType = null ) : string
mimeType string A meme type
return string

FileName() public static method

Get a random file name
public static FileName ( string ext = null ) : string
ext string An extension
return string

FileType() public static method

Returns any file type available as mime-type
public static FileType ( ) : string
return string

SemanticVersion() public static method

Get a random Semantic Version version string.
public static SemanticVersion ( ) : string
return string

Version() public static method

Get a random `System.Version`
public static Version ( ) : System.Version
return System.Version