K
KyleK
I am having problems using the Enum.ToObject method.
this.ToFile = Enum.ToObject(typeof(LogLevel),(int)(row[TOFILE_FIELDNAME]));
does not work. it gives me
"<myfile>.cs(146): Cannot implicitly convert type 'object' to
'DistGISLogging.LogLevel'
on compile. i thought the whole point of the ToObject method was to
create an object of that type of enumeration?
this.ToFile is defined
LogLevel ToFile{ get{}set{} }
any help appreciated!
-k
this.ToFile = Enum.ToObject(typeof(LogLevel),(int)(row[TOFILE_FIELDNAME]));
does not work. it gives me
"<myfile>.cs(146): Cannot implicitly convert type 'object' to
'DistGISLogging.LogLevel'
on compile. i thought the whole point of the ToObject method was to
create an object of that type of enumeration?
this.ToFile is defined
LogLevel ToFile{ get{}set{} }
any help appreciated!
-k