Ich habe diese filetypeenum:Meine enums sollten als int akzeptiert werden?
public enum FileType : int
{
jpeg = 0,
png = 1,
}
warum tut es say == cant be applied to int type and FileType
wenn ich versuche, zu vergleichen:
int type = 1;
if(type == FileType.jpeg)
??
Casting works ofc ... oh well: D – Jason94