For Babelfish Release 1.11.1.3

StringInterpolationExtractFieldValue Method

Inputs a string such as "{XXXX}" and returns the portion of the string that's inside the curly brackets. Wich in this example would be "XXXX". If the input string does not start and end with curly brackets then an empty string is returned.

Definition

Namespace: Scopos.BabelFish.Helpers.Extensions
Assembly: BabelFish (in BabelFish.dll) Version: 1.11.1.4+b1da393815f6638555a663d9a94167ecabea5695
C#
public static string ExtractFieldValue(
	this string source
)

Parameters

source  String

Return Value

String

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).

See Also