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);
        }
예제 #2
0
 public FieldModel(FieldBase baseProperty)
 {
     Name = baseProperty.Name;
     Type = TypeModel.GetOrAdd(baseProperty.Type);
 }
예제 #3
0
 public FieldModel(string name, TypeModel propertyType)
 {
     Name = name;
     Type = propertyType;
 }
예제 #4
0
 public PropertyModel(PropertyBase baseProperty)
 {
     Name = baseProperty.Name;
     Type = TypeModel.GetOrAdd(baseProperty.Type);
 }
예제 #5
0
 public ParameterModel(ParameterBase baseElement)
 {
     Name = baseElement.Name;
     Type = TypeModel.GetOrAdd(baseElement.Type);
 }
예제 #6
0
 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;
 }