Property | Type | Description | |
---|---|---|---|
Create | |||
GetContents | byte[] | ||
GetHash | string | ||
StaticFile | System |
Method | Description | |
---|---|---|
GetContentType ( string extension ) : string |
Gets the content-type to use for files with the given extension. Expects the leading "." to be included with the extension.
|
|
GetContentsAsString ( string name ) : string |
Loads the contents of an embedded static file and converts it to a string.
|
Method | Description | |
---|---|---|
Create ( string urlRoot, string path ) : |
||
GetContents ( string name ) : byte[] |
Loads the contents of an embedded static file into a buffer and returns it.
|
|
GetHash ( string name ) : string | ||
StaticFile ( ) : System |
Prevents a default instance of the StaticFile class from being created.
|
public static GetContentType ( string extension ) : string | ||
extension | string | The extension to get the content-type for. |
return | string |
public static GetContentsAsString ( string name ) : string | ||
name | string | The name of the file to load. |
return | string |