﻿<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
  <channel>
    <title>The Best C# Programmer In The World - Ben Perkins</title>
    <description>A website dedicated to C# and being the best at it.</description>
    <link>http://www.thebestcsharpprogrammerintheworld.com/</link>
    <lastBuildDate>Feb 13, 2011</lastBuildDate>
    <pubDate>Fri, 21 Jan 2011 21:45:00 +0000 </pubDate>
    <copyright>© 2010-2011, All Rights Reserved</copyright>

    <item>
      <title>Using the as keyword versus boxing in C#</title>
      <description>
        When I convert one object to another using the keyword “as” and the
        original value is not of that type, the converted value simply becomes NULL.
        For example, if theItem is of type MessageBox, then row will be
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Using-the-as-keyword-versus-boxing.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Using-the-as-keyword-versus-boxing.aspx</guid>
      <pubDate>Sun, 07 Oct 2012 00:00:02 +0000 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>Validating time using a masked textbox within a WPF window using C#</title>
      <description>
        This is unfortunately more of a hack than a solution,
        but I thought I would share it any way.  I had the situation where I
        needed to validate the entered time into a masked textbox.  The masked
        textbox is a Windows Form control, but I hosted it within a WPF window
        using the WIndowsFormsHost element.  Lastly, for some reason I could not
        get the Leave event to fire, so I
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Validating-time-using-a-masked-textbox-within-a-WPF-window.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Validating-time-using-a-masked-textbox-within-a-WPF-window.aspx</guid>
      <pubDate>Sun, 07 Oct 2012 00:00:01 +0000 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>Upgrade from Oracle 10g to Oracle 11g with ODP.net and NHibernate ORA-12514</title>
      <description>
        Firstly, let me say that there is nothing special about this upgrade.
        The instructions which I wrote here will still work with an 11g database.
        The issue I had was more with, what is the difference between a SID and
        a SERVICE_NAME which is used to
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Upgrade-from-Oracle-10g-to-Oracle-11g-with-ODP-Net-and-NHibernate-ORA-12514.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Upgrade-from-Oracle-10g-to-Oracle-11g-with-ODP-Net-and-NHibernate-ORA-12514.aspx</guid>
      <pubDate>Wed, 12 Sep 2012 00:00:02 +0000 </pubDate>
      <category>NHibernate</category>
    </item>

    <item>
      <title>Using LIKE with LINQ to NHibernate in C#</title>
      <description>
        The equivalent to LIKE via the LINQ to NHibernate provider
        is Contains.  An example of a LINQ to NHibernate that will return a result
        set matching a search like parameter is
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Using-LIKE-with-LINQ-to-NHibernate.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Using-LIKE-with-LINQ-to-NHibernate.aspx</guid>
      <pubDate>Wed, 12 Sep 2012 00:00:01 +0000 </pubDate>
      <category>NHibernate</category>
    </item>
    
    <item>
      <title>Updating Child records with NHibernate using HQL-IQuery and C#</title>
      <description>
        I tend to overcomplicate things, I think that I do it subconsciously
        in an attempt to make sure I give due diligence in the search for the best solution.
        I had a parent child relationship mapped out using NHibernate.  Something like the
        below where there is a one-to-many bag in the
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Updating-Child-records-with-NHibernate-using-HQL-IQuery.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Updating-Child-records-with-NHibernate-using-HQL-IQuery.aspx</guid>
      <pubDate>Wed, 4 Aug 2012 00:00:01 +0000 </pubDate>
      <category>NHibernate</category>
    </item>
    
    <item>
      <title>Searching a generic List collection using C#</title>
      <description>
        Before you begin loading and populating collections, you should
        decide which collection to use based on the requirements.  Some collections are
        built for speed when selecting, some are
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Searching-a-generic-List-collection.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Searching-a-generic-List-collection.aspx</guid>
      <pubDate>Tue, 3 Ju1 2012 00:00:03 +0000 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>Invalid Index N For This SqlParameterCollection using NHibernate</title>
      <description>
        While trying to insert parent child composite key linked into a database I received this...
        When I added the insert="false" attribute to the 8th property in my mapping file,
        the issue was resolved.  Start with the ID at 0 and then
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Invalid-Index-N-For-This-SqlParameterCollection-using-NHibernate.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Invalid-Index-N-For-This-SqlParameterCollection-using-NHibernate.aspx</guid>
      <pubDate>Tue, 3 Ju1 2012 00:00:02 +0000 </pubDate>
      <category>NHibernate</category>
    </item>

    <item>
      <title>Inserting Parent Child records using NHibernate IDENTITY INSERT OFF</title>
      <description>
        One of the errors I received when I was trying to get the parent child insert to work with NHibernate.
        My initial action was to access SQL Server and set the value to ON.  Wrong!
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Inserting-Parent-Child-records-using-NHibernate-IDENTITY-INSERT-OFF.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Inserting-Parent-Child-records-using-NHibernate-IDENTITY-INSERT-OFF.aspx</guid>
      <pubDate>Tue, 3 Jul 2012 00:00:01 +0000 </pubDate>
      <category>NHibernate</category>
    </item>

    <item>
      <title>How to use optional parameters with C#</title>
      <description>
        It is possible to optionally pass a parameter using C#.  However, the
        optional parameter must have a default value and they (it) must come at the end of
        the parameter
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-use-Optional-parameters.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-use-Optional-parameters.aspx</guid>
      <pubDate>Sun, 17 Jun 2012 00:00:02 +0000 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>How to hide a DataGrid column in WPF using C#</title>
      <description>
        In a situation where I have a DataGrid which is being bound to a List of a
        specific class and the DataGrid has AutoGenerateColumns set to true, I found myself
        needing a way to hide some of the columns which I did not want to
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-hide-a-DataGrid-column-in-WPF.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-hide-a-DataGrid-column-in-WPF.aspx</guid>
      <pubDate>Sun, 17 Jun 2012 00:00:01 +0000 </pubDate>
      <category>WPF</category>
    </item>

    <item>
      <title>How to convert a string to a byte array or convert a byte array to a string with C#</title>
      <description>
        I needed to convert a selection from a treeview into an XML string and
        then store into a database column of type LONG on Oracle and/or of type varchar(MAX)
        on MS SQL Server.  The XML was not saved as a file first, so true it could have been
        saved in a string column, however,
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-convert-a-string-to-a-byte-array-or-convert-a-byte-array-to-a-string.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-convert-a-string-to-a-byte-array-or-convert-a-byte-array-to-a-string.aspx</guid>
      <pubDate>Tue, 01 May 2012 00:00:04 +0000 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>How to capture double click event in Data Grid row using WPF and C#</title>
      <description>
        There are a number of name differences between a windows form and a WPF
        program.  For example, in a windows form program the event which is triggered when a
        user double-clicks on a data grid is called Doubleclick.  The event in a WPF program
        is called MouseDoubleClick.  Therefore
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-capture-double-click-event-in-Data-Grid-row-using-WPF.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-capture-double-click-event-in-Data-Grid-row-using-WPF.aspx</guid>
      <pubDate>Tue, 01 May 2012 00:00:03 +0000 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>How to add double quotes to a string</title>
      <description>
        I needed to save an XML formatted file as a string which required
        double quotes around the attributes.  The below code shows how to add double quotes
        to a
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-add-double-quotes-to-a-string.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-add-double-quotes-to-a-string.aspx</guid>
      <pubDate>Tue, 01 May 2012 00:00:02 +0000 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>Get column value from DataGrid, NewItemPlaceholder, WPF, DataRowView and exception using C#</title>
      <description>
        The way a problem is approached can have some serious consequences.  Take for
        example the task I had to add some data to a DataGrid in WPF and allow a user to select the
        rows.  When the rows were selected I would capture the details and put them into
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Get-column-value-from-DataGrid-NewItemPlaceholder-WPF-DataRowView-and-exception.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Get-column-value-from-DataGrid-NewItemPlaceholder-WPF-DataRowView-and-exception.aspx</guid>
      <pubDate>Tue, 01 May 2012 00:00:01 +0000 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>Foreign Key constraint conflict Parent Child using NHibernate</title>
      <description>
        This was a tough one.  I got everything working just fine with the
        mappings and my classes, I even wrote some test code to check if the Parent Child
        data was being inserted ok.  What I failed to do was create the FOREIGN
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Foreign-Key-constraint-conflict-Parent-Child-using-NHibernate.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Foreign-Key-constraint-conflict-Parent-Child-using-NHibernate.aspx</guid>
      <pubDate>Sun, 01 Apr 2012 00:00:05 +0000 </pubDate>
      <category>NHibernate</category>
    </item>

    <item>
      <title>Foreign Key is always 0 (zero) when inserting Parent Child using NHibernate</title>
      <description>
        This one was a toughy.  I searched for some time looking for examples
        about HOW TO: INSERT PARENT / CHILD RELATIONSHIPS using NHIBERNATE.  What I found
        were these really cool looking object oriented AddChild methods, many-to-one and
        one-to-many mapping relationships.  The thing about those
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Foreign-Key-is-always-0-zero-when-inserting-parent-child-using-nhibernate.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Foreign-Key-is-always-0-zero-when-inserting-parent-child-using-nhibernate.aspx</guid>
      <pubDate>Sun, 01 Apr 2012 00:00:04 +0000 </pubDate>
      <category>NHibernate</category>
    </item>

    <item>
      <title>Base Class Library (BCL)</title>
      <description>
        The .NET framework provides a set of base class libraries which provide functions and features
        which can be used with any programming language which implements .NET, such as Visual Basic,
        C# (or course),
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/fundamentals/Base-Class-Library.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/fundamentals/Base-Class-Library.aspx</guid>
      <pubDate>Sun, 01 Apr 2012 00:00:03 +0000 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>Common Language Runtime</title>
      <description>
        Runtime, in computer terms, is the time in which the computer program is actively executing
        the written code.  The Common Language Runtime is a platform where a
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/fundamentals/Common-Language-Runtime.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/fundamentals/Common-Language-Runtime.aspx</guid>
      <pubDate>Sun, 01 Apr 2012 00:00:02 +0000 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>Simplified Deployment</title>
      <description>
        DLL Hell.  Enough said, well maybe not.  Before .NET every installation of a new version
        of a program or the installation of any program was a gamble.  There was always a risk
        that a necessary component required to run the new version would overwrite a component
        which is used by another causing the old program to
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/fundamentals/Simplifying-Deployment.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/fundamentals/Simplifying-Deployment.aspx</guid>
      <pubDate>Sun, 01 Apr 2012 00:00:01 +0000 </pubDate>
      <category>C#</category>
    </item>
    
    <item>
      <title>Disable navigation buttons and navigation history within a WPF Navigation Page program</title>
      <description>
        The Navigation functionality of WPF is pretty cool.  It lets the developer
        create a wizard like program which walks the user through a number of consecutive steps
        from start to finish.  All of which happens within a
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Disable-navigation-buttons-and-navigation-history-within-a-WPF-Navigation-Page-program.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Disable-navigation-buttons-and-navigation-history-within-a-WPF-Navigation-Page-program.aspx</guid>
      <pubDate>Thu, 01 Mar 2012 00:00:04 +0000 </pubDate>
      <category>WPF</category>
    </item>

    <item>
      <title>Create a Random or Sequential GUID using ASP.NET and C#</title>
      <description>
        The 2 controls above create either a GUID or a Sequential GUID.  Generate a
        Radom GUID online or a Generate a Sequential GUID online using the above control.   There
        is nothing too complicated about creating a random GUID.  Using
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Create-a-Random-or-Sequential-GUID.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Create-a-Random-or-Sequential-GUID.aspx</guid>
      <pubDate>Thu, 01 Mar 2012 00:00:03 +0000 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>Create an exe executable and hide the console window using C#</title>
      <description>
        I needed to create an executable which would run as a job triggered
        from a scheduler.  I decided to create a Console application, using, of course C#.
        I wanted it to run without the Console window popping up.  I asked myself, how
        do I stop the console window from popping up or
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Create-an-exe-executable-and-hide-the-console-window.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Create-an-exe-executable-and-hide-the-console-window.aspx</guid>
      <pubDate>Thu, 01 Mar 2012 00:00:02 +0000 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>Combine dictionary, combine 2 dictionaries together using C#</title>
      <description>
        Recently, I had the requirement to join 2 dictionaries together.  I needed to build a
        DataTable and an NHibernate HQL query dynamically where the column headings could be
        different than the name of the actual database column name.  To do this I
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Combine-dictionary-combine-2-dictionaries-together.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Combine-dictionary-combine-2-dictionaries-together.aspx</guid>
      <pubDate>Thu, 01 Mar 2012 00:00:01 +0000 </pubDate>
      <category>C#</category>
    </item>
    
    <item>
      <title>Attempted overcomplicated solution for a complicated system</title>
      <description>
        I was working on a system which had implemented NHibernate, primarily for its
        ability to support multiple DBMS, such as Oracle and MS SQL Server.  The problem
        came up when trying to insert, specifically in regards to
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Attempted-overcomplicated-solution-for-a-complicated-system.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Attempted-overcomplicated-solution-for-a-complicated-system.aspx</guid>
      <pubDate>Wed, 01 Feb 2012 00:00:01 +0000 </pubDate>
      <category>NHIBERNATE</category>
    </item>

    <item>
      <title>Add images dynamically to WPF DataGrid using IValueConverter in C#</title>
      <description>
        I created a WPF project which included a DataGrid which present a Status.  It looked liked this.
        I didn’t really like the representation of the True, False, Null and decided to convert the
        value to either a Green, Yellow or Red image
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Add-images-dynamically-to-WPF-DataGrid-using-IValueConverter.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Add-images-dynamically-to-WPF-DataGrid-using-IValueConverter.aspx</guid>
      <pubDate>Wed, 01 Feb 2012 00:00:03 +0000 </pubDate>
      <category>WRF</category>
    </item>

    <item>
      <title>Add a Masked Textbox control to a WPF program</title>
      <description>
        I found some very creative and technically challenging examples for adding a
        masked textbox control to a WPF program.  Most of them required the creation of a new class
        inherited from the base System.Windows.Controls.TextBox class.  This is a valid
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Add-a-Masked-Textbox-control-to-a-WPF-program.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Add-a-Masked-Textbox-control-to-a-WPF-program.aspx</guid>
      <pubDate>Wed, 01 Feb 2012 00:00:02 +0000 </pubDate>
      <category>WPF</category>
    </item>
    
    <item>
      <title>How to sort by month in SQL Server</title>
      <description>
        You can see on the Blog.Archive() navigation bar on the right of
        this page that I present the Year, Month and number of blogs which I have
        written each month.  Everything worked fine from
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-sort-by-month-in-SQL-Server.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-sort-by-month-in-SQL-Server.aspx</guid>
      <pubDate>Wed, 01 Feb 2012 00:00:01 +0000 </pubDate>
      <category>SQL</category>
    </item>

    <item>
      <title>Using the ListCollectionView with a deferred Filter method in WPF with C#</title>
      <description>
        In a previous post I covered how to perform filtering using the
        ListCollectionView class on a datagrid.  What I noticed on the implementation
        on a larger result set was a little lag in the response when characters were
        being entered into the filter textbox.  The way
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Using-the-ListCollectionView-with-a-defered-Filter-method-in-WPF.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Using-the-ListCollectionView-with-a-defered-Filter-method-in-WPF.aspx</guid>
      <pubDate>Sun, 01 Jan 2012 00:00:04 +0000 </pubDate>
      <category>WPF</category>
    </item>

    <item>
      <title>Using the ListCollectionView Filter method in WPF with C#</title>
      <description>
        NOTE:  This solution does not implement paging and requires
        the retrieval of the entire result set.  If your dataset is huge, I wouldn’t
        go this route.  Other options, LIKE
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Using-the-ListCollectionView-Filter-method-in-WPF.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Using-the-ListCollectionView-Filter-method-in-WPF.aspx</guid>
      <pubDate>Sun, 01 Jan 2012 00:00:03 +0000 </pubDate>
      <category>WPF</category>
    </item>

    <item>
      <title>TextChanged vs. SelectionChange events in WPF</title>
      <description>
        I made the mistake of using the SelectionChange event on a
        textbox while implementing some filtering on a DataGrid.  What happened,
        when using SelectionChanged, was that each time the textbox received focus
        I was executing the filter.  Even initially when there was nothing to
        filter.  My logic was checking if the contents of the textbox contained a
        value or not.  However, because the
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/TextChanged-vsSelectionChange-events-in-WPF.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/TextChanged-vsSelectionChange-events-in-WPF.aspx</guid>
      <pubDate>Sun, 01 Jan 2012 00:00:02 +0000 </pubDate>
      <category>WPF</category>
    </item>

    <item>
      <title>How to clear the data from a DataGrid using WPF in C#</title>
      <description>
        I implemented some filtering into one of my DataGrids which
        required that a reset the initial result set.  With a single line of code
        you can empty out the contents of the
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-clear-the-data-from-a-DataGrid-using-WPF.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-clear-the-data-from-a-DataGrid-using-WPF.aspx</guid>
      <pubDate>Sun, 01 Jan 2012 00:00:01 +0000 </pubDate>
      <category>WPF</category>
    </item>

    <item>
      <title>Using ODP.Net with NHibernate and System.Decimal</title>
      <description>
        There were some good answers but none of them provided me with a work around
        that was database independent.  At least something that would work with both
        Oracle and
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Using-ODP-Net-with-NHibernate-and-System-Decimal.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Using-ODP-Net-with-NHibernate-and-System-Decimal.aspx</guid>
      <pubDate>Thu, 01 Dec 2011 00:00:02 +0000 </pubDate>
      <category>ODP.Net</category>
    </item>

    <item>
      <title>Capture textbox enter key event using C#</title>
      <description>
        The other day I needed to implement a search function in a WPF
        program.  I wanted the use to be able to enter the criteria and then the
        enter key to perform the search.  I achieved
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Capture-textbox-enter-key-event.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Capture-textbox-enter-key-event.aspx</guid>
      <pubDate>Thu, 01 Dec 2011 00:00:01 +0000 </pubDate>
      <category>C#</category>
    </item>    

    <item>
      <title>How to convert Dictionary keys or values to a List</title>
      <description>
        I once had a requirement that I needed to dynamically build a
        select statement, based on a users selection and then display the results in
        a DataGrid.  The tricky part was that the column name in the select portion
        of the query was not always the
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-convert-Dictiionary-keys-or-values-to-a-List.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-convert-Dictiionary-keys-or-values-to-a-List.aspx</guid>
      <pubDate>Tue, 01 Nov 2011 00:00:06 +0000 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>How to add a watermark to a textbox using WPF</title>
      <description>
        Some time ago I had to implement a search box which filtered
        a result set in a DataGrid.  It was a pretty straight forward exercise.
        However, it took some time to find a good example and change it into
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-add-a-watermark-to-a-textbox-using-WPF.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-add-a-watermark-to-a-textbox-using-WPF.aspx</guid>
      <pubDate>Tue, 01 Nov 2011 00:00:05 +0000 </pubDate>
      <category>WPF</category>
    </item>

    <item>
      <title>Different return type from a method of a derived class</title>
      <description>
        In .NET Framework 4, C# supports covariance and contravariance
        in generic interfaces and delegates.  However, if you try to implement either
        in a class, you will receive an exception.   Trying to implement covariance
        in a return type or overriding a method and attempting to
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Different-return-type-from-a-method-of-a-derived-class.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Different-return-type-from-a-method-of-a-derived-class.aspx</guid>
      <pubDate>Tue, 01 Nov 2011 00:00:04 +0000 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>Using Generics with Interfaces in C#</title>
      <description>
        I wanted to create an interface; however one of the methods I
        wanted to implement in it had a class as a parameter.  I thought about it and
        realized that be doing so I would be tightly binding my interface to a specific
        class.  I didn’t think that was good practice because interfaces need to be
        implemented into any
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Using-Generics-with-Interfaces.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Using-Generics-with-Interfaces.aspx</guid>
      <pubDate>Tue, 01 Nov 2011 00:00:03 +0000 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>Generic Type Parameters parameter interface c#</title>
      <description>
        The String class in .Net has many capabilities.   Below is a list of some string
        methods I use frequently in my development projects.  Even when I have completed
        this list, I am sure it will over cover 5% of the capabilities within the String
        class.  After reading this, I suggest you look over the
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Generic-Type-Parameters-parameter-interface-csharp.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Generic-Type-Parameters-parameter-interface-csharp.aspx</guid>
      <pubDate>Tue, 01 Nov 2011 00:00:02 +0000 </pubDate>
      <category>C#</category>
    </item>
    
    <item>
      <title>Generic Interface with a type constraint in C#</title>
      <description>
        In a previous blog
        I discussed how to use and implement an interface with generics.
        I decided shortly after that it would be a good idea, in my context, to loosely bind
        a type to the interface.  In the previous blog
        it was left 100% generic and that
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Generic-Interface-with-a-type-constraint.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Generic-Interface-with-a-type-constraint.aspx</guid>
      <pubDate>Tue, 01 Nov 2011 00:00:01 +0000 </pubDate>
      <category>C#</category>
    </item>
    
    <item>
      <title>No data in dynamically created DataTable visible in WPF DataGrid</title>
      <description>
        It took me some time to find out that you cannot have periods “.” in the
        column name of dynamically created DataTables.  I would run the query, created the
        columns and add the rows to the table, but nothing would show in the DataGrid when
        I bound
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/No-data-in-dynamically-created-DataTable.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/No-data-in-dynamically-created-DataTable.aspx</guid>
      <pubDate>Sun, 02 Oct 2011 00:00:06 +0000 </pubDate>
      <category>WPF</category>
    </item>

    <item>
      <title>Access Localization Resources in WPF from the code-behind using C#</title>
      <description>
        I added the below to my resource files.  The name is the same for
        each of the resource files, however the value is different per
        localization - language.   English, German and
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Access-Localization-Resources-in-WPF-from-the-code-behind.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Access-Localization-Resources-in-WPF-from-the-code-behind.aspx</guid>
      <pubDate>Sun, 02 Oct 2011 00:00:05 +0000 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>WPF DataGrid rendering is very slow</title>
      <description>
        I was developing a WPF application that contained a DataGrid like
        so many times in the past.  However, this time it was taking 20-30 seconds for
        the DataGrid to render.  I checked the query execution speed.  I was building
        the DataTable dynamically, but I checked the
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/WPF-DataGrid-rendering-is-very-slow.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/WPF-DataGrid-rendering-is-very-slow.aspx</guid>
      <pubDate>Sun, 02 Oct 2011 00:00:04 +0000 </pubDate>
      <category>WPF</category>
    </item>

    <item>
      <title>Expand first level of treeview item or node using WPF</title>
      <description>
        I realized that I had set the IsExpanded property of the treeview within a setter
        for my treeview resources with a value of True.  This meant that all nodes within
        the treeview would be expanded.  If I set it to False it meant that all child
        nodes would be closed and we would see only a single line.  I didn’t want either.
        What I wanted was to expand the first
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Expand-first-level-of-treeview-item-or-node-using-WPF.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Expand-first-level-of-treeview-item-or-node-using-WPF.aspx</guid>
      <pubDate>Sun, 02 Oct 2011 00:00:03 +0000 </pubDate>
      <category>WPF</category>
    </item>

    <item>
      <title>Setting the scrollbar for a treeview in WPF</title>
      <description>
        I wanted a treeviews max height to be about 15% smaller than the
        window hosting it.  This was because I wasn’t able to get (could not get) the
        vertical scrollbar for the treeview to show up without setting the MaxHeight
        property
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Setting-the-scrollbar-for-a-treeview-in-WPF.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Setting-the-scrollbar-for-a-treeview-in-WPF.aspx</guid>
      <pubDate>Sun, 02 Oct 2011 00:00:02 +0000 </pubDate>
      <category>WPF</category>
    </item>

    <item>
      <title>Error – Class name is inaccessible due to its protection level in C#</title>
      <description>
        There is a pretty basic reason why this error happens.  However, until
        you find the solution, it is a big deal.  I was creating a simple base class like
        the below which I planned on extending in another
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Error-Class-name-is-inaccessible-due-to-its-protection-level.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Error-Class-name-is-inaccessible-due-to-its-protection-level.aspx</guid>
      <pubDate>Sun, 02 Oct 2011 00:00:01 +0000 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>Adding images to a Tree View in WPF using C#</title>
      <description>
        Like I've said before, once you find what your looking for, it is wasy to find examples
        about how to use and implement it.  I had this again while trying to add
        images to a treeview.  The term I was looking for, while trying to find
        a solution was ValueConverter.  In this solution I will use a ValueConveter
        to convert a treeview header to an image.  It is really quit simple to do this.
        It was hard to find the solution than it was to
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Adding-images-to-a-Tree-View-in-WPF.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Adding-images-to-a-Tree-View-in-WPF.aspx</guid>
      <pubDate>Thu, 01 Sep 2011 00:00:07 +0000 </pubDate>
      <category>C#</category>
    </item>
    
    <item>
      <title>How to make your code faster when you use IF THEN</title>
      <description>
        I read this very cool article and I had to test it out for myself.  I can say that for 
        sure that if the pattern
        of your IF THEN statements are predictable, that you code will run faster.  This
        is due to a concept called Branch Prediction that is located on the CPU.
        Basically, the digital circuit tries to guess which way a branch will go
        before it knows for sure.  Therefore, if the
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-make-your-code-faster-when-you-use-IF-THEN.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-make-your-code-faster-when-you-use-IF-THEN.aspx</guid>
      <pubDate>Thu, 01 Sep 2011 00:00:06 +0000 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>Recursively traverse an XML document using the Action delegate in C#</title>
      <description>
        I was lucky enough to be able to develop a relatively complicated
        recursive process twice.  They didn't do exactly the same same and were different
        enough that I was not able to reuse the first implementation completely.
        What I had to do was build a treeview from a hierachrry of data and reflection objects,
        capture the results, process them
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Recursively-traverse-an-XML-document-using-the-Action-delegate.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Recursively-traverse-an-XML-document-using-the-Action-delegate.aspx</guid>
      <pubDate>Thu, 01 Sep 2011 00:00:05 +0000 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>How to search a Lucene.Net index in C#</title>
      <description>
        I used this code to perform a search of a Lucene.Net index.  Put these lines of code within a for loop.
        Reading in the source code I found that the Search method which
        returns a Hits class will be depreciated in 3.0.  Eventhough the above worked,
        I decided to implement a solution that will work with future versions
        of Lucene.Net.  Below is what I change my
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-search-a-Lucene-Net-index.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-search-a-Lucene-Net-index.aspx</guid>
      <pubDate>Thu, 01 Sep 2011 00:00:04 +0000 </pubDate>
      <category>Lucene.Net</category>
    </item>

    <item>
      <title>Treeview with checkbox in WPF</title>
      <description>
        On one of my projects I had to provide  treeview selection functionality.
        I searched the internet and pulled everything I could into a this single resource.
        I wasn't able to find 1 post that provided all the details and source code to do what
        I needed.  Now there is one and if you find it, I
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Treeview-with-checkbox-in-WPF-using-csharp.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Treeview-with-checkbox-in-WPF-using-csharp.aspx</guid>
      <pubDate>Thu, 01 Sep 2011 00:00:03 +0000 </pubDate>
      <category>WPF</category>
    </item>

    <item>
      <title>Adding a context menu to a treeview Part 2</title>
      <description>
        In my previous post I showed you how I added a context menu to a treeview.  I had a new
        requirement that wanted a treeview property to contain a flag that could be turned on or
        off and that the value be displayed in the
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Adding-a-context-menu-to-a-treeview-Part-2.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Adding-a-context-menu-to-a-treeview-Part-2.aspx</guid>
      <pubDate>Thu, 01 Sep 2011 00:00:02 +0000 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>Strings in C#</title>
      <description>
        The String class in .Net has many capabilities.   Below is a list of some string
        methods I use frequently in my development projects.  Even when I have completed
        this list, I am sure it will over cover 5% of the capabilities within the String
        class.  After reading this, I suggest you look over the
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/fundamentals/Strings.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/fundamentals/Strings.aspx</guid>
      <pubDate>Thu, 01 Sep 2011 00:00:01 +0000 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>NHibernate Serialized startup</title>
      <description>
        In all of my NHibernate implementations I serialize the startup.  It
        saves a noticeable amount of time.  We know that without it, NHibernate validates
        all the mapping files each time we start the program.  If we only have 1 or 2
        simple files it is not a problem, however, if
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/NHibernate-Serialized-startup.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/NHibernate-Serialized-startup.aspx</guid>
      <pubDate>Mon, 01 Aug 2011 00:00:09 +0000 </pubDate>
      <category>NHibernate</category>
    </item>

    <item>
      <title>NHibernate SchemaValidator TestConfigurationHelper</title>
      <description>
        I was in a meeting where we had a discussion about keeping the
        modifications made to a database synchronized with the NHibernate mappings.
        Some said that there was a method called Validate() which just needed to be
        run and that all that was needed.  I was right, it would turn out to be
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/NHibernate-SchemaValidator-TestConfigurationHelper.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/NHibernate-SchemaValidator-TestConfigurationHelper.aspx</guid>
      <pubDate>Mon, 01 Aug 2011 00:00:08 +0000 </pubDate>
      <category>NHibernate</category>
    </item>

    <item>
      <title>Nhibernate QuerySyntaxException is not mapped from</title>
      <description>
        An important step which is often overlooked when beginning
        the process of mapping your database is to set the Build Action to Embedded
        Resource. (Buildvorgang – Eingebettete Resource).  If you forget to do this
        you may receive a QuerySynataxException stating that
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Nhibernate-QuerySyntaxException-is-not-mapped-from.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Nhibernate-QuerySyntaxException-is-not-mapped-from.aspx</guid>
      <pubDate>Mon, 01 Aug 2011 00:00:07 +0000 </pubDate>
      <category>NHibernate</category>
    </item>

    <item>
      <title>NHibernate PropertyAccessException Invalid Cast, specified cast is not valid</title>
      <description>
        If you receive this error then you have probably mixed up some
        data types between your class (class.cs) file and your mapping (class.hbm.xlm)
        file.  For example you have a property defined in your class file as a
        string and then in your mapping file as an int.  To repair the
        PropertyAccessException Invalid
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/NHibernate-PropertyAccessException-Invalid-Cast-specified-cast-is-not-valid.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/NHibernate-PropertyAccessException-Invalid-Cast-specified-cast-is-not-valid.aspx</guid>
      <pubDate>Mon, 01 Aug 2011 00:00:06 +0000 </pubDate>
      <category>NHibernate</category>
    </item>

    <item>
      <title>NHibernate – object with same identifier value was already associated</title>
      <description>
        One of the awesome capabilities of NHibernate is its 1st and 2nd
        level caching functionality.  Each time a query is submitted for execution
        NHibernate first looks in the cache for the entity before taking the query
        to the database and selecting the
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/NHibernate-object-with-same-identifier-value-was-already-associated.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/NHibernate-object-with-same-identifier-value-was-already-associated.aspx</guid>
      <pubDate>Mon, 01 Aug 2011 00:00:05 +0000 </pubDate>
      <category>NHibernate</category>
    </item>

    <item>
      <title>Nhibernate MappingException could not compile the mapping document</title>
      <description>
        The following error is generally caused when there is a misspelling
        or case miss match between the class file and the mapping file.  Review the
        contents of both and confirm spelling and case are the same so that the
        ‘Could not compile the mapping
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Nhibernate-MappingException-could-not-compile-the-mapping-document.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Nhibernate-MappingException-could-not-compile-the-mapping-document.aspx</guid>
      <pubDate>Mon, 01 Aug 2011 00:00:04 +0000 </pubDate>
      <category>NHibernate</category>
    </item>

    <item>
      <title>NHibernate mapping experience with an ambiguous reference</title>
      <description>
        Sometime things don’t always go as planned.  I was making some
        nice progress with the process of mapping a database and all of a sudden I get
        the following compile time error
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/NHibernate-mapping-experience-with-an-ambiguous-reference.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/NHibernate-mapping-experience-with-an-ambiguous-reference.aspx</guid>
      <pubDate>Mon, 01 Aug 2011 00:00:03 +0000 </pubDate>
      <category>NHibernate</category>
    </item>

    <item>
      <title>Lucene.Net search with star (*) wildcard as first character</title>
      <description>
        Using the star (*) as the first character of a Lucene.Net search
        is not supported by default.  It will return null results if it is not turned on.
        To turn on the support for leading wild card characters you must set the
        SetAllowLeadingWildcard property to true.  Then you will be able to use
        wildcard search parameters as the leading
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Lucene-Net-search-with-star-wildcard-as-first-character.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Lucene-Net-search-with-star-wildcard-as-first-character.aspx</guid>
      <pubDate>Mon, 01 Aug 2011 00:00:02 +0000 </pubDate>
      <category>Lucene.Net</category>
    </item>

    <item>
      <title>Lucene.NET returns results only when using numeric values</title>
      <description>
        I used this code to create a Lucene.Net 2.9.2 index.  When I used this code to perform the search, it only returned
        results searching with numeric values.  When I changed it to the below logic, it worked.  I received
        results with letters and-or numbers.
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Lucene-NET-returns-results-only-when-using-numeric-values.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Lucene-NET-returns-results-only-when-using-numeric-values.aspx</guid>
      <pubDate>Mon, 01 Aug 2011 00:00:01 +0000 </pubDate>
      <category>Lucene.Net</category>
    </item>
    
    <item>
      <title>Booleans and Bools in C#</title>
      <description>
        In a job interview I had once, I was asked, 'How do you store a Boolean in a
        database?'  My first reaction was to say, True, False, 0, 1, Y or N.
        However, this question has some depth to it.  I do not know why, if you do let
        me know, but there are no Boolean data type on SQL Server or Oracle.  Therefore,
        we are required to choose our own variable for storing
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/fundamentals/BooleanAndBools.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/fundamentals/BooleanAndBools.aspx</guid>
      <pubDate>Fri, 01 Jul 2011 00:00:09 +0000 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>NHibernate MappingException could not compile mapping document</title>
      <description>
        This is a fairly common error message which a programmer will receive
        during the NHibernate  mapping process. The inner exception was:
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/NHibernate-MappingException-could-not-compile-mapping-document.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/NHibernate-MappingException-could-not-compile-mapping-document.aspx</guid>
      <pubDate>Fri, 01 Jul 2011 00:00:08 +0000 </pubDate>
      <category>NHibernate</category>
    </item>

    <item>
      <title>NHibernate MappingException association references unmapped class</title>
      <description>
        During the mapping process you may encounter this error.  In my situation the case was 
        that I had the wrong namespace identified within the class attribute within a bag 
        element containing a one-to-many element, like the
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/NHibernate-MappingException-association-references-unmapped-class.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/NHibernate-MappingException-association-references-unmapped-class.aspx</guid>
      <pubDate>Fri, 01 Jul 2011 00:00:07 +0000 </pubDate>
      <category>NHibernate</category>
    </item>

    <item>
      <title>NHibernate MappingException an association from the table refers to an unmapped class</title>
      <description>
        When you are creating your mapping files for which NHibernate uses to
        know the data types and relationships of the data model, you are likely to receive
        this error message: An association from the table TABLENAME refers to an unmapped
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/NHibernate-MappingException-an-association-from-the-table-refers-to-an-unmapped-class.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/NHibernate-MappingException-an-association-from-the-table-refers-to-an-unmapped-class.aspx</guid>
      <pubDate>Fri, 01 Jul 2011 00:00:06 +0000 </pubDate>
      <category>NHibernate</category>
    </item>

    <item>
      <title>Nhibernate GenericADOException could not execute query (2)</title>
      <description>
        This is a pretty common error which can be caused by a large number
        of reasons.  I received the below error: GenericADOExcpetion could not execute
        query  select SQL: select.  While I was implemented the TrueFalse NHibernate 
        data type.  What I did was in my class
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/NHibernate-GenericADOException-could-not-execute-query2.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/NHibernate-GenericADOException-could-not-execute-query2.aspx</guid>
      <pubDate>Fri, 01 Jul 2011 00:00:05 +0000 </pubDate>
      <category>NHibernate</category>
    </item>

    <item>
      <title>Nhibernate GenericADOException could not execute query (1)</title>
      <description>
        During the mapping process or after a data model change
        you may receive this error.  The error message being: could not execute query select from TABLE
        with an inner exception of
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Nhibernate-GenericADOException-could-not-execute-query1.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Nhibernate-GenericADOException-could-not-execute-query1.aspx</guid>
      <pubDate>Fri, 01 Jul 2011 00:00:04 +0000 </pubDate>
      <category>NHibernate</category>
    </item>

    <item>
      <title>NHibernate error, incorrect syntax near the keyword</title>
      <description>
        Common sense, maybe..., worthy of a blog, absolutely.  I was creating an
        ordering system using NHibernate and the table which stored the orders was called ORDER.
        This resulted in an error, which I believe would come from any data retrieval
        source, I just happen to be using NHibernate
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/NHibernate-error-incorrect-syntax-near-the-keyword.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/NHibernate-error-incorrect-syntax-near-the-keyword.aspx</guid>
      <pubDate>Fri, 01 Jul 2011 00:00:03 +0000 </pubDate>
      <category>NHibernate</category>
    </item>

    <item>
      <title>NHibernate could not execute query, ORA-00904 invalid identifier</title>
      <description>
        This is a pretty easy one to solve.  This happens because the column
        attribute in the mapping file does not exist on the database being accessed
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/NHibernate-could-not-execute-query-ORA-00904-invalid-identifier.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/NHibernate-could-not-execute-query-ORA-00904-invalid-identifier.aspx</guid>
      <pubDate>Fri, 01 Jul 2011 00:00:02 +0000 </pubDate>
      <category>NHibernate</category>
    </item>

    <item>
      <title>NHibernate connection driver must be specified in the configuration section</title>
      <description>
        I was in the process of pointing my NHibernate to an Oracle 10g
        instance using ODP.Net  and I received the below error message: The connection.driver_class 
        must be specified in the
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/NHibernate-connection-driver-must-be-specified-in-the-configuration-section.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/NHibernate-connection-driver-must-be-specified-in-the-configuration-section.aspx</guid>
      <pubDate>Fri, 01 Jul 2011 00:00:01 +0000 </pubDate>
      <category>NHibernate</category>
    </item>
    
    <item>
      <title>NHibernate 3.2, What’s New?</title>
      <description>
        The newest release is as BETA 1 when writing this blog an it contains some
        new and nice features.  One of my favorite is that as a programmer we no longer need to
        configure a proxy.  It was always a little confusing knowing which one to
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/NHibernate-3-2-What-s-New.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/NHibernate-3-2-What-s-New.aspx</guid>
      <pubDate>Fri, 03 Jun 2011 00:00:08 +0000 </pubDate>
      <category>NHibernate</category>
    </item>

    <item>
      <title>String vs. StringBuilder</title>
      <description>
        A blog would not be complete without an article about the
        differences between appending or modifying a string using the String Class
        versus the StingBuilder class.  See, strings are immutable, which means
        once they are created they cannot be changed.  Any time you make a modification
        to a string, after is has been created you are actually creating a new string
        object in memory.  Each time
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/String-vs-StringBuilder.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/String-vs-StringBuilder.aspx</guid>
      <pubDate>Wed, 01 Jun 2011 00:00:07 +0000 </pubDate>
      <category>C#</category>
    </item>
    
    <item>
      <title>Projects and Solutions in .Net (.csproj and .sln)</title>
      <description>
        Holistic approach or high level approach are common phrases you
        will hear when beginning the design of a new system or the start of a new project
        that will modify or enhance an existing program.  Therefore, when you begin a new
        project, start from the solution context.  This means, know what
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Projects-and-Solutions-in-Net-csproj-and-sln.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Projects-and-Solutions-in-Net-csproj-and-sln.aspx</guid>
      <pubDate>Wed, 01 Jun 2011 00:00:06 +0000 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>Progress Bar, Multithread in WPF using C#</title>
      <description>
        I created a video a while ago that discussed how to implement a progress
        bar in a windows form application.  It used the System.Thread class library and
        the the BackgroundWorker class.  With the release of .Net 4, there is
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Progress-Bar-Multithread-in-WPF.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Progress-Bar-Multithread-in-WPF.aspx</guid>
      <pubDate>Wed, 01 Jun 2011 00:00:05 +0000 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>Create and Consume a WCF Windows Communication Foundation service using C#</title>
      <description>
        Creating a simple 'Hello World'-like WCF service is very simple with
        Visual Studio 2010.  Open Visual Studio 2010 and select New => Project => WCF Service.
        Name it for example, HelloWorldWCF.  It will initially create 2
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Create-and-Consume-a-WCF-Windows-Communication-Foundation-service.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Create-and-Consume-a-WCF-Windows-Communication-Foundation-service.aspx</guid>
      <pubDate>Wed, 01 Jun 2011 00:00:04 +0000 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>Constants and Enums in C#</title>
      <description>
        Contstants come in handy when you need to store values that will be used
        frequently within the system and at the same time will not change often,
        if ever.  You want to avoid hard coding values in you code.  It makes
        maintenance and debugging very
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/fundamentals/Constants-and-Enum.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/fundamentals/Constants-and-Enum.aspx</guid>
      <pubDate>Wed, 01 Jun 2011 00:00:03 +0000 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>NHibernate could not execute query-SQL: SQL not available in C#</title>
      <description>
        I was writing some new code that would use NHibernate a few days back
        and while I was testing it I received thie error: Could not execute query
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/NHibernate-could-not-execute-query-SQL-SQL-not-available.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/NHibernate-could-not-execute-query-SQL-SQL-not-available.aspx</guid>
      <pubDate>Wed, 01 Jun 2011 00:00:02 +0000 </pubDate>
      <category>NHibernate</category>
    </item>

    <item>
      <title>How to use Data Parallelism from the Task Parallel Library in C#</title>
      <description>
        I wrote a program a few months back that populated a dropdown list with
        contents from a class using reflection.  I used a normal for each statement
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-use-Data-Parallelism-from-the-Task-Parallel-Library.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-use-Data-Parallelism-from-the-Task-Parallel-Library.aspx</guid>
      <pubDate>Wed, 01 Jun 2011 00:00:01 +0000 </pubDate>
      <category>C#</category>
    </item>    
    
    <item>
      <title>Hacked</title>
      <description>
        A few weeks ago I had to fend off a hacker.  Some of the database statements
        I created for another website were susceptible to SQL injection.  This means I created
        the statements like
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Hacked1.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Hacked1.aspx</guid>
      <pubDate>Thu, 12 May 2011 01:00:00 +0000 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>How to create a Pie chart using ASP.Net and C#</title>
      <description>
        With .Net 4.0, we no longer need to download and install the Chart
        Control to get charting capabilities in ASP.Net, Window Forms or WPF.  This is becuase
        the the Charting control is now part of
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-create-a-Pie-chart-using-ASPNET-and-C-sharp.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-create-a-Pie-chart-using-ASPNET-and-C-sharp.aspx</guid>
      <pubDate>Fri, 6 May 2011 04:00:00 +0000 </pubDate>
      <category>C#</category>
    </item>
    
    <item>
      <title>How to get a treeview item node value using a ContextMenu using WPF and C#</title>
      <description>
        The first things you need to note is that the treeview node needs to be
        selected in order for you to get any information from it.  I did read some articles
        about using the System.Windows.Point to get the X, Y coordinates of the mouse, but I
        chose to go another route.  Using the Point class just seemed too distant from what I
        was trying to achieve.  I mean, it seemed
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-get-a-treeview-item-node-value-using-a-ContextMenu-using-WPF-and-C-sharp.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-get-a-treeview-item-node-value-using-a-ContextMenu-using-WPF-and-C-sharp.aspx</guid>
      <pubDate>Fri, 6 May 2011 03:00:00 +0000 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>Sandcastle XML documentation for Visual Studio and C#, How to install and configure Sandcastle</title>
      <description>
        I know we as programmers like to write code.  However, most of the time we
        don't get to start from the beginning.  Most often we get to modify and enhance code
        that has been written by someone else.  Let's make a deal, from now on let's document
        our code so we don't have to spend so long trying to
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Sandcastle-XML-documentation-for-Visual-Studio-and-C-sharp-How-to-install-and-configure-Sandcastle.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Sandcastle-XML-documentation-for-Visual-Studio-and-C-sharp-How-to-install-and-configure-Sandcastle.aspx</guid>
      <pubDate>Fri, 6 May 2011 02:00:00 +0000 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>Fields vs. Properties in C#</title>
      <description>
        There is a very significant difference between a field and propoerty
        within a class.  The difference is in the behaviour of the field when defined as either a
        static or instance.  Basically, if you create 2 instances of class which has a static
        field, when you change the value of that field, the values in both classes are changed.
        This may be needed in some requirements but you need
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Fields-vs-Properties.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Fields-vs-Properties.aspx</guid>
      <pubDate>Fri, 6 May 2011 01:00:00 +0000 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>How to read from and write to an app.Config or web.Config using C#</title>
      <description>
        There are a number of ways you can do this.  In this example I
        will use the ConfigurationManager libraries that are part of the .Net Framework.
        This group of methods and properties are created specifically for this purpose.  I
        am a firm believer that every action we want to take as a programmer needs to be done
        using the correct library.  It would be possible to
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-read-from-and-write-to-an-appConfig-or-webConfig.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-read-from-and-write-to-an-appConfig-or-webConfig.aspx</guid>
      <pubDate>Sun, 1 May 2011 03:00:00 +0000 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>Add an XML Schema file to Visual Studio 2010</title>
      <description>
        XML Schema files (.xsd) are files which provide data for IntelliSense
        and are often provided along with a 3rd party class library.  In case you are not
        familiar with IntelliSense, it is a functionality that helps you develop or configure
        a system by providing a list of existing methods
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Add-an-XML-Schema-file-to-Visual-Studio-2010.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Add-an-XML-Schema-file-to-Visual-Studio-2010.aspx</guid>
      <pubDate>Sun, 1 May 2011 02:00:00 +0000 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>How to set the minimum and maximum width or height of a column or row using WPF</title>
      <description>
        The more I use WPF (WIndow Presentation Foundation) the more I like it and
        the more I see the similiarity with coding HTML pages or ASP.NET pages.  Microsoft has
        really done a good job at seperating the presentation logic from the
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-set-the-minimum-and-maximum-width-or-height-of-a-column-or-row-using-WPF.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-set-the-minimum-and-maximum-width-or-height-of-a-column-or-row-using-WPF.aspx</guid>
      <pubDate>Sun, 1 May 2011 01:00:00 +0000 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>How do Margins in WPF work</title>
      <description>
        When you add a control to your WPF container you typcally set the width and
        height to align it within the window and in relation to other controls.  An alternative
        to this is to set the controls margin in relation to the container.  This plays an
        important role when you want to add GridSplitters
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-do-Margins-in-WPF-work.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-do-Margins-in-WPF-work.aspx</guid>
      <pubDate>Sun, 1 May 2011 00:00:00 +0000 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>Find a specific value within a generic list with a Lambda Expression using C#</title>
      <description>
        With the release of C# 3.0 came Lambda Expressions.  In a previous post I searched a generic list 
        using a delegate, this is becuase, perhaps, I have done so much programming with C# 2.0 that it's 
        just a habit now.  Time to move onto better, newer things, like Lambda
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Find-a-specific-value-within-a-generic-list-with-a-Lambda-Expression.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Find-a-specific-value-within-a-generic-list-with-a-Lambda-Expression.aspx</guid>
      <pubDate>Apr 16, 2011 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>Combining 2 Generic Lists into 1 with C#</title>
      <description>
        I was writing a program that converted a List into a comma
        delimited string.  A later requirement necessitated that I capture data from
        an additional source and add it to the original comma delimited string.  In
        both cases the data was returned in a generic list, so I only needed to combine
        the 2 lists into 1 before converting it to a delimited string.  In this case,
        order and uniqueness was not a requirement.  It is
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Combining-2-Generic-Lists-into-1.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Combining-2-Generic-Lists-into-1.aspx</guid>
      <pubDate>Apr 6, 2011 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>CulturInfo not working as expected in C#</title>
      <description>
        I have started working with Globalization and Localization
        functionality for a system I am building.  I could not understand why, when
        I wanted to get the intellisense for the class that nothing showed up.  After
        some time I decided to use the full
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/CulturInfo-not-working-as-expected.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/CulturInfo-not-working-as-expected.aspx</guid>
      <pubDate>Apr 5, 2011 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>Find a specific value within a generic list using C#</title>
      <description>
        It is commen to have a need to search though a generic list to know
        if it contains a specific value.  This is where the Find() method can be
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Find-a-specific-value-within-a-generic-list.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Find-a-specific-value-within-a-generic-list.aspx</guid>
      <pubDate>Apr 4, 2011 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>WPF Using Templates and Themes</title>
      <description>
        If you are like me, your getting a little tired of the tanish
        green or grey color of the default WPF window.  I have been seeing in magazines
        and on the internet some nice looking GUI's (graphical user interface or windows)
        and was thinking about how I could implement or develop something like that.
        I started out changing the background color, changing the button color and then
        quickly realized that I would need to do some lower level
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/WPF-Using-Templates-and-Themes.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/WPF-Using-Templates-and-Themes.aspx</guid>
      <pubDate>Apr 3, 2011 </pubDate>
      <category>WPF</category>
    </item>

    <item>
      <title>WPF OpenFileDialog and FolderBrowserDialog</title>
      <description>
        I was supprised when I tried to implement an Open File Dialog box
        in my WPF program that the control did not exist.  The control for a Folder
        Browser Dialog does not exist either.  I was able to get them both implement
        into my WPF program by doing the
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/WPF-OpenFileDialog-and-FolderBrowserDialog.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/WPF-OpenFileDialog-and-FolderBrowserDialog.aspx</guid>
      <pubDate>Apr 2, 2011 </pubDate>
      <category>WPF</category>
    </item>

    <item>
      <title>WPF DataGrid Navigation Paging Up Down Sideways is slow virtualization</title>
      <description>
        I was developing a WPF application that allowed users to selected as
        many rows and as many columns that were available in the database.  I dynamically
        built the selection criteria using reflection and a treeview.  Then I traversed
        the treeview and dynamically built the DataGrid that contained the columns and
        thier values.  What I quickly experienced was when the number of columns
        (horizontal) was large, say +100, scrolling
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/WPF-DataGrid-Navigation-Paging-Up-Down-Sideways-is-slow-virtuaization.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/WPF-DataGrid-Navigation-Paging-Up-Down-Sideways-is-slow-virtuaization.aspx</guid>
      <pubDate>Apr 1, 2011 </pubDate>
      <category>WPF</category>
    </item>
    
    <item>
      <title>Var vs. Object data type in C#</title>
      <description>
        Knowing which data type to use in different situations is generally a
        basic level decision.  I mean you do not need to think very hard about storing regular
        numbers or storing words.  I hope you don't believe that.  Actually, choosing the correct
        data type to store your data can have serious implication on memory, storage, percision
        and access.  So spend some time learning and studying the different data types and try
        to imagine which situations you would use a
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Var-vs-Object-data-type.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Var-vs-Object-data-type.aspx</guid>
      <pubDate>Mar 11, 2011 </pubDate>
      <category>C#</category>
    </item>
    
    <item>
      <title>Throwing and catching exceptions using try catch in C#</title>
      <description>
        Catching exceptions within your code make a huge difference in how
        your program will be percieved from a user.  If you do not catch the exception
        then in many cases your program will crash and be required to close and then
        reopened.  However, if you catch exceptions you can handle them gracefully.
        You gracefully recover from an exception by notifying the user that an error
        has occured, provide them details so they can
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Throwing-and-catching-excpetions-using-try-catch.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Throwing-and-catching-excpetions-using-try-catch.aspx</guid>
      <pubDate>Mar 10, 2011 </pubDate>
      <category>C#</category>
    </item>
    
    <item>
      <title>How to stop selection change event in combox from firing when populating loading it</title>
      <description>
        If you have ever wanted to take some action when a user changes a
        selection in a combobox (drop down selection list) you would put your code in the
        SelectionChanged event of the WinForm or WPF system.  If you have ever wanted to
        set the combox to a default value when the window is being created, then you have
        probably experienced what this article is about.  When you set the combobox
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-stop-selection-change-event-in-combox-from-firing-when-populating-loading-it.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-stop-selection-change-event-in-combox-from-firing-when-populating-loading-it.aspx</guid>
      <pubDate>Mar 9, 2011 </pubDate>
      <category>C#</category>
    </item>
    
    <item>
      <title>How to create and search a Lucene.Net index in 4 simple steps using C#, Step 4</title>
      <description>
        Display the results.  To view the results we need to loop through the ScoreDoc array we
        created in Part3.  We do this by iterating through it within a for
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-create-and-search-a-Lucene-Net-index-in-4-simple-steps-using-c-sharp-Step-4.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-create-and-search-a-Lucene-Net-index-in-4-simple-steps-using-c-sharp-Step-4.aspx</guid>
      <pubDate>Mar 6, 2011 </pubDate>
      <category>Lucene.Net</category>
    </item>

    <item>
      <title>How to create and search a Lucene.Net index in 4 simple steps using C#, Step 3</title>
      <description>
        In this step we will use the query which was created using the
        query parser to perform the search on the index we created in step 1.  The Searcher 
        class needs to be told where the index we want to search is.  We will create a 
        directory class to hold this information and
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-create-and-search-a-Lucene-Net-index-in-4-simple-steps-using-c-sharp-Step-3.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-create-and-search-a-Lucene-Net-index-in-4-simple-steps-using-c-sharp-Step-3.aspx</guid>
      <pubDate>Mar 6, 2011 </pubDate>
      <category>Lucene.Net</category>
    </item>
    
    <item>
      <title>How to create and search a Lucene.Net index in 4 simple steps using C#, Step 2</title>
      <description>
        There are numerous ways you can build your query.  I counted 17
        different Query classes in the Lucene.Net source code.  Here is a list of some
        of the query classes and when to use
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-create-and-search-a-Lucene-Net-index-in-4-simple-steps-using-c-sharp-Step-2.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-create-and-search-a-Lucene-Net-index-in-4-simple-steps-using-c-sharp-Step-2.aspx</guid>
      <pubDate>Mar 5, 2011 </pubDate>
      <category>Lucene.Net</category>
    </item>

    <item>
      <title>How to create and search a Lucene.Net index in 4 simple steps using C#, Step 1</title>
      <description>
        Before we get started I wanted to mention that Lucene.Net was
        originally designed for Java.  Because of this I think the creators used some
        classes in Lucene that already exist in the .Net framework.  Therefore, we need
        to use the entire path to the classes and methods instead of using
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-create-and-search-a-Lucene-Net-index-in-4-simple-steps-using-c-sharp-Step-1.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-create-and-search-a-Lucene-Net-index-in-4-simple-steps-using-c-sharp-Step-1.aspx</guid>
      <pubDate>Mar 4, 2011 </pubDate>
      <category>Lucene.Net</category>
    </item>
    
    <item>
      <title>Dictionary in C#</title>
      <description>
        I am finding that as you learn to use and implement more syphistocated
        programming techniques the eaiser it becomes to created what many would
        call "complex algorithms".  I beleive this, just think about what
        alternative you have to a Dictionary.  I mean other than the similiar
        methods found in the System.Collections or
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/fundamentals/Dictionary-in-C-sharp.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/fundamentals/Dictionary-in-C-sharp.aspx</guid>
      <pubDate>Mar 2, 2011 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>Can't modify members because it is a foreach iteration variable, use a for loop</title>
      <description>
        I had a requirement where I received a generic list from a method
        and needed to iterate through the the list and change a value if certain criteria
        were met.  Initially, I decided to use a foreach statement.  However that resulted
        in a Can't modify members because it
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Cant-modify-members-because-it-is-a-foreach-iteration-variable-use-for-loop.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Cant-modify-members-because-it-is-a-foreach-iteration-variable-use-for-loop.aspx</guid>
      <pubDate>Mar 1, 2011 </pubDate>
      <category>WPF</category>
    </item>

    <item>
      <title>Call a parent method from UserControl using WPF in C#</title>
      <description>
        I was implemting some paging functionality in a system I was
        building and realized that I had created the same forward, backward, first
        and last buttons and logic 3 times.  After doing this I
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Call-a-parent-method-from-UserControl-using-WPF.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Call-a-parent-method-from-UserControl-using-WPF.aspx</guid>
      <pubDate>Feb 26, 2011 </pubDate>
      <category>WPF</category>
    </item>

    <item>
      <title>Getting started with Lucene.Net 2.9.2 using C#</title>
      <description>
        I recently started a project working with Lucene.Net.  I am amazed at 
        how simple it was to create and search indexes.  I downloaded the source 
        by pointing my TortoiseSVN (subversion) here 
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Getting-started-with-Lucene-Net-292.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Getting-started-with-Lucene-Net-292.aspx</guid>
      <pubDate>Feb 12, 2011 </pubDate>
      <category>WPF</category>
    </item>

    <item>
      <title>Add Key Value Pairs to a Combobox using WPF and C#</title>
      <description>
        It's pretty easy to populate and read from a ComboBox when the
        selected item is the same as the selected value.  I.e. just simply
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Add-Key-Value-Pairs-to-a-Combobox-using-WPF.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Add-Key-Value-Pairs-to-a-Combobox-using-WPF.aspx</guid>
      <pubDate>Feb 12, 2011 </pubDate>
      <category>WPF</category>
    </item>
    
    <item>
      <title>Convert Silverlight to WPF and WPF DataGrid in C#</title>
      <description>
        Here is an example of a conversion from a Silverlight project
        that reads data and loads it to a DataGrid to a WPF project.  Please read my
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Convert-Silverlight-to-WPF-and-WPF-DataGrid.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Convert-Silverlight-to-WPF-and-WPF-DataGrid.aspx</guid>
      <pubDate>Feb 010, 2011 </pubDate>
      <category>WPF</category>
    </item>

    <item>
      <title>Dynamic Type in C#,  in comparison to var Type</title>
      <description>
        Knowing the type of variable you are working with in C# and while
        programming in general is pretty important.  You can't add a double and an integer
        together and get an intger, without converting it.  If you attempt to do this the
        compiler will throw an exception and you
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Dynamic-Type-in-comparison-to-var-Type.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Dynamic-Type-in-comparison-to-var-Type.aspx</guid>
      <pubDate>Feb 07, 2011 </pubDate>
      <category>WPF</category>
    </item>
    
    <item>
      <title>How to change an image in WPF at runtime in C#</title>
      <description>
        I was doing some code that checks the number of network
        round trips to the database within a single transaction.  I was coding
        it using WPF in C#.  What I wanted to
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-change-an-image-in-WPF-at-runtime.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/How-to-change-an-image-in-WPF-at-runtime.aspx</guid>
      <pubDate>Feb 05, 2011 </pubDate>
      <category>WPF</category>
    </item>
    
    <item>
      <title>Localizing a WPF program using C#</title>
      <description>
        These days when you are designing a GUI (Graphical User Interface)
        one of the many topics to discuss is that of localization.  Simply, localization
        means that local date format, currency and
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Localizing-a-WPF-program-using-CSharp.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Localizing-a-WPF-program-using-CSharp.aspx</guid>
      <pubDate>Feb 01, 2011 </pubDate>
      <category>WPF</category>
    </item>

    <item>
      <title>Localizing an ASP.Net program using C#</title>
      <description>
        A well designed program will support all the culture specific
        attributes dynamically.  The 3 ASP.Net pages below are a single ASPX page that
        uses different resource files to change the Labels and the Button text
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Localizing-an-ASP-Net-program-using-Csharp.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Localizing-an-ASP-Net-program-using-Csharp.aspx</guid>
      <pubDate>Feb 01, 2011 </pubDate>
      <category>ASP.NET</category>
    </item>

    <item>
      <title>Lesson 12 (Part 1) - Localize WPF and ASP.NET using C# and XAML</title>
      <description>
        In Lesson 12 you will learn to:
        Localize a WPF application using resource files, XAML and C#.
        Localize an ASP.NET application using resource files.
      </description>
      <link>http://www.youtube.com/watch?v=5MuN6VOw9r4</link>
      <guid>http://www.youtube.com/watch?v=5MuN6VOw9r4</guid>
      <pubDate>Feb 01, 2011 </pubDate>
      <category>Video</category>
    </item>

    <item>
      <title>Lesson 11 (Part 1) - LINQ to NHibernate, jqGrid SubGrid and MVC</title>
      <description>
        In Lesson 11 you will learn to:
        Add a SubGrid to the View and populate it with a method from a Controller using HQL and ICriteria. 
        Upgrade to NHibernate version 3.0 Beta and change and HQL query to LINQ to NHibernate.
      </description>
      <link>http://www.youtube.com/watch?v=RDpm9qK35R4</link>
      <guid>http://www.youtube.com/watch?v=RDpm9qK35R4</guid>
      <pubDate>Dec 03, 2010, 01:06 PM </pubDate>
      <category>Video</category>
    </item>

    <item>
      <title>Action Delegate and Task Parallelism in C#</title>
      <description>
        I wrote a WPF program recently that contained 2 treeviews which were
        dynamiclly created, in part, by data located on a database.  Initially, I had the
        creation of the treeviews in my Windows_Loaded method, executing the build one after
        the other.  The performance
      </description>     
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Action-Delegate-and-Task-Parallelism.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Action-Delegate-and-Task-Parallelism.aspx</guid>
      <pubDate>Fri, 21 Jan 2011 16:45:00 +0000 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>Language Independence </title>
      <description>
        The most common .Net languages are Visual Basic, C++ and C#. However, there are numerous 
        other progamming languages that will function with the .Net Framework. Like, F#, J#, 
        PowerBuilder, IronPython,
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/fundamentals/Language-Independence.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/fundamentals/Language-Independence.aspx</guid>
      <pubDate>Fri, 21 Jan 2011 16:45:00 +0000 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>LINQ to XML vs. XML DOM, XMLDOM and LINQ to XML with Lambda Expression </title>
      <description>
        There a numerous reasons why you would need to create an XML file. Configuration settings or using 
        it as a data source are 2 examples. In both cases, you would need to create the XML file. If you 
        have never done it before then the first question is
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/LINQ-to-XML-vs-XML-DOM-XMLDOM-and-LINQ-to-XML-with-Lambda-Expression.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/LINQ-to-XML-vs-XML-DOM-XMLDOM-and-LINQ-to-XML-with-Lambda-Expression.aspx</guid>
      <pubDate>Wed, 19 Jan 2011 16:45:00 +0000 </pubDate>
      <category>C# - XML</category>
    </item>

    <item>
      <title>Interoperability in C#</title>
      <description>
        Programming has been around for some time and we haven't always had the .Net Framework to make our 
        lives as programmers and support engineers so easy. When we program within the confines of
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/fundamentals/Interoperability.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/fundamentals/Interoperability.aspx</guid>
      <pubDate>Sun, 16 Jan 2011 16:45:00 +0000 </pubDate>
      <category>C#</category>
    </item>

    <item>
      <title>Order by with LINQ to Reflection using MetadataToken and Lambda in C#</title>
      <description>
        I had built a very nice program that used reflection where I had gone against the suggestion not to 
        depend on the order or results from methods. It was working fine for quit some time. It stopped
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Order-by-with-LINQ-to-Reflection-using-MetadataToken-and-Lambda.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Order-by-with-LINQ-to-Reflection-using-MetadataToken-and-Lambda.aspx</guid>
      <pubDate>Wed, 12 Jan 2011 16:45:00 +0000 </pubDate>
      <category>LINQ</category>
    </item>

    <item>
      <title>Using LINQ to Reflection with Lambda Expressions in C#</title>
      <description>
        I think Lambda expression are cool. Not only are cool, they are pretty powerful and can make your code 
        a lot more readable and compact. I wrote this article here about
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Using-LINQ-to-Reflection-with-Lambda-Expressions.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Using-LINQ-to-Reflection-with-Lambda-Expressions.aspx</guid>
      <pubDate>Mon, 10 Jan 2011 16:45:00 +0000 </pubDate>
      <category>LINQ</category>
    </item>

    <item>
      <title>Resize WPF contents controls when window is resized </title>
      <description>
        I created a nice utility in WPF today which contained a treeview, textbox, button and datagrid. 
        The logic and work flow executed as expected, I was very proud of the work. I caught all
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Resize-WPF-contents-controls-when-window-is-resized.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Resize-WPF-contents-controls-when-window-is-resized.aspx</guid>
      <pubDate>Thu, 06 Jan 2011 16:45:00 +0000 </pubDate>
      <category>WPF</category>
    </item>

    <item>
      <title>Resize a control within a WPF window grid at runtime </title>
      <description>
        It's kind of funny, you search and you search for the answer or keyword for achieving the 
        resizing of controls within a WPF window at runtime but just can't seem to get there easily. However, as soon as
      </description>
      <link>http://www.thebestcsharpprogrammerintheworld.com/blogs/Resize-a-control-within-a-WPF-window-grid-at-runtime.aspx</link>
      <guid>http://www.thebestcsharpprogrammerintheworld.com/blogs/Resize-a-control-within-a-WPF-window-grid-at-runtime.aspx</guid>
      <pubDate>Mon, 03 Jan 2011 21:00:00 +0000 </pubDate>
      <category>WPF</category>
    </item>

  </channel>
</rss>


