Click here to Skip to main content
15,925,400 members
Home / Discussions / C#
   

C#

 
AnswerRe: List Pin
ednrgc7-Dec-06 1:54
ednrgc7-Dec-06 1:54 
Questionwin form datagrid changes Pin
fmardani6-Dec-06 21:08
fmardani6-Dec-06 21:08 
QuestionHow to get Date of each end of the month in a year ? Pin
Tomy14026-Dec-06 21:00
Tomy14026-Dec-06 21:00 
AnswerRe: How to get Date of each end of the month in a year ? Pin
jdkulkarni6-Dec-06 21:05
jdkulkarni6-Dec-06 21:05 
GeneralRe: How to get Date of each end of the month in a year ? Pin
Tomy14026-Dec-06 21:08
Tomy14026-Dec-06 21:08 
Questionreversing a string Pin
Ravi Shankar436-Dec-06 20:02
Ravi Shankar436-Dec-06 20:02 
AnswerRe: reversing a string Pin
jdkulkarni6-Dec-06 20:14
jdkulkarni6-Dec-06 20:14 
AnswerRe: reversing a string [modified] Pin
quiteSmart6-Dec-06 20:29
quiteSmart6-Dec-06 20:29 
hi
you can do this:

<br />
String s = "the string to convert";<br />
char [] array = s.ToCharArray();<br />
char[] newArray;<br />
int count = 0;<br />
for (int i = array.Length - 1; i >= 0; i--)<br />
{<br />
  newArray[count] = array[i];<br />
  count++;<br />
}<br />
String newString = new String(newArray);<br />


there should be more flexibale methods.
but this came to my minde right now knowing that you have some conditions that it should be done using an array.


hope it helps best regards
GeneralRe: reversing a string Pin
Guffa6-Dec-06 21:02
Guffa6-Dec-06 21:02 
GeneralRe: reversing a string Pin
quiteSmart6-Dec-06 21:17
quiteSmart6-Dec-06 21:17 
AnswerRe: reversing a string Pin
Mandaar Kulkarni6-Dec-06 22:03
Mandaar Kulkarni6-Dec-06 22:03 
AnswerRe: reversing a string Pin
Guffa6-Dec-06 22:39
Guffa6-Dec-06 22:39 
GeneralRe: reversing a string Pin
quiteSmart6-Dec-06 23:15
quiteSmart6-Dec-06 23:15 
AnswerRe: reversing a string Pin
ednrgc7-Dec-06 1:44
ednrgc7-Dec-06 1:44 
QuestionUrgently required answer for the question Pin
vamsikarnata6-Dec-06 19:56
vamsikarnata6-Dec-06 19:56 
AnswerRe: Urgently required answer for the question Pin
ednrgc7-Dec-06 1:40
ednrgc7-Dec-06 1:40 
Questionmaking an icon for ur application Pin
Rocky#6-Dec-06 19:45
Rocky#6-Dec-06 19:45 
AnswerRe: making an icon for ur application Pin
imshimshal6-Dec-06 22:23
imshimshal6-Dec-06 22:23 
AnswerRe: making an icon for ur application Pin
ednrgc7-Dec-06 1:43
ednrgc7-Dec-06 1:43 
GeneralRe: making an icon for ur application Pin
Rocky#7-Dec-06 23:36
Rocky#7-Dec-06 23:36 
QuestionUsing MQSeries with C# :: Cannot connect to queue on remote server (dll error) Pin
ctsnavalur6-Dec-06 19:41
ctsnavalur6-Dec-06 19:41 
QuestionAttempt to store an element of the incorrect type into the array Pin
gurunathang6-Dec-06 18:31
gurunathang6-Dec-06 18:31 
AnswerRe: Attempt to store an element of the incorrect type into the array Pin
jdkulkarni6-Dec-06 18:37
jdkulkarni6-Dec-06 18:37 
AnswerRe: Attempt to store an element of the incorrect type into the array Pin
ednrgc7-Dec-06 1:57
ednrgc7-Dec-06 1:57 
Questionabout methods Pin
chinnivinay6-Dec-06 17:26
chinnivinay6-Dec-06 17:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.