Quantcast
Channel: Code Inside Blog
Browsing all 357 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

JSON.NET deserialize to abstract class or interface

Base Class & Implementationspublic abstract class BaseFoo { public string FooBarBuzz { get; set; } } public class AFoo : BaseFoo { public string A { get; set; } } public class BFoo : BaseFoo {...

View Article


Image may be NSFW.
Clik here to view.

Using Basic Authentication in ASP.NET WebAPI

Basic Authentication? Are you kidding?This was my first thought when I was thinking about a simple approach to protect Web APIs, but then I found this nicely written blogpost: Why I love Basic AuthThe...

View Article


Image may be NSFW.
Clik here to view.

Microsoft Web Camp Talk in German about ASP.NET now and ASP.NET 5

I did two sessions today about the current ASP.NET Stack and the upcoming ASP.NET 5 at the Microsoft Web Camp in Zurich. The talk was in German and so are most of the slides, but for the record I will...

View Article

Image may be NSFW.
Clik here to view.

Create and read NuGet Packages via Code

The typical use cases for NuGet may involve the NuGet Client inside Visual Studio or the NuGet.exe, but of course you can use the same functionality via code. NuGet - as a package format - can be used...

View Article

Image may be NSFW.
Clik here to view.

FAKE: Create NuGet Packages without knowing a tiny bit of F#

This is a follow-up to my first two FAKE posts:“FAKE: Building C# projects without knowing a tiny bit of F#”“FAKE: Running xUnit Tests with FAKE without knowing a tiny bit of F#”Creating NuGet Packages...

View Article


Image may be NSFW.
Clik here to view.

Using PCLs in ASP.NET

Weird Error Message:Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify...

View Article

Image may be NSFW.
Clik here to view.

Semantic Versioning in a nutshell

I made a short tweet today and it seems I hit a nerve:Instead of Major.Minor.Patch say Breaking.Feature.Bugfix - that's #SemVer in a nutshell.— Robert Muehsig (@robert0muehsig) 21. Juli 2015Because I...

View Article

Image may be NSFW.
Clik here to view.

HowTo: Write to Azure Blob Storage

Sometimes I just want to write blogposts to memorize it better even if the stuff is actually quiet old. So… and now I present you:How To write a simple text to Azure StorageAll you need is the...

View Article


Image may be NSFW.
Clik here to view.

Reg.exe or how to import .reg files without admin privileges

The beloved Registry is still an important part of Windows, because of COM, protocol mappings, program registrations etc. - so, even in 2015 we might have to deal with it.Problem: Writing some Registry...

View Article


Image may be NSFW.
Clik here to view.

FAKE: Running MSTest Tests with FAKE without knowing a tiny bit of F#

This is a follow-up to my xUnit FAKE post “FAKE: Running xUnit Tests with FAKE without knowing a tiny bit of F#”.Running MSTests with FAKERunning MSTests is not a big difference to run xUnit tests. The...

View Article

Image may be NSFW.
Clik here to view.

WPF, Chrome Embedded and WebApi Self-hosted

Building “rich desktop clients” is not a very easy task. WPF can be a good choice for “fat” Windows Apps, but if you have zero knowledge in XAML you might end up in hell, because… XAML, right? If you...

View Article

Image may be NSFW.
Clik here to view.

Nothing to do next weekend? Come to Leipzig and join the Developer Open Space...

The Developer Open Space is not a typical developer conference: There are no fixed speakers or topics, just many other tech lovers who wants to learn or sharetheir knowledge. The Open Space was started...

View Article

Image may be NSFW.
Clik here to view.

XML deserialize to abstract class, interface or base class

Let’s assume we have the following XML structure:<?xml version="1.0" encoding="utf-8" ?><Root><Node><Label Id="Label1">Betreff</Label><TextBox Id="TextBox1"...

View Article


Image may be NSFW.
Clik here to view.

Working with JumpLists in WPF Apps

JumpLists?JumpLists were introduced with Windows 7 and if it they are implemented right are pretty handy, because it can provide common functionality.A real world example:JumpLists with .NETIn pre .NET...

View Article

Image may be NSFW.
Clik here to view.

Serving embedded resources with ASP.NET WebApi

Embedded files? Why?In a normal Web-Application all files are somehow stored as files in the app directory, but sometimes it could be handy to embed those files.One scenario could be that you have a...

View Article


Image may be NSFW.
Clik here to view.

Working with FontIcons in UWP

FontIcons in UWPMicrosoft ships one builtin UWP (Universal Windows Platform) SymbolIcon class.The good thing about such FontIcons is, that you can scale and change the appearances very nice and don’t...

View Article

Image may be NSFW.
Clik here to view.

Shipping Visual C++ 2015 redistributable DLLs with your app or how to do an...

Small warning: I’m not a C++ devWe use VC++ just for a very small part of our application, but this part needs the VC++ 2015 runtime “installed” on the client, but we don’t want the UAC install dialog....

View Article


Image may be NSFW.
Clik here to view.

ExpensiveMeeting - a Universal Windows Platform OSS app using Template10

ExpensiveMeetingThe app - which is just a fun project and shouldn’t be taken too seriously - is like a stopwatch for meetings. But instead of the pure time it shows you also the burned money for your...

View Article

Image may be NSFW.
Clik here to view.

Pretty Print XML in .NET

Pretty PrintThe term “pretty print” describes that a document is more or less human readable formatted. So instead of this:<Foo><Bar><Buzz></Buzz></Bar></Foo>You...

View Article

Image may be NSFW.
Clik here to view.

Using Travis CI for GitHub Pages builds

Short recap: GitHub Pages & JekyllThis blog is powered by GitHub Pages, which uses Jekyll in the background. Jekyll is a static website generator, which means that this page is “build” and has no...

View Article
Browsing all 357 articles
Browse latest View live