Click or drag to resize

imbStringGeneratorsgetSerial Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Generise "serijski" broj - tj. na broj dodaje leading 0 i spliter koji mu se zada

Namespace:  imbSCI.Core.extensions.text
Assembly:  imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntax
C#
public static string getSerial(
	this int number,
	int spaces = 3,
	string spliter = "_"
)
Request Example View Source

Parameters

number
Type: SystemInt32
Ulazni broj koji se formatira u serijsku formu
spaces (Optional)
Type: SystemInt32
Broj karaktera u broju
spliter (Optional)
Type: SystemString

Return Value

Type: String
Formatiran broj

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Int32. 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