Geeks With Blogs
Rahul Anand's Blog If my mind can conceive it, and my heart can believe it, I know I can achieve it. August 2005 Entries
Regular Expression in C#
Regular Expression is a language independent feature supported by many languages, notably PERL, Java, JavaScript, C# etc. The support for Regular Expression is extensive under PERL and thus there is a term coined PCRE (Perl Compatible Regular Expression). .NET has followed the similar pattern writing syntax. The Base Class Library includes a namespace (System.Text.RegularExpress... where a set of classes have been exposed to utilize the power of regular expressions. Summarizing the widely used ......

Posted On Tuesday, August 16, 2005 8:36 AM

Exception Handling
I just wanted to share few design considerations on exception handling I learnt a few days back. One very important point is whenever you re-throw an exception do what you really want to do. What I mean is there are different ways to re-throw an already caught exception: You can either write: throw ex; Or, just write throw; The two statements differ significantly on how the stack trace will get affected. In first case when you write “throw ex;” statement the information about your method ......

Posted On Friday, August 5, 2005 9:43 AM

Basic .NET Socket Programming
A few days back I was just coding for a basic TCP/IP Client to send and receive buffer across network.I encountered a problem in receiving data through receive method. I am sharing this in this blog as it may help others, who are novice is .NET socket programming.I searched all over net for samples and found all over (including MSDN). Blocking mode was enough for me so I coded my receive as:Byte[] bytesReceived = new Byte[256];do{ bytes = s.Receive(bytesReceived);st... += Encoding.ASCII.GetString(by... ......

Posted On Wednesday, August 3, 2005 7:45 AM

Copyright © Rahul Anand | Powered by: