Click or drag to resize

filePathOperationsgetFilename Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
2017c> Makes proper filename our of any string -- better than> getCleanFilePath(String) (Izbacuje iz imena fajla sve nepravilne karaktere)

Namespace:  imbSCI.Core.extensions.io
Assembly:  imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntax
C#
public static string getFilename(
	this string name,
	string extension = ""
)
Request Example View Source

Parameters

name
Type: SystemString
filename without extension
extension (Optional)
Type: SystemString

Return Value

Type: String

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also