10
in C# ist, könnte ich das Schlüsselwort 'ist'Wie um zu bestimmen, ob ein Objekt eine bestimmte Art in F #
if (variable is string)
{
}
wie ist das in f done #
in C# ist, könnte ich das Schlüsselwort 'ist'Wie um zu bestimmen, ob ein Objekt eine bestimmte Art in F #
if (variable is string)
{
}
wie ist das in f done #
if (variable :? string) ...
Versuchen oder
let x = variable :? string
Was ist mit C# 'as' Operator Äquivalent? – Andrii
siehe http://stackoverflow.com/questions/2361851/c-sharp-and-f-casting-specifical-the-as-keyword @Andrii – Maslow