コード例 #1
0
        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;
 }
コード例 #7
0
 public ImplementedInterfaceTreeItem(Logic.Models.TypeModel TypeModel)
     : base(GetModifiers(TypeModel) + TypeModel.Name)
 {
     _TypeModel = TypeModel;
 }
コード例 #8
0
 public DerivedTypeTreeItem(Logic.Models.TypeModel TypeModel)
     : base(GetModifiers(TypeModel) + TypeModel.Name)
 {
     _TypeModel = TypeModel;
 }