Quantcast
Channel: Questions in topic: "count"
Viewing all articles
Browse latest Browse all 187

How to count the number of strings in a string class?

$
0
0
How do you count the number of strings used in the same string class? Said for example I have two scripts. in script one// public void something(string someWord) { //the number of string that belongs to someWord. in this case is 3. //How do I do it in C#? } And in script two// void addstuff() { script one.something("word a"); script one.something("word b"); script one.something("word c"); } P.S. (in case you still don't understand me) I have looked for a solution but so far is only dealing with how many letters in a string. However, I want the number of words (or string)that has been created by the script or a another script calling it.

Viewing all articles
Browse latest Browse all 187

Trending Articles



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