Skip to content

Instantly share code, notes, and snippets.

@CayasSoftware
CayasSoftware / xamarinandroidbindings.md
Created September 11, 2023 21:28 — forked from JonDouglas/xamarinandroidbindings.md
Xamarin Android Bindings Troubleshooting

Approaching a Xamarin.Android Bindings Case

1. Investigation

One of the best ways to investigate a problematic Xamarin.Android Binding is to first ensure you have the proper tooling available:

@CayasSoftware
CayasSoftware / WhenAll
Created August 1, 2014 06:58
Unterschiedliche Ergebnisse zwischen Task.WhenAll und einem awaited Task
var twitterTask = GetTweetsTaskAsync();
var weatherTask = GetWeather();
await Task.WhenAll(new Task[]{twitterTask, weatherTask});
var tweets = twitterTask.Result; //1
/*
* Copyright (C) 2014 Chris Banes
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
namespace jsontest
{
class MainClass
{
public static void Main( string[] args )
{
var value = new Root() { Foo = "Foo", Child = new Child { Foo = "Foo" } };
string message = JsonConvert.SerializeObject(value);
Debug.WriteLine(message);