public override IList <TypeViewModelAbstract> CreateChildren() { List <TypeViewModelAbstract> typeViewList = new List <TypeViewModelAbstract>(); typeViewList.AddRange(children.Select(elem => ModelViewTypeFactory.CreateTypeViewClass(elem))); return(typeViewList); }
public EventViewModel(EventMetadata metadata) : base() { Type type = ModelViewTypeFactory.GetFromFullName(metadata.TypeMetadata.FullTypeName); typeMetadata = new TypeMetadata(type); mName = metadata.Name; if (metadata.TypeMetadata != null) { mTypeName = metadata.TypeMetadata.TypeName; } }
public override IList <TypeViewModelAbstract> CreateChildren() { List <TypeViewModelAbstract> typeViewList = new List <TypeViewModelAbstract>(); typeViewList.AddRange(typeMetadata.Constructors.Select(elem => ModelViewTypeFactory.CreateTypeViewClass(elem))); typeViewList.AddRange(typeMetadata.Methods.Select(elem => ModelViewTypeFactory.CreateTypeViewClass(elem))); typeViewList.AddRange(typeMetadata.Properties.Select(elem => ModelViewTypeFactory.CreateTypeViewClass(elem))); typeViewList.AddRange(typeMetadata.Indexers.Select(elem => ModelViewTypeFactory.CreateTypeViewClass(elem))); typeViewList.AddRange(typeMetadata.Fields.Select(elem => ModelViewTypeFactory.CreateTypeViewClass(elem))); typeViewList.AddRange(typeMetadata.NestedTypes.Select(elem => ModelViewTypeFactory.CreateTypeViewClass(elem))); typeViewList.AddRange(typeMetadata.Events.Select(elem => ModelViewTypeFactory.CreateTypeViewClass(elem))); return(typeViewList); }
public FieldViewModel(FieldMetadata metadata) : base() { if (metadata.TypeMetadata == null) { Type type = ModelViewTypeFactory.GetFromFullName(metadata.TypeMetadata.FullTypeName); typeMetadata = new TypeMetadata(type); } else { typeMetadata = metadata.TypeMetadata; } Name = metadata.Name; TypeName = metadata.TypeMetadata.TypeName; }