StringExtensionsAsSegment(String) Method
Namespace: KGySoft.CoreLibrariesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public static StringSegment AsSegment(
this string? s
)
<ExtensionAttribute>
Public Shared Function AsSegment (
s As String
) As StringSegment
public:
[ExtensionAttribute]
static StringSegment AsSegment(
String^ s
)
[<ExtensionAttribute>]
static member AsSegment :
s : string -> StringSegment
- s String
- The string to create the StringSegment from.
StringSegmentA
StringSegment instance for the specified string.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).