StringExtensionsJString Method (String) |
Convert a string to a quoted java string including escaping embedded ticks and certain other characters.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static string JString(
this string s
)
<ExtensionAttribute>
Public Shared Function JString (
s As String
) As String
Parameters
- s
- Type: SystemString
The string to quote and escape.
Return Value
Type:
StringThe quoted and escaped 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).
Remarks Note that if the object is null then a blank, quoted string is returned. Uses
JString(String).
See Also