Generic Free Pattern Improved C#

Hi, some time ago I posted information about Generic Free Pattern, but I used there the reflection. Today I would like to share with you solution that is a way much faster. The source of creation a bridge between non-generic and generic classes is in the method named Creator. The usage of the pattern is at the end of the code. Where you can create class EntityManager that is non-generic but the logic that is called behind Continue ReadingGeneric Free Pattern Improved C#

Action<T> and Func<T, TResult> in Java 8

Hi, as a .NET/C# coder I found the issue that there is not Action<T> and Func<T, TResult> equivalents in Java environment. I am self-study this to prepare myself to the OCA certification and I had idea that I can use lambda expression and implement simple equivalents of C# delegates in the Java 8. Below you can find implementation with test cases. I found that the code can be very easy, because lambda expressions works as a anonymous Continue ReadingAction<T> and Func<T, TResult> in Java 8

Third usage of C# out keyword with Roslyn Intro

Hi, today I want to share with you innovative solution idea I want to make with Visual Studio 14 CTP that I found by looking to Roslyn project on CodePlex site. So what is the case here? Do you remember one of my last blog entry about Generic Free Pattern. That was solution that can be used for making C# similar to JavaScript when you write the code, but type safe when compiler use it the same Continue ReadingThird usage of C# out keyword with Roslyn Intro