Author Archives: WUDI

visual studio – how to format whole project files

formatting one single file is simple, find Edit.FormatDocument command in visual studio and click to apply for it. or Ctrl+K Ctrl+D. customizing C# indent, for example, going Tools | Options | Text Editor | C# | Tabs, on UI user … Continue reading

Posted in Uncategorized | Comments Off on visual studio – how to format whole project files

WPF – add key short cut for windows

WPF – two ways to add key short cut for windows and buttons Continue reading

Posted in WPF | Comments Off on WPF – add key short cut for windows

xamarin debug android on device and release to apk

this example code could be find on following url https://github.com/emacslisp/XNA2DGame/tree/dev/Android/PlatformReading 1. How to build apk from visual studio change build mode from ‘debug’ to ‘release’ select project properties and change option on ‘Application’, ‘Android Manifest’, ‘Android Options’ 2. How to … Continue reading

Posted in Uncategorized | Comments Off on xamarin debug android on device and release to apk

MonoGame – Personal Project and step by step tutorial

XNA Framework continued to developed by MonoGame. I migrated my xna game to MonoGame using OpenGL https://github.com/emacslisp/XNA2DGame for ‘dev’ is Game using MonoGame with visual studio 2015 in ‘master’ branch is XNA 4.0 using visual studio 2010.

Posted in MonoGame | Comments Off on MonoGame – Personal Project and step by step tutorial

c# – NHibernate.MappingException: No persister for: XYZ

as screen dump show, build action of XYZ.hbm.xml should be ‘Embedded Resource’.

Posted in Uncategorized | Comments Off on c# – NHibernate.MappingException: No persister for: XYZ

autofac build

get source code via git clone https://github.com/autofac/Autofac open then solution Autofac.sln and build. However, if you look at Reference of Autofac.xproj, it has two References, one is .net 4.5 and another one is .net core 1.0. the output dll will … Continue reading

Posted in autofac | Comments Off on autofac build

.net core – source code analysis starting

.NET Core is a cross-platform free and open-source managed software framework similar to .NET Framework. It consists of CoreCLR, a complete cross-platform runtime implementation of CLR, the virtual machine that manages the execution of .NET programs. the Major code is … Continue reading

Posted in .net core | Comments Off on .net core – source code analysis starting

Visual Studio 2015 with Update 2 Short cut changes

jumping between pair “#region #endregion” short cut is Ctrl+] originally. However, Now in Visual studio 2015 jump between the pair are changed to Ctrl+Shift+Up/Down. Ctrl+Shift+8 is not working any more, Ctrl+- has to be used. I will update more short … Continue reading

Posted in C# | Comments Off on Visual Studio 2015 with Update 2 Short cut changes

C# Reflection – set object enum property value

using C# Reflection can convert DataTable to Object easily. However, it may be have some problems when converting enum which is special, we don’t know enum type and enum type should get from reflection. Here is code sample for c# … Continue reading

Posted in C# | Comments Off on C# Reflection – set object enum property value

some tricky in ng-repeat update model in ionic

ng-repeat is to loop thought object list and auto generated html. for example in controller, we declare $scope.workspaces. Now $scope.workspaces = getDataFromDatabase(); 1 2 3 <li class="workspace-object" ng-repeat="w in workspaces | filter:searchQuery" ng-click="selectWorkspace(w)"> <a href="" class="workspace-link">{{w.name | titleCase }}</a> </li><li … Continue reading

Posted in Angular.js | Comments Off on some tricky in ng-repeat update model in ionic