c# and ElementAt... RRS feed

  • Question

  • How do I say, inside a for loop, you must look the part of a writing that has made the user in the variable k position (the one I used for the loop: "for (int k = 9; k> = 0; k--) ")?
    Friday, May 13, 2016 6:22 PM

All replies

  • Hi,

    first of all I would suggest to ask such a question in some other forum. The C# forum might be a good location.

    If you want to get a specific character of a String, then you could use the Chars[int32] Property:
    stringVariable[0] will give you the first character.

    Please see the documentation about the String class for details:

    With kind regards,


    Friday, May 13, 2016 7:07 PM