예제 #1
0
        public override IList <TypeViewModelAbstract> CreateChildren()
        {
            List <TypeViewModelAbstract> typeViewList = new List <TypeViewModelAbstract>();

            typeViewList.AddRange(children.Select(elem => ModelViewTypeFactory.CreateTypeViewClass(elem)));

            return(typeViewList);
        }
예제 #2
0
        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;
            }
        }
예제 #3
0
        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);
        }
예제 #4
0
        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;
        }