What's the usage of internal Currency type? #66285
-
runtime/src/coreclr/System.Private.CoreLib/src/System/Currency.cs Lines 6 to 16 in 7698a9a I guess it's used by interop scenario, but there's no reference in managed code, and I can't find corresponding unmanaged code. The name hints that it's a part of OA interop, but it's not used by OAVariantLib either. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
IIRC its some Visual Basic thing. |
Beta Was this translation helpful? Give feedback.
-
It is used when you use |
Beta Was this translation helpful? Give feedback.
It is used when you use
[MarshalAs(UnmanagedType.Currency)]
on Decimal. Look forNATIVE_TYPE_CURRENCY
,MARSHAL_TYPE_CURRENCY
andILCurrencyMarshaler
in the unmanaged runtime to see where it used.