Hello
I have
public enum EntryType
{
File,
Directory,
}
public class Entry
{
public string Name
{
get;
set;
}
public EntryType EntryType
{
get;
set;
}
public long Size
{
get;
set;
}
public DateTime Created
{
get;
set;
}
}
//Operation
foreach (Row row in rows)
{
// Row contains "EntryType" = EntryType.Directory
var entry = row.ToObject<Entry>();
// After ToObject<Entry> EntryType is EntryType.File
which is wrong
if (entry.EntryType == EntryType.File)
{
yield return row;
}
}
It seems that ToObject in combination with enum used the default enum
type which is not correct.
Any suggestions?
--
You received this message because you are subscribed to the Google Groups
"Rhino Tools Dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rhino-tools-dev?hl=en.