[Mono-osx] [MonoMac] Core Animation duplicate definitions

Miguel de Icaza miguel at novell.com
Sat Jan 15 11:39:53 EST 2011


> While merging my changes for coreanimation I found a couple of duplicate
> definitions within coreanimation.cs and CADefs.cs
[...]
> Which is the way that they are to be defined?  [Field] or within the
> CADefs class with const strings:

[Field] are the preferred option.   The good news is that the CADefs
values were never public, so we are not going to break the API if we
remove them.

> I like the [Field] definition in case Apple decides to change them in
> the future.  Of course you may have reasons for defining them with
> constants.

Exactly.

Let us go the [Field] route.


More information about the Mono-osx mailing list