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 SourceIsValidFileName(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 |
|
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. |
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. |