i have a class and have declared an enum in it like
public enum file_type {readonly, readwrite, system}
Now based on a condition i want to set the enum file_type to a value something like
if("file is markedreadonly")
file_type = readonly;
is it possible to do so in c#