Exemplo n.º 1
0
        private IList <DesignTimePropertyInfo> GetProperties(string argumentName)
        {
            IList <DesignTimePropertyInfo> properties = new List <DesignTimePropertyInfo>();

            if (argumentName != null)
            {
                IDictionaryService dictionaryService = (IDictionaryService)GetService <IDictionaryService>();
                Type runtimeConfgurationType         = (Type)dictionaryService.GetValue(argumentName);
                if (runtimeConfgurationType != null)
                {
                    List <string> excludePropertiesList = ConvertExcludePropertiesList();
                    foreach (PropertyInfo propertyInfo in runtimeConfgurationType.GetProperties())
                    {
                        if (IncludeProperty(propertyInfo, excludePropertiesList))
                        {
                            DesignTimePropertyInfo property = new DesignTimePropertyInfo(propertyInfo, IncludePropertyAction.Include);
                            properties.Add(property);
                        }
                    }
                }
            }
            return(properties);
        }
Exemplo n.º 2
0
 public SimpleDesignTimePropertyInfo(DesignTimePropertyInfo designTimePropertyInfo)
 {
     this.designTimePropertyInfo = designTimePropertyInfo;
 }