B
Bob Grommes
You most certainly do have pointers in C#, you simply have to declare an
unsafe code block to use them.
In C# though you should avoid unsafe code when possible. The string indexer
will return each character in a string, as will a foreach statement:
foreach (char c in myString) {
// do something with c
}
or:
for (int i = 0;i++;i < myString.Length) {
// do something with myString
}
--Bob
unsafe code block to use them.
In C# though you should avoid unsafe code when possible. The string indexer
will return each character in a string, as will a foreach statement:
foreach (char c in myString) {
// do something with c
}
or:
for (int i = 0;i++;i < myString.Length) {
// do something with myString
}
--Bob