Beispiel #1
0
        public ModelInfo(Type type)
        {
            ModelName = type.FullName.Split('.').ToList().LastOrDefault();;

            InheritanceString = Annotations.ExtractCustomSpindllAttributes("SpindllInheritance", type.CustomAttributes.ToList()).FirstOrDefault();
            CustomAnnotations = Annotations.ExtractCustomSpindllAttributes("SpindllProp", type.CustomAttributes.ToList());

            var properties = type.GetProperties().ToList();

            properties.ForEach(p => {
                var prop = new PropertyInfo(p);
                Properties.Add(prop);
            });
        }