Search

Developers Log

A blog about software developing and technology

Tag

C#

How to: Write to a Text File in C# using StreamWriter

Quick guide to use the StreamWriter class to write text data to files.

Advertisements

How To: Convert a string to a date in C#

Guide on how to convert a string to a DateTime in C#. Learn how to use the Parse, and ParseExact methods and how they compare to TryParse and TryParse exact.

Quick guide to creating a .Net Core project in Debian Linux

Quick guide to install the .Net Core SDK in Debian Stretch, and how to create our first .Net Core application in Linux.

C#: “Resource inaccessible due to its protection level” solved

How to solve the 'Resource inaccessible due to its protection level' error.

Unit testing a custom method that has an ActionFilter

In this post we will see how we can test an ASP.NET MVC custom Action Filter using xUnit.

How To: Adding Custom Action Filters to a Web API

In this post we will see how we can add Action Filters to a Web API Controller.

How to fix: ‘system.identityModel’ cannot be read

When developing ASP.NET MVC applications one runs from time to time into errors related to the Web.config configuration. This is not weird: in the end Web.config is an XML file and it´s easy to make silly mistakes when editing it:  tags... Continue Reading →

5 minute guide to NUnit 3 TDD

In this post we will learn how to run Unit Tests from Visual Studio using NUnit. We will be covering these points: Install NUnit 3 Create our first NUnit 3 test Run the test from Visual Studio Installation of NUnit... Continue Reading →

ASP.NET: Enabling Cross-Origin Requests

A Cross-Origin request blocked  error happens when a web application tries to access resources - like a REST WebApi - that are placed in a different domain.

Blog at WordPress.com.

Up ↑