Skip to content

Support default interface methods #1883

@atsushieno

Description

@atsushieno

It's been known that C# 8.0 will support default interface methods (DIM) and we will have to wait for 8.0. Turned out that there is already a preview version built within mono sdks, named as csc-dim.

We should make use of it and implement preview support for DIMs that will make Java bindings easier.

So far I observed they exist in xamarin-android built tree as:

/sources/xamarin-android$ find . -name csc-dim*
./external/mono/scripts/csc-dim.in
./external/mono/sdks/builds/android-armeabi-v7a-debug/scripts/csc-dim
./external/mono/sdks/builds/android-x86-debug/scripts/csc-dim
./external/mono/sdks/builds/android-host-Linux-debug/scripts/csc-dim

/sources/xamarin-android$ cat ./external/mono/sdks/builds/android-host-Linux-debug/scripts/csc-dim
#!/bin/sh
exec /sources/xamarin-android/external/mono/sdks/out/android-host-Linux-debug/bin/mono --gc-params=nursery-size=64m $MONO_OPTIONS /sources/xamarin-android/external/mono/sdks/out/android-host-Linux-debug/lib/mono/4.5/dim/csc.exe "$@"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions