KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
i want to have some class like this: [XmlRoot(ElementName = typeof(T).Name + "List")] public class EntityListBase<T> where T : EntityBase, new() { [XmlElement(typeof(T).Name)] public List<T> Items { get; set; } } but typeof(T) cannot be attribute argument. what can i do instead?
Tags (comma-separated)
Save Edits
Cancel