Skip to main content
added 1 characters in body
Source Link
recursive
  • 86.5k
  • 36
  • 155
  • 246

A string is not a char[], although it does have a .ToCharArray(). Also it does have an indexer, which allows you to access characters individually, like you've shown. It is likely that it was implmentedimplemented with an array internally, but that's an implementation detail.

A string is not a char[], although it does have a .ToCharArray(). Also it does have an indexer, which allows you to access characters individually, like you've shown. It is likely that it was implmented with an array internally, but that's an implementation detail.

A string is not a char[], although it does have a .ToCharArray(). Also it does have an indexer, which allows you to access characters individually, like you've shown. It is likely that it was implemented with an array internally, but that's an implementation detail.

Source Link
recursive
  • 86.5k
  • 36
  • 155
  • 246

A string is not a char[], although it does have a .ToCharArray(). Also it does have an indexer, which allows you to access characters individually, like you've shown. It is likely that it was implmented with an array internally, but that's an implementation detail.