Adds the extension to the file name.

Namespace:  SGP.XUtility
Assembly:  SGP.XUtility (in SGP.XUtility.dll)
Version: 1.2.3019.18718

Syntax

C#
public static string AddFileNameSuffix(
	string fileName,
	string suffix
)

Parameters

fileName
Type: System..::.String
A file name with the path.
suffix
Type: System..::.String
An extension.

Return Value

Gets the file name with a added extension.

Remarks

Method returns the file name fileName with the suffix suffix. The suffix is appended between the filename and his extension, before '.'. When the file name is given with a path, the path is preserved.

Exceptions

ExceptionCondition
System..::.ArgumentNullException fileName is nullNothingnullptra null reference (Nothing in Visual Basic).
System..::.ArgumentNullException suffix is nullNothingnullptra null reference (Nothing in Visual Basic).

See Also