S
shapper
Hello,
I have the following object:
// Asset
public class Asset {
public Guid Id { get; set; }
public String Content { get; set; }
public DateTime? Created { get; set; }
public Boolean? Locked { get; set; }
public String Name { get; set; }
public Priority Priority { get; set; }
public DateTime? Updated { get; set; }
} // Asset
Priority is an enumeration with High, Normal and Low values.
It is only used by Asset.
Should I create an enumeration named Priority inside Asset class or
create an enumeration outside Asset class but inside the same
namespace named AssetPriority.
I always have this dilema ...
What would you suggest me?
Thanks,
Miguel
I have the following object:
// Asset
public class Asset {
public Guid Id { get; set; }
public String Content { get; set; }
public DateTime? Created { get; set; }
public Boolean? Locked { get; set; }
public String Name { get; set; }
public Priority Priority { get; set; }
public DateTime? Updated { get; set; }
} // Asset
Priority is an enumeration with High, Normal and Low values.
It is only used by Asset.
Should I create an enumeration named Priority inside Asset class or
create an enumeration outside Asset class but inside the same
namespace named AssetPriority.
I always have this dilema ...
What would you suggest me?
Thanks,
Miguel