Category: C# Blogs

Getting started with Lucene.Net 2.9.2 using C#

Benjamin Perkins Lucene.NET

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 (https://svn.apache.org/repos/asf/lucene/lucene.net/tags/Lucene.Net_2_9_2/) and performing an Import. Once I downloaded it I opened the Lucene.Net.sln solution file in Visual Studio 2010 and compiled it targeting .Net […]

Read More →

Var vs. Object data type in C#

Benjamin Perkins C#

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, […]

Read More →

Convert Silverlight to WPF and WPF DataGrid in C#

Benjamin Perkins C#

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 previous post which covers the creation of the Silverlight project used in this example. Difference #1 Silverlight is built as a UserControl which is converted from your XAML […]

Read More →

Creating a NuGet package for my .NET Standard class library

Visual Studio Benjamin Perkins

I successfully created and published my first NuGet package that included a .NET Standard class library here.  It is nothing specifically awesome but it’s pretty cool, simple and something I have never done before.  I simply executed this msbuild command on my .NET Standard class library and it built the package for me. msbuild CSharpProjectName.csproj […]

Read More →

Target .NET Core 2.0 and .NET Standard 2.0

Visual Studio Benjamin Perkins

I originally downloaded and installed the 2.0.0-download.md version of the .NET Core SDK and Runtime from GitHub here. The mistake I made was to install the SDK Installer for the bit of my Visual Studio instead of my OS.  I am running a 32bit version of Visual Studio on 64bit version of windows. I was […]

Read More →