0

尝试使用 Moonlight 代码由于缺少Kind例如在

https://github.com/mono/moon/blob/master/class/System.Windows/Mono/Types.cs#L47

什么是Kind,它的定义在哪里?

namespace Mono
{   
    /*
     *  The managed equivalent of the unmanaged Types
     *  TODO:
     *  - Find out when to call Free.
     */
    internal sealed partial class Types {

        class KindComparer : IEqualityComparer<Kind> {

            public bool Equals (Kind x, Kind y)
            {
                return x == y;
            }

            public int GetHashCode (Kind obj)
            {
                return (int) obj;
            }
        }

这肯定是一个缺失的参考,但我不知道到底是什么。

4

1 回答 1

1
enum Kind {
    // START_MANAGED_MAPPING
    INVALID,
    ENUM,
    DATETIME,
    /*DO_KINDS*/
    LASTTYPE,
    // END_MANAGED_MAPPING
};

参考:https ://github.com/mono/moon/blob/cb343939d3f5731d8c1509beb90c051c63a83903/src/type.h.in

于 2016-04-18T09:22:10.347 回答