Skip to main content
Code sample in Swift, C# and Java
Main menu
About
History
Swift
C#
Java
Python
You are here
Home
»
Forums
»
C#
»
C#: Work with simple types
»
C#: Work with string
Getting substring in C#
Submitted by
obraztsov
on Wed, 11/18/2015 - 11:12
Forums:
C#: Work with string
var
str =
"one way ticket"
;
var
way = str.Substring(4, 3);
//way = "way"
Log in
to post comments