Generated by DocFX

Class FileExtensions

Class FileNameExtensions.

Inheritance
System.Object
FileExtensions
Namespace: ISynergy.Framework.Core.Extensions
Assembly: ISynergy.Framework.Core.dll
Syntax
public static class FileExtensions : object

Methods

View Source

IsValidFileName(String)

Determines whether [is valid file name] [the specified file name].

Declaration
public static bool IsValidFileName(this string _self)
Parameters
Type Name Description
System.String _self

Name of the file.

Returns
Type Description
System.Boolean

true if [is valid file name] [the specified file name]; otherwise, false.

View Source

MakeValidFileName(String)

Makes the name of the valid file.

Declaration
public static string MakeValidFileName(this string _self)
Parameters
Type Name Description
System.String _self

Name of the file.

Returns
Type Description
System.String

System.String.

View Source

ToContentType(String)

Converts filename to contenttype.

Declaration
public static string ToContentType(this string self)
Parameters
Type Name Description
System.String self

The full filename.

Returns
Type Description
System.String

System.String.