Quantcast
Channel: Answers for "C# Check First Letter of String"
Viewing all articles
Browse latest Browse all 11

Answer by Rasmus Schlnsen

$
0
0

You can access chars of a string like arrays:

String s = "tada";

if (s[0] == 't'){
Debug.Log("tada");
}

Viewing all articles
Browse latest Browse all 11

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>