Introduzione a .NET / Mono

12

description

Una breve introduzione a .NET, la compilazione a codice intermedio CIL e l'esecuzione virtuale.

Transcript of Introduzione a .NET / Mono

Page 1: Introduzione a .NET / Mono
Page 2: Introduzione a .NET / Mono
Page 3: Introduzione a .NET / Mono
Page 4: Introduzione a .NET / Mono
Page 5: Introduzione a .NET / Mono
Page 6: Introduzione a .NET / Mono
Page 7: Introduzione a .NET / Mono

bool IsAnswer(Random gen) {

int number = gen.Next();

return (number == 42);

}

.method private boolIsAnswer(class System.Random gen)

{.maxstack 2.locals init ([0] int32 number)ldarg.0callvirt instanceint32 System.Random::Next()

stloc.0ldloc.0ldc.i4.s 0x2aceqret

}

bool IsAnswer(Random gen) {int number = gen.Next();return (number == 42);

}

Page 8: Introduzione a .NET / Mono

object

Page 9: Introduzione a .NET / Mono
Page 10: Introduzione a .NET / Mono

Exception

Page 11: Introduzione a .NET / Mono

structint

doubledecimal

classobjectstringarray

Page 12: Introduzione a .NET / Mono