public string swap1;
   public string swap2;
   swap1 = "avadhesh";
   swap2 = "narayan";
    if (swap1 != swap2)
   {
                        swap1 = (swap1 + swap2);
                        swap2 = swap1.Replace(swap2, "");
                        swap1 = swap1.Replace(swap2, "");
   }
console.writeline(swap1.tostring());
console.writeline(swap2.tostring());
On Wed, Jan 2, 2013 at 2:54 PM, shilpa rakhunde
<[email protected]>wrote:

> hi............
> can any one tell m the C# code for swap the two strings without usings
> third variable?
> plz raply if any one know it....
> thankx...
>
> --
> You received this message because you are subscribed to the Google
> Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
> Web Services,.NET Remoting" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
> or visit the group website at http://megasolutions.net
>



-- 





Thanks & Regards

------------------------------------------------------------------------------------------

Avadhesh Mishra | NN224 |Software Developer

NYSA Communications, A - 100, Sec - 65, NOIDA – 201 301


Mobile:+91 9953519002 | E-mail : [email protected]

-- 
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net

Reply via email to