Click or drag to resize

imbStringPathToolsgetValidFileName Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Cleans up filename candidate String by removing all forbiden characters from filename and replaces . with _. Also adds extension if any provided.

Namespace:  imbSCI.Core.extensions.text
Assembly:  imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntax
C#
public static string getValidFileName(
	this string filename,
	string extensionToAdd = ""
)
Request Example View Source

Parameters

filename
Type: SystemString
extensionToAdd (Optional)
Type: SystemString
Ekstenzija koja treba da se nalazi na kraju fajla

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