Skip to content

Instantly share code, notes, and snippets.

@CayasSoftware
CayasSoftware / api.xml
Created July 29, 2025 07:24
Error CS0111 : The type "Maps" defines already a member "FilterEntries" with same parameter types
<class abstract="false" deprecated="not deprecated" extends="java.lang.Object" extends-generic-aware="java.lang.Object" jni-extends="Ljava/lang/Object;" final="true" name="Maps" static="false" visibility="public" jni-signature="Lcom/google/common/collect/Maps;">
...
<method abstract="false" deprecated="not deprecated" final="false" name="filterEntries" jni-signature="(Lcom/google/common/collect/BiMap;Lcom/google/common/base/Predicate;)Lcom/google/common/collect/BiMap;" bridge="false" native="false" return="com.google.common.collect.BiMap&lt;K, V&gt;" jni-return="Lcom/google/common/collect/BiMap&lt;TK;TV;&gt;;" static="true" synchronized="false" synthetic="false" visibility="public">
<typeParameters>
<typeParameter name="K" classBound="java.lang.Object" jni-classBound="Ljava/lang/Object;" />
<typeParameter name="V" classBound="java.lang.Object" jni-classBound="Ljava/lang/Object;" />
</typeParameters>
<parameter name="unfiltered" type="com.google.common.colle
<metadata>
<!-- Fix CS0738 -->
<attr path="/api/package[@name='com.google.common.util.concurrent']/interface[@name='ListeningExecutorService']/method[@name='submit' and count(parameter)=1 and parameter[1][@type='java.lang.Runnable']]" name="managedReturn">Java.Util.Concurrent.IFuture</attr>
<attr path="/api/package[@name='com.google.common.util.concurrent']/interface[@name='ListeningExecutorService']/method[@name='submit' and count(parameter)=2 and parameter[1][@type='java.lang.Runnable'] and parameter[2][@type='T']]" name="managedReturn">Java.Util.Concurrent.IFuture</attr>
<attr path="/api/package[@name='com.google.common.util.concurrent']/interface[@name='ListeningExecutorService']/method[@name='submit' and count(parameter)=2 and parameter[1][@type='java.lang.Runnable'] and parameter[2][@type='T']]" name="managedReturn">Java.Util.Concurrent.IFuture</attr>
<attr path="/api/package[@name='com.google.common.util.concurrent']/interface[@name='ListeningExecutorService']/method[@name='submit' and count(
using System;
using System.Collections.Generic;
using Android.Runtime;
using Java.Interop;
namespace Com.Google.Common.Util.Concurrent {
// Metadata.xml XPath interface reference: path="/api/package[@name='com.google.common.util.concurrent']/interface[@name='ListeningExecutorService']"
[Register ("com/google/common/util/concurrent/ListeningExecutorService", "", "Com.Google.Common.Util.Concurrent.IListeningExecutorServiceInvoker")]
public partial interface IListeningExecutorService : global::Java.Util.Concurrent.IExecutorService {
@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);