Esempio n. 1
0
        internal Constructor CreateConstructor(string htmlConstructor)
        {
            var allPropertyValues = TextUtil.GetPureValue(htmlConstructor);
            var splittedValues    = allPropertyValues.Split(' ');

            var constructorName  = ProcessConstructorName(splittedValues.First());
            var descriptionParts = new List <string>();

            for (var i = 1; i < splittedValues.Length; i++)
            {
                descriptionParts.Add(splittedValues[i]);
            }
            var description = string.Join(" ", descriptionParts.ToArray());

            return(new Constructor(constructorName, description));
        }
Esempio n. 2
0
        public Property CreateProperty(string htmlProperty)
        {
            var allPropertyValues = TextUtil.GetPureValue(htmlProperty);
            var splittedValues    = allPropertyValues.Split(' ');

            var propertyName     = splittedValues.First();
            var descriptionParts = new List <string>();

            for (var i = 1; i < splittedValues.Length; i++)
            {
                descriptionParts.Add(splittedValues[i]);
            }
            var description = string.Join(" ", descriptionParts.ToArray());
            var isPublic    = htmlProperty.Contains(PublicPropertyPhrase);

            return(new Property(propertyName, description, isPublic));
        }