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 →Author: Benjamin Perkins
Convert Silverlight to WPF and WPF DataGrid in 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 →How to create and search a Lucene.Net index in 4 simple steps using C#, Step 2
Build the Query. 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 them. Query Class Description TermQuery Searches for a specific term RangeQuery Searches within a specific range, ex: date […]
Read More →Create and Consume a WCF (Windows Communication Foundation) service using C#
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 files for you (IService.cs and IService.svc). Delete them. Right-click on your project and add a new WCF Service named […]
Read More →Using FTPS with Azure App Services
Using FTPS is a very interesting area. I read a lot about it, but can’t really ever get to the point where I finish the article and know where I need to go then. Point is, using any form of SSL or TLS is a negotiation between a client and the server. Most of the […]
Read More →How to configure log4net on Azure App Service
Although I fully recommend using Application Insights (see here) for monitoring your Azure features, I get asked sometimes how to configure log4net onto an Azure App Service. So, this is how I did it. Install the log4net.dll binary using NuGet Configure the log4net name, type properties in the web.config Configure the log4net properties Modify the […]
Read More →Creating a NuGet package for my .NET Standard class library
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
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 →How to install .NET Standard 2.0
The release of .NET Standard has been officially announced here. I looked for a way to update .NET Standard to version 2.0 as I could see it was not installed on my workstation. As shown in Figure 1, I only had version 1.0 – 1.6 installed. Figure 1, how to upgrade, install new version of […]
Read More →How to install .NET Core 2.0
The release of .NET Core has been officially announced here. I looked for a way to update .NET Core to version 2.0 as I could see it was not installed on my workstation. As shown in Figure 1, I only had version 1.0 and 1.1 installed. Figure 1, how to upgrade, install new version of […]
Read More →