Browse by Tags

All Tags » C# (RSS)

Tiny Tip: Improve Security with InternalsVisibleTo Attribute

In projects that span over multiple teams and for other very reasonable architecture reasons you end up with multiple assembles for your current project or even if you want to reuse a library one of the other teams wrote you will find yourself using code...
Posted by Adel Khalil | 6 comment(s)
Filed under: , , ,

Tiny Tip: is vs. as

Today's tip is a quick look at both not widely used C# operators and why prefer one to another.. Casting using is-operator: if(p is Product) // CLR?: Could i cast this to product? { Product x = (Product)p; // CLR again??: Could i cast this to Product...
Posted by Adel Khalil | 5 comment(s)
Filed under: , , ,

.NET, ALT.NET and RoR... The good, the bad and the ugly

I was wondering what is it ALT.NET, once you reach the definition.. if you a ALT.NET developer so " You’re the type of developer who uses what works while keeping an eye out for a better way.", of course this make sense and we all should think...

Is C# getting old ?

Anyone who may think so got to be insane, but as Wagner pointed out recently .. I think your question shows that C# is just starting to mature. It's the first time I've been asked is C# is getting old. Most of the people I've worked with that...
Posted by Adel Khalil | 2 comment(s)
Filed under: ,

Tiny Tools, Huge Benefits

Those are a subset of Hanselman's tool list , those are very helpful during my daily job... so i thought i share with you.. to boost your productivity as well. Query Express - A light weight Query analyzer like application .NET Reflector - Amazing...
Posted by Adel Khalil | with no comments

Are you an Alpha C#.NET Geek?

Take the test.. http://newtechusa.com/csharp-dotnet-quiz.asp
Posted by Adel Khalil | with no comments
Filed under: , ,

Writing very dynamic Puzzle

I wrote this puzzle while ago and thought it's time to share it, as when i searched the internet back the time od developing this i did not find any similar puzzle that expose this flexibility. To have this flexibility on hand we have to do couple of...
Posted by Adel Khalil | with no comments
Filed under: , ,

Debug Windows Services

Phillip Jacobs has posted describing how to debug a Windows Service without having the process attached to the service... and i agree as attaching the process to the service and compile, deploy every time is just painfull, from my perspective the best...
Posted by Adel Khalil | with no comments
Filed under: , ,

C# actually has Goto statment !!!

This comes like news for me, C# actually has Goto statment !!! WHY i would of said that no one will ever use it but i discovered this in production code. here's what MSDN have to say about the Goto statment. http://msdn2.microsoft.com/en-us/library/13940fs2...
Posted by Adel Khalil | with no comments
Filed under:

Developing Outlook COM Add-in - Usefull Resources

Some usefull resouces for developing Office add-ins. http://msdn2.microsoft.com/en-us/library/bb208173.aspx http://msdn2.microsoft.com/en-us/library/bb226710.aspx http://www.outlookcode.com http://msdn2.microsoft.com/en-us/library/aa289518(VS.71).aspx...
Posted by Adel Khalil | 1 comment(s)
Filed under: , ,

Help fight cancer!

The fact that we (Developers) get paid and make living from doing what we love is a targeted by grudge from all other professions so imagine if you WORK + GET PAID + FIGHT CANCER . When i was at the closing session of MDC 2007 i have catch Stephen Forte...
Posted by Adel Khalil | 3 comment(s)
Filed under: , ,

Testing Equality in C#

Theres many ways to test equality between two object in fact theres four we have Object.ReferenceEquals(), static Equals() , instance Equals(), operator== Object.ReferenceEquals(); This method simple test the equality of referances of two referance types...
Posted by Adel Khalil | 1 comment(s)
Filed under: ,

Small utility help freelance developers

Hello, guys... back yet from the holiday.. the community is so quite these days... but anyway.. i'm writing alot freelance projects these days.. and i wanted a tiny tool help me calculate total of hours that i spent working on a project so as i missed...
Posted by Adel Khalil | 2 comment(s)
Filed under: , ,

Writing simple test case

One of my friend asked me to write some example if we could say for test cases as he is going to interview for .NET Developer job and they propaly will ask him to do so which they did and a little snippet here let him pass the quistion so i decided to...
Posted by Adel Khalil | with no comments
Filed under: , ,