DataStringFormat(String, String, Object, CultureInfo) Method

Converts a format string by finding the given field name and converting the value.

Definition

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

Parameters

format  String
Format string (for example: "Name and age: {Name} - {Age:000} years").
field  String
Name of the field.
value  Object
Value of the field to be established.
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