Would something like this work?
public class AnimalType
{
public AnimalType()
{
Dog = "Dog string";
Cat = "Cat String";
}
public string Dog {get; set;}
public string Cat {get; set;}
}
public class SomeViewModel
{
public SomeViewModel()
{
AnimalType = new AnimalType();
}
public string ViewName {get;set;}
public AnimalType AnimalType {get; set;}
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…