Ejemplo n.º 1
0
        private static PropertyValueGenerator GetGenerator(string Name)
        {
            PropertyValueGenerator Generator = PropertyValueGenerator.GetGenerator(Name);

            if (Generator == null)
            {
                throw new KeyNotFoundException("Unable to find a PropertyValueGenerator named '" + Name + "'.");
            }
            return(Generator);
        }
Ejemplo n.º 2
0
 private object[] GetArguments(object Instance, PropertyInfo Property)
 {
     if (_ValueGenerator == null)
     {
         _ValueGenerator = PropertyValueGenerator.GetGenerator("Identity");
     }
     if (_ValueGenerator is IdentityValueGenerator)
     {
         return(_Arguments);
     }
     else
     {
         return(_Arguments.Select(c => ((ComponentArgument)c).GetValue(Instance, Property)).ToArray());
     }
 }