Geeks With Blogs
DevDevin .NET Explanations, tips, and tricks related to .NET
Enum Values as Bit Flags
Know how to make an enum where multiple values can be assigned? Here is a silly example, but you'll get the point: [FlagsAttribute] public enum FileStatus{ None = 0, Open = 1, Edit = 2, Save = 4, Close = 8, Corrupt = 16, Busy = 32, Good = Open | Edit | Save | Close, Bad = Corrupt | Busy } Now rather than try to explain how this actually works myself, I'll just point you to a few good resources already out there: (Start by learning binary if you don't know it already: ......

Posted On Wednesday, October 19, 2005 9:11 PM

Options to Convert VB.NET Code to C# for Free
I'm not implying that you shouldn't buy the full version VB.NET to C# conversion products if they have the functionality that you really need. However, I do think it would be silly not to take advantage of the free demo versions and/or the other free tools available for doing this if it will get the job done without having to purchase anything. So here are a few of the options I've found for converting VB.NET code to C# for free: TransKing (free demo version allows 600 lines of code per file) ......

Posted On Tuesday, October 18, 2005 8:13 AM

Alternatives to Visual Studio .NET

Many developers don't even realize that they can use tools other than Visual Studio .NET to develop .NET applications. I had no idea that there were so many other options until I came across this helpful article:

Posted On Wednesday, September 21, 2005 10:20 AM

ECMA C# and Common Language Infrastructure Standards 
(It has links to things such as the C# language specification and a reference guide to the CIL Instruction Set).

Posted On Monday, February 4, 2008 1:34 PM

Dependency Injection with Spring.Net
Good article on dependency injection using Spring.Net:

Posted On Thursday, January 24, 2008 10:05 AM

Coding Shortcuts in C# 3.0
Default get/set accessors: public class Person { public string Name { get; set; } public int Age { get; set; } } Property initialization: Person author = new Person { Name = "Jay Miller", Age = 40 }; From this article: ......

Posted On Tuesday, October 30, 2007 7:24 AM

Cryptographic Solutions for .NET Developers: Hashing and Encryption

Here is a pretty good introductory article on crypto in .NET:


Posted On Monday, August 6, 2007 5:28 AM

Open-source Distributed Pub/Sub Event System
This is a huge open-source contribution from Microsoft: The Distributed Pub/Sub Event System is a solution for cross-process and/or cross-server scenarios where a large amount of event handshaking is required and low latency is important. Basically, this architecture was designed for speed. Even if you can't think of a usage scenario for this code-base in your stack right now, I strongly encourage you to just crack open the source and take a look. I personally think ......

Posted On Friday, July 6, 2007 10:46 AM

WCF NetTcpBinding Lessons Learned
I just got done with a long afternoon of implementing a Windows Service to self-host my WCF service. It was a bit trickier than I thought it would be so if I can save you the headache I'll be happy. A good place to start is by reading these two MSDN articles: Next, you'll want to understand these support articles: ......

Posted On Tuesday, June 12, 2007 9:43 PM

.NET Assemblies Lessons Learned
A few things I learned today while instrumenting some binaries in preparation for performance profiling: Resigning a .NET assembly is as simple as opening a VS command prompt and entering: sn –R MyAssembly.dll MyApplicationKey.snk Browsing the GAC through Windows Explorer -- open a command prompt and enter: SUBST L: C:\winnt\assembly Now you can browser the assembly folder using your L drive. This also makes it easier to reference a DLL in GAC inside a VS project. (tips taken from: ......

Posted On Thursday, June 7, 2007 3:58 PM

Copyright © Devin A. Rychetnik | Powered by: | Join free