Kotlin for C# Developers

0.1. Basics

Naming

Kotlin follows Java naming conventions:

Scope

Variables and functions can be declared at:

Visibility

Kotlin has the following visibility modifiers:

The default for everything is public.

C#

class ImplicitlyInternal
{
    void ImplicitlyPrivate()
    {
    }
}

Kotlin

class ImplicitlyPublic {
    fun implicitlyPublic() {
    }
}

Next: Variables