James Montemagno
James Montemagno

Live, Love, Bike, and Code.

Tags


James Montemagno

Awesome

Convert Json to C# (and More) with quicktype

How often do you run into the situation where you are reading data from a json file or hitting a RESTful endpoint and pulling down a huge json file that you then need to deserialize? I bet pretty often as I know I do all the time. The next issue of course is that you have this bug json file, but you need to generate the actual data types, POCOs, inside of your C# code. This can be extremely tedious if you try to do it by hand and other websites give you lack luster C# files where you have to add…

James Montemagno James Montemagno

My Favorite C# 7 Feature: More expression-bodied members

I can’t help myself, I love Expression-Bodied Members from C# 6! Combined with other powerful C# features it took this code: public void OnPropertyChanged(string name) { var changed = PropertyChanged; if(changed == null) return; changed(this, new PropertyChangedEventArgs(name)); } to this: public void OnPropertyChanged(string name)=> PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(name)); This is amazing! However, in C# 7 things get even better. Take our goo…

James Montemagno James Montemagno

Build Apps Faster with Plugins for Xamarin!

One of my favorite parts of mobile development with Xamarin is that I am not only creating fully native mobile application on iOS and Android, but that I also have 100% API access on those platforms. That means if I want to do something I can do something. However, after four years of mobile development I found myself doing the same things over and over again to access native APIs from shared code. If I wanted to adjust a setting, vibrate the device, or check connectivity I would abstract out an…

James Montemagno James Montemagno

Debug with the Xamarin Android Player from Visual Studio in VMWare or Parallels

I simply love using my Mac when combined with VMWare for development. I consider it the ultimate setup for mobile development with Visual Studio. Since everything is on the same machine the iOS simulator and Build Host just work. For Windows Phone nested virtualization with Hyper-V seems to just work (as long as you you follow the special setup guide from Nokia [http://developer.nokia.com/community/wiki/Windows_Phone_8_SDK_on_a_Virtual_Machine_with_Working_Emulator] ). However, my favorite pla…

James Montemagno James Montemagno

Xamarin Studio + NuGet PCL Support!

From @SharpDevelop [http://twitter.com/sharpdevelop] comes a long awaited update to the Xamarin Studio NuGet Manager Plugin [https://github.com/mrward/monodevelop-nuget-addin]. I wrote about this plugin before, but with this update brings updated support for NuGet including PCLs for Xamarin.Android and Xamarin.iOS. It is extremely easy to add this functionality to Xamarin Studio and I made a short video [http://screencast.com/t/L9tJzk3iZs] to get you going. Unable to display content. Adobe…

James Montemagno James Montemagno

Azure Mobile Services + Xamarin + PCL

You might have noticed that both @ChrisNTR [http://www.twitter.com/chrisntr] and myself have been on the .NET Rocks Roadshow [http://xamarin.com/modern-apps-roadshow]. We have been talking to awesome devs all over the US about Xamarin, PCL, and Azure all wrapped up into an amazing demo [http://bit.ly/DNRXamarin] (full source code there). One common question that has come up is that while a lot of people have the demo up and running they are having a hard time getting Azure + PCL integrated into…

James Montemagno James Montemagno