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.
↧