struct MyValueType
{
int myInt;
}
class MyReferenceType
{
int myInt;
}
void MyMethod()
{
MyValueType v;
MyReferenceType r;
v.myInt = 5;
r.myInt = 5;
} // neither value nor reference type needs to be manually removed from memory!