Archives / 2016 / May
  • How to commend somebody on linkedin

    Hello everybody,

    today I want to share how it's possible to write a recommendation to somebody on linkedin.

    I will do on on example of writing recomendation to my former colleageu Gregor Meurs. 

    1. So, the first step for making recommendation, is finding at linkedin by some way the profile of person, whom you want to recomend.

    ( By the way, my profile can be found via the following url: )

    2. Here is the url of my co-worker profile:

    3. Then scroll down untill you find part Recomendations, as displayed at picture:

    4. Click on Recommend __________ ( instead of __________  ) will be … more

  • Generate TypeScript from Enum

    Hello everybody,

    today I want to share with the world code, which generates typescript from enum declaration. I suppose everything should be understandable from code itself:

    using System;

    using System.Collections.Generic;

    using System.ComponentModel;

    using System.Linq;

    using System.Reflection;

    using System.Text;

    using System.Threading.Tasks;

    namespace System


    public static class AttributesSimplification





    public enum EnumSample


    [Description("Choice One")]


    [Description("Choice Two")]



       gives following ts:

    module Enumerations {

    export module EnumSample {

    export enum Enum {

    ChoiceOne = 0, … more

  • TypeLite generation of enums or get rid of word const

    Hello everybody,

    today I want to display one trick for working with TypeLite.

    But before this trick few words about TypeLite. 

    So, imagine that you created some C# class library according to business logic requirements with some models in C#. As usually on client side very similar task will be done by hands of javascript developer or front end developer which uses typescript. In order to leave back end developers and front end developers in sync, you can use some library, which take C# model and generates needed typescript class. Wouldn't it be great? And there are tools which can take C# class and generate TypeScript class. The name of this tool is TypeLite.

    It has two options of … more

  • One more summary of Moq library

    Examples of Mock usages

    Mock - is a simple and lightweight isolation framework, which is built on the basis of anonymous methods and expression trees. To create them it uses code generation, thus allowing to mock interfaces, virtual methods (and even protected methods) and does not allow to mock non-virtual and static methods.


    At market exists only two frameworks that allow to mock anything. These are TypeMockIsolator and Microsoft Fakes, available in Visual Studio 2012 and higher. These frameworks, unlike Mock ( which uses code generation) use CLR Profiling API, allowing to mock any method even for static, virtual and private methods. IMHO they are good for testing legacy code … more