Click or drag to resize

UtilitiesEscape Method

Escape string array for writing in CSV files

Namespace:  Hummingbird.TestFramework
Assembly:  Hummingbird.TestFramework (in Hummingbird.TestFramework.dll) Version: 1.2.0.0
Syntax
public static bool Escape(
	this string[] array,
	int maxLength = 32767
)

Parameters

array
Type: SystemString
the string array which represents a data line.
maxLength (Optional)
Type: SystemInt32
Maximum length of a field in the array, default value is 32767 (Maximum length can be held in an Excel cell)

Return Value

Type: Boolean
False if the value of cell is trimmed, True if the value is not trimmed

Usage Note

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