#include "stdafx.h"
using namespace System;
delegate double ValueAccessor();
value class MyClass
{
public:
property double MyDouble;
};
int main()
{
MyClass myobject;
myobject.MyDouble = 15.9994;
ValueAccessor^ get_method = gcnew ValueAccessor(myobject,&MyClass::MyDouble::get);
Console::WriteLine("{0}", get_method->Invoke());
}