B# .NET Technical Community Homepage

Bart De Smet's online technical community
All Tags » C# 2.0 (RSS)

Browse by Tags

  • EAN-13 barcodes in C#

    Introduction A couple of days ago I posted about Code 39 barcode generation in C# (and here ). Today another more famous barcode is the subject of my blogpost: EAN-13. EAN stands for European Article Number and is a way to number products. It's an extension of UPC (Universal Product Code). More information...
    Posted to B# .NET Blog (Weblog) by bart on 09-20-2006
  • An ASP.NET .ashx HTTP handler for Code 39 barcode generation

    Introduction In my previous blog post on Code 39 barcodes , I've shown you guys how to generate Code 39 barcodes using managed code. Today, we'll take it another step forward and make barcode generation available through an .ashx ASP.NET 2.0 HTTP handler. About ASP.NET 2.0 Generic Handlers One of the...
    Posted to B# .NET Blog (Weblog) by bart on 09-19-2006
  • Code 39 barcodes in C#

    Introduction Code 39 is a specification for barcodes that allows coding of the following symbols: A-Z 0-9 - . $ / + % * space . The goal of this small project is to allow generation of barcodes using System.Drawing in .NET, with C#. Some principles Every character of a code is translated into a sequence...
    Posted to B# .NET Blog (Weblog) by bart on 09-18-2006
  • Instantiation of a generic type through Activator.CreateInstance

    It might seem trivial at first sight, but it's a little more tricky than you might have thought: How to create an instance of a generic type based on a type name and some type arguments, using reflection-related stuff? Here it is: using System; class GenReflect { public static void Main() { Console ...
    Posted to B# .NET Blog (Weblog) by bart on 09-11-2006
  • C# anonymous methods in depth

    Introduction C# 2.0 is out there for quite a while now but I still have some in-depth posts on my to-blog-list. This time, I'm going to focus on the inner workings of anonymous methods . Delegates Delegates are managed function pointers. Classic example: using System; using System.Threading; class Demo...
    Posted to B# .NET Blog (Weblog) by bart on 09-10-2006
  • Some notes on the IndexerNameAttribute in C#

    When creating a little sample of some C# features, I created my much beloved vector class with operator overloading and indexer support. No rocket science whatsoever but when concentrating on demonstrating the cross-language features of the CLR, I quickly realized again that indexers are not directly...
    Posted to B# .NET Blog (Weblog) by bart on 09-09-2006
  • User name to SID mapping in C# using System.DirectoryServices

    A problem I had today when messing around with ACLs and System.DirectoryServices: how to map a user name to a SID programmatically? I came up with the following 2-line solution: using System; using System.DirectoryServices; using System.Security.Principal; class Program { static void Main( string []...
    Posted to B# .NET Blog (Weblog) by bart on 09-08-2006
  • Going unsafe - An AddressOf operator in C#

    For demonstration purposes, I've been creating some little functions to print the address of a variable in managed code, without the aid of a debugger such as WinDbg + SOS (= Son-of-(Strike = debugger for (Lightning = first codename of the .NET Framework))) . Not so straightforward after all: some part...
    Posted to B# .NET Blog (Weblog) by bart on 09-07-2006
  • Conditional compilation in C# - explaining System.Diagnostics.ConditionalAttribute

    Introduction Conditional compilation is one of the much unknown powerful features that are available in .NET and more specifically in the C#, VB.NET and J# compilers. In this post, I'd like to show you how to take benefit from this feature, applied to C#. An example using System; using System.Diagnostics;...
    Posted to B# .NET Blog (Weblog) by bart on 08-30-2006
  • A simple process monitor - monitoring and restarting a process

    The problem statement One of my friends asked me how to implement some kind of "process monitor" that makes sure a (system) process stays alive. In this sample I'm showing you how to implement such a thing in C#. An alternative situation would be to monitor a Windows Service but the SCM (Service Control...
    Posted to B# .NET Blog (Weblog) by bart on 08-30-2006
Page 6 of 9 (82 items) « First ... < Previous 4 5 6 7 8 Next > ... Last »
Powered by Community Server (Non-Commercial Edition), by Telligent Systems