尝试使用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;
}
}
这肯定是一个缺失的参考资料,但我不知道具体是什么。
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