DataStringFormat(String, DataRow, CultureInfo) Method

Converts a format string with field names to a string with values

Definition

Namespace: Aliquo.Core
Assembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
C#
public static string StringFormat(
	string format,
	DataRow row,
	CultureInfo culture = null
)

Parameters

format  String
Format string (for example: "Name and age: {Name} - {Age:000} years").
row  DataRow
Data row.
culture  CultureInfo  (Optional)
Culture to use for the format.

Return Value

String
String with the value result (for example: "Name and age: John - 045 years").

See Also