[Mono-list] error CS0150: A constant value is expected
red forks
redforks at gmail.com
Sun Aug 7 22:15:36 EDT 2005
The code is:
const TypeByte EmptyTypeByte = TypeByte.Min - 1;
TypeBye is an enum, TypeByte is defined:
internal enum TypeByte : byte
{
Min = Byte,
Byte = 1,
SByte = 2,
Int16 = 3,
UInt16 = 4,
Int32 = 5,
UInt32 = 6,
Int64 = 7,
UInt64 = 8,
Single = 9,
Double = 10,
Decimal = 11,
DateTime = 12,
Boolean = 13,
Char = 14,
String = 15,
Array = 16,
BeginOfList = 17,
ListSeperator = 18,
EndOfList = 19,
DBNull = 20,
Null = 21, // null
ByteArray = 22, // byte[]
Guid = 23,
TinyString = 24,
ShortString = 25,
BoolTrue = 26,
BoolFalse = 27,
Max = BoolFalse
}
Don't why? Its ok under Microsoft .Net. Does enum is not constant?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20050808/e278a9b4/attachment.html
More information about the Mono-list
mailing list