StringExtensions.GetFirstCharacters Method
From String Extensions
A Sandcastle Documented Class Library
| StringExtensionsGetFirstCharacters Method |
The GetFirstCharacters() method takes string sequence and returns string substring
starting from the beginning of the sequence with length - parsed integer number.
Namespace: StringConvertions
Assembly: StringConvertions (in StringConvertions.exe) Version: 1.0.0.0 (1.0.0.0)
public static string GetFirstCharacters( this string input, int charsCount )
<ExtensionAttribute> Public Shared Function GetFirstCharacters ( input As String, charsCount As Integer ) As String
public: [ExtensionAttribute] static String^ GetFirstCharacters( String^ input, int charsCount )
[<ExtensionAttribute>] static member GetFirstCharacters : input : string * charsCount : int -> string
Parameters
- input
- Type: SystemString
Takes String parameter. - charsCount
- Type: SystemInt32
Integer number showing how many characters from the beginning to be shown
Return Value
Type: StringReturns string with length "charsCount" starting from the beginning of the input string.