Click or drag to resize

ConvertReplace Method

Replace data field placeholder with data value

Namespace:  SOWIData.Helper
Assembly:  SOWIData.Helper (in SOWIData.Helper.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax
public static string Replace(
	this string pText,
	Object pDataItem
)

Parameters

pText
Type: SystemString
text with data field placeholder
pDataItem
Type: SystemObject
data item class

Return Value

Type: String
replaced text

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).
Examples
Text: Ihr Name: $Name$. Ihre Adresse: $Adresse$ This text replace value with data field Name and Address values: Ihr Name: Franz. Ihre Addresse: Musterstrasse 20, 9060 Muster
See Also