How To Configure and Use the Logging Application Block

by praveen 1/4/2009 2:28:05 PM
I recently downloaded the Enterprise Library 4.1 released in October 2008. I guess the enterprise library has done a lot of improvements from the 3.x version to the current 4.x that's available and not just making it work with .NET Framework 3.5 and integration with WCF. I downloaded the library an... [More]


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , ,

.NET | C# | Microsoft | Tips and Tricks | Enterprise Library

Explaining Delegates in C# - Part 2 (Events)

by rahul 12/16/2008 4:21:39 PM
In my previous post, I spoke about a few very basic and simple reasons of using delegates - primarily callback. In this post, I'll talk about creating Events using delegates. I have tried to annotate the class with comments so that it is easy to comprehend. But IMHO, the best way to figure out what'... [More]


Currently rated 2.5 by 2 people

  • Currently 2.5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

.NET | C#

Explaining Delegates in C# - Part 1 (Callback and Multicast delegates)

by rahul 12/15/2008 3:42:09 AM
I hear a lot of confusion around Delegates in C#, and today I am going to give it shot of explaining the stuff with easy to understand examples. First things first... I will consciously try NOT to use any technical jargon to explain this concept. So here we go, without giving any technical explanati... [More]


Currently rated 4.3 by 4 people

  • Currently 4.25/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

.NET | C#

DYK #3 - How can you find out if a method/class/field was annotated with any Attributes without looking at the code?

by rahul 12/11/2008 5:34:00 PM
Well... first of all, open ILDASM and drag/drop your EXE.   The application is called Attributes, and contains an annotated class, some annotated methods and fields. Notice the .custom instance void Attributes.xxxxxxxxx highlighted above. This tells you that the class is annotated. Now, how w... [More]


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , ,

.NET | Did you know | Reflection

How to use httpModules to troubleshoot your ASP.NET application

by Rahul 7/12/2008 6:34:01 PM
No matter how many things you keep in mind before developing an application, when once they are put in production... quite often you will see something not behaving the way you expected. Many-a-times, the applications would throw an error which you can troubleshoot depending on the error message you... [More]


Currently rated 5.0 by 2 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , ,

.NET | ASP.NET | HttpModules | Troubleshooting

C# Example for a File In Use

by praveen 6/13/2008 9:20:16 AM
Recently I was working on some code where it was required to open a file, write something to it and close it. I ran into a small problem while considering the code. Since this was a Doc file the problem was that how do I check if the file was already open or not?  If the file is already open fo... [More]


Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , ,

.NET | Code Snippet | Miscellany

Play with Colors - Part 2 - Check the font on a specific background using .NET reflection

by Rahul 6/12/2008 3:12:25 PM
I have already shown how to use .NET reflection to get the information about all the colors in .NET. Let's say you want to check out how a specific colored font would appear on any background, you may like to check this sample. Use the code which follows to get an output like the one below. ... [More]


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , ,

.NET | ASP.NET | Code Snippet | Color | Miscellany | Reflection

Play with Colors - Part 1 - See all the colors using .NET reflection

by Rahul 6/10/2008 12:40:00 AM
When you work on designing a website, you may find it difficult to remember all the color names and visualize them. At least, I am personally not very good with color selection and find it really hard to recall the color names. So, in this scrap we will check out how to use .NET reflection to print ... [More]


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , ,

.NET | Code Snippet | Color | Reflection

Calendar

<<  January 2009  >>
MoTuWeThFrSaSu
2930311234
567891011
12131415161718
19202122232425
2627282930311
2345678

View posts in large calendar

Recent comments

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway. We try our best to write good code, but none of the code here is tested on Production boxes. Feel free to use the code, BUT test it before you do so (in simple words... use it at your own risk)

© Copyright 2009

Sign in