internal void AddDependentProperty(object val, Enum parent)
        {
            var cache = cacheResolver.GetPropertyCache(parent);

            var dependencyParser = new DynamicPropertyTypeParser(parent, cache, val);
            var parameter        = dependencyParser.GetParameter(nameResolver);

            container.AddParameter(parameter);
        }
        internal void AddDependentProperty(object val, Enum parent)
        {
            var cache = cacheResolver.GetPropertyCache(parent);

            var dependencyParser = new DynamicPropertyTypeParser(parent, cache, val);
            var parameter        = dependencyParser.GetParameter(nameResolver);

            //If there is already an existing value (i.e. from the parameter being specified explicitly) don't set the dependency
            if (!ParameterExists(parameter))
            {
                container.AddParameter(parameter);
            }
        }