Monthly Archives: April 2016

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