单声道:无法找到类型或命名空间名称'Kind'
问题描述:
试图使用月光码我错误地发生了错误Kind
例如,在单声道:无法找到类型或命名空间名称'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