//--------------------------------------------------------------------------------------------------------- /// <summary> /// Конструктор инициализирует объект класса указанными параметрами /// </summary> /// <param name="property_info">Метаданные свойства</param> /// <param name="property_desc">Описание свойства</param> /// <param name="property_type">Допустимый тип свойства</param> //--------------------------------------------------------------------------------------------------------- public CPropertyModelBase(PropertyInfo property_info, CPropertyDesc property_desc, TPropertyType property_type) { mInfo = property_info; mPropertyType = property_type; ApplyInfoFromDecs(property_desc); // Имеет преимущество ApplyInfoFromAttributes(); }
//--------------------------------------------------------------------------------------------------------- /// <summary> /// Конструктор инициализирует объект класса указанными параметрами /// </summary> /// <param name="property_info">Метаданные свойства</param> /// <param name="property_type">Допустимый тип свойства</param> //--------------------------------------------------------------------------------------------------------- public CPropertyModelBase(PropertyInfo property_info, TPropertyType property_type) { mInfo = property_info; mPropertyType = property_type; ApplyInfoFromAttributes(); }
/// <summary> /// Initializes a new instance of the <see cref="Result" /> struct. /// </summary> /// <param name="property">Property of processed metric.</param> public Result(TPropertyType property) { Property = property; Occurrences = null; }
/// <summary> /// Initializes a new instance of the <see cref="Result" /> struct. /// </summary> /// <param name="property">Property of processed metric.</param> /// <param name="occurrences">Occurrences of a property.</param> public Result(TPropertyType property, IEnumerable <AstNode> occurrences) { Property = property; Occurrences = occurrences; }
//--------------------------------------------------------------------------------------------------------- /// <summary> /// Конструктор инициализирует объект класса указанными параметрами /// </summary> /// <param name="property_info">Метаданные свойства</param> /// <param name="property_type">Допустимый тип свойства</param> //--------------------------------------------------------------------------------------------------------- public PropertyModel(PropertyInfo property_info, TPropertyType property_type) : base(property_info, property_type) { }
//--------------------------------------------------------------------------------------------------------- /// <summary> /// Конструктор инициализирует объект класса указанными параметрами /// </summary> /// <param name="property_info">Метаданные свойства</param> /// <param name="property_desc">Описание свойства</param> /// <param name="property_type">Допустимый тип свойства</param> //--------------------------------------------------------------------------------------------------------- public PropertyModel(PropertyInfo property_info, CPropertyDesc property_desc, TPropertyType property_type) : base(property_info, property_desc, property_type) { }