Click here to Skip to main content
15,885,278 members
Articles / Desktop Programming / Win32

How to reverese a string in C#/.NET with almost one line of code using P/Invoke

Rate me:
Please Sign up or sign in to vote.
2.67/5 (8 votes)
4 Jan 2013CPOL3 min read 50K   92   4  
How to reverese a string in C#/.NET with almost one line of code using a build in Windows library function which is available on any Windows system.
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
  <Profiles>
    <Profile Name="(Default)" />
  </Profiles>
  <Settings />
</SettingsFile>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Germany Germany
I am a former developer from germany who has worked on a broad range of technologies. Mainly i was assigned to tasks like designing, writing and implementing/integrating applications for mixed systems, debugging and troubleshooting them, also including lots of teaching on how to do all those things. I was not tied to any special systems at all, as long it could be programmed somehow, no matter in kernel or userland Smile | :) Currently i am not developing or teaching anymore. But i still try to help and contribute code and solutions, help wherever i can. I am also strongly interessted in pedagogy, especially in media pedagogy. There are a few final words i want to say here: Share your knowledge of programming, of life and all your experiences to anybody out there, to build a better and safer world. We only have one. Please try to keep it safe for all of us.

Comments and Discussions