Friday, December 29, 2006

strReverse in C#

Just came across this small piece of code while I was looking out to reverse a string in C# and soon discovered there was nothing like strReverse (in VB) in C#.

So obviously needed to look for an alternate. Got quite a few of them but this one looked quite nifty and sleek. Take a look
private string StringReverse(string ToReverse)

{

Array arr = ToReverse.ToCharArray();

Array.Reverse( arr );// reverse the string

char[] c = (char[])arr;

byte[] b = System.Text.Encoding.Default.GetBytes(c);

return System.Text.Encoding.Default.GetString(b);

}


-- Ashutosh

Wednesday, December 6, 2006

My Links

HI,


Posting after a long time. Got a bit busy with my new house. The construction has started and am really looking forward to it.


BTW. This post wasn't meant for this, but I came across quite a few interesting topics
within these days and decided to post them as a seperate post so that it could be expanded more and more to encorporate new links as and when they are found. Here are a few to start off:---------


1. Introduction to Object Oriented Programming - I

2.
Introduction to Object Oriented Programming - II

3.
Introduction to Object Oriented Programming - III

4.
Introduction to Object Oriented Programming - IV

5.
Introduction to Object Oriented Programming - V

6.
Introduction to Object Oriented Programming - VI

7. Overview of Garbage Collection and IDisposable

8. Convert VB.NET Code to C# and Vice Versa

9. Best Practices For .NET Performance

10. Unions in C#


I would like people to post comments here regarding the links and would be thankful to people if they feel they could contribute to the same and provide me the links for such interesting articles.


-- Ashutosh




Tuesday, December 5, 2006

A new beginning

Hi All,

Today I had a new beginning in my life when I stepped out of Avinex Software Pvt. Ltd. and stepped into eXtensible IT Solutions. Yes I switched my Job.

Well not so obviously, the key factor behind this change was not monetory. Yes believe me.....
I always wanted to grow. Grow in terms of technology, in terms of responsibility and also financially.

At Avinex, I had a few concerns of mine. Ever since I started programming in VB6.0, I wanted to take a dip into the world of C++ programming as well and with the advent of .NET, C# became my new affair.

Suddenly got the opportunity of being a part of a team which was bewing created for development of a product which was supposed to be working as a Middle Tier for a multi ties application AND THAT TOO IN C#. I saw this opportunity as a big one in terms of gaining a good knowledge of OO concepts as well as C#. So grabbed it with both hands.

Secondly at Avinex, I was suddenly finding myself looking straight into a glass ceiling where I could see opportunities of growth but which really were not there. This was getting on me.

And last but not the least, a raise of almost 10 grands a month is never like refusing.

Anyways thats an old story now.

The latest is that I am into eXtensible and am looking forward to a great time over there.


Cheers
--Ashutosh