public decimal Foo {
[return: MarshalAs(UnmanagedType.Currency)]
get { return this.foo; }
[param: MarshalAs(UnmanagedType.Currency)]
set { this.foo = value; }
}
How would I do the same in managed C++?
property RetClass^ Foo{
RetClass^ get() {
return gcnew RetClass();
}
}
C# is an object-oriented programming language created in conjunction with Microsoft’s .NET framework. Compilation is usually done into the Microsoft Intermediate Language (MSIL), which is then JIT-compiled to native code (and cached) during execution in the Common Language Runtime (CLR).
TRUSTED BY