Why doesn’t my process terminate even after main thread terminated

Sometimes you may wonder why your .NET application didn’t terminated even after the main thread is terminated. Infact I was boggled with this problem for some time.Finally I figured out that .NET does not terminates a process on the termination of main thread if there are other threads running. The new definition for determining process…

3

validation pattern for allowing non-empty string in xml file

I was trying to validate a xml file using xsd wherein a node value should be non-empty. Means there should be atleast one non-whitespace character into that. After lots of googling, I finally wrote up a small pattern to validate that. Here is the fragment. Define a new type derived from string type and apply…

3