Re: COM Interop Types
Curt Hagenlocher <[email protected]> Wed, 24 Jun 2009 07:05:33 -0700
| Newsgroups | gmane.comp.windows.devel.dotnet.advanced |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Jun 24, 2009 at 6:58 AM, Mike Andrews <[email protected]> wrote: > > That's kinda what I was looking for. > However, I want to decorate a property with that. Can that be done? > The property is a System.Decimal type. MarshallAsAttribute can't be applied > to a property (or so it says). Can you place it onto the getter? public decimal Foo { [return: MarshalAs(UnmanagedType.Currency)] get { return foo; } } -- Curt Hagenlocher [email protected] =================================== View archives and manage your subscription(s) at http://peach.ease.lsoft.com/archives