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
)
<ExtensionAttribute>
Public Shared Function Escape (
array As String(),
Optional maxLength As Integer = 32767
) As Boolean
public:
[ExtensionAttribute]
static bool Escape(
array<String^>^ array,
int maxLength = 32767
)
[<ExtensionAttribute>]
static member Escape :
array : string[] *
?maxLength : int
(* Defaults:
let _maxLength = defaultArg maxLength 32767
*)
-> bool
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:
BooleanFalse 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