Esempio n. 1
0
        public override PropertyInfo[] GetProperties(BindingFlags bindingAttr)
        {
            List <PropertyInfo> properties = new List <PropertyInfo>();

            foreach (var strategy in _scope.GetAllStrategies())
            {
                var names = strategy.ExportNames;

                if (names != null)
                {
                    foreach (var name in names)
                    {
                        if (name.EndsWith("ViewModel"))
                        {
                            properties.Add(new ViewModelLocatorPropertyInfo(_scope, name, strategy.ActivationType));
                        }
                    }
                }
            }

            return(properties.ToArray());
        }