public static string GetModifiers(Logic.Models.TypeModel model)
        {
            string type = null;

            type += model.Accessibility == Accessibility.Default ? string.Empty : model.Accessibility.ToString().ToLower() + " ";
            type += model.IsSealed == IsSealed.Sealed ? IsSealed.Sealed.ToString().ToLower() + " " : string.Empty;
            type += model.IsAbstract == IsAbstract.Abstract ? IsAbstract.Abstract.ToString().ToLower() + " " : string.Empty;
            type += model.IsStatic == IsStatic.Static ? IsStatic.Static.ToString().ToLower() + " " : string.Empty;
            return(type);
        }
Esempio n. 2
0
 public FieldModel(FieldBase baseProperty)
 {
     Name = baseProperty.Name;
     Type = TypeModel.GetOrAdd(baseProperty.Type);
 }
Esempio n. 3
0
 public FieldModel(string name, TypeModel propertyType)
 {
     Name = name;
     Type = propertyType;
 }
Esempio n. 4
0
 public PropertyModel(PropertyBase baseProperty)
 {
     Name = baseProperty.Name;
     Type = TypeModel.GetOrAdd(baseProperty.Type);
 }
 public ParameterModel(ParameterBase baseElement)
 {
     Name = baseElement.Name;
     Type = TypeModel.GetOrAdd(baseElement.Type);
 }
 public ParameterModel(string name, TypeModel typeReader)
 {
     Name = name;
     Type = typeReader;
 }
 public ImplementedInterfaceTreeItem(Logic.Models.TypeModel TypeModel)
     : base(GetModifiers(TypeModel) + TypeModel.Name)
 {
     _TypeModel = TypeModel;
 }
 public DerivedTypeTreeItem(Logic.Models.TypeModel TypeModel)
     : base(GetModifiers(TypeModel) + TypeModel.Name)
 {
     _TypeModel = TypeModel;
 }