private static IDictionary<string, object> FetchHtmlAttributes(HtmlPropertiesAttribute propertyCollection)
		{
			var collection = new Dictionary<string, object>();
			var properties = propertyCollection.GetType().GetProperties();

			foreach (var property in properties.Where(p => !collection.ContainsKey(p.Name) && 
			                                               !p.Name.Equals("TypeId", StringComparison.CurrentCultureIgnoreCase)))
			{
				var propertyValue = property.GetValue(propertyCollection, null);

				if (propertyValue != null) collection.Add(property.Name, propertyValue);
			}

			return collection;
		}
        private static IDictionary <string, object> FetchHtmlAttributes(HtmlPropertiesAttribute propertyCollection)
        {
            var collection = new Dictionary <string, object>();
            var properties = propertyCollection.GetType().GetProperties();

            foreach (var property in properties.Where(p => !collection.ContainsKey(p.Name) &&
                                                      !p.Name.Equals("TypeId", StringComparison.CurrentCultureIgnoreCase)))
            {
                var propertyValue = property.GetValue(propertyCollection, null);

                if (propertyValue != null)
                {
                    collection.Add(property.Name, propertyValue);
                }
            }

            return(collection);
        }