Exemplo n.º 1
0
 /// <summary>
 /// Gets the key that will be used to find the substitute value.
 /// </summary>
 /// <param name="parameterName">The name of the parameter.</param>
 public string GetKey(TagParameter parameter)
 {
     if (_argumentLookup.TryGetValue(parameter, out IArgument argument) && argument != null)
     {
         return(argument.GetKey());
     }
     return(null);
 }
 /// <summary>
 /// Gets the key that will be used to find the substitute value.
 /// </summary>
 /// <param name="parameterName">The name of the parameter.</param>
 public string GetKey(TagParameter parameter)
 {
     string key;
     if (_argumentLookup.TryGetValue(parameter, out key))
     {
         return key;
     }
     else
     {
         return null;
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Gets the key that will be used to find the substitute value.
 /// </summary>
 /// <param name="parameterName">The name of the parameter.</param>
 public string GetKey(TagParameter parameter)
 {
     IArgument argument;
     if (_argumentLookup.TryGetValue(parameter, out argument) && argument != null)
     {
         return argument.GetKey();
     }
     else
     {
         return null;
     }
 }
Exemplo n.º 4
0
        /// <summary>
        /// Gets the key that will be used to find the substitute value.
        /// </summary>
        /// <param name="parameterName">The name of the parameter.</param>
        public string GetKey(TagParameter parameter)
        {
            string key;

            if (_argumentLookup.TryGetValue(parameter, out key))
            {
                return(key);
            }
            else
            {
                return(null);
            }
        }
Exemplo n.º 5
0
 /// <summary>
 /// Associates the given parameter to the key placeholder.
 /// </summary>
 /// <param name="parameter">The parameter to associate the key with.</param>
 /// <param name="key">The argument.</param>
 /// <remarks>If the key is null, the default value of the parameter will be used.</remarks>
 public void AddArgument(TagParameter parameter, IArgument argument)
 {
     _argumentLookup.Add(parameter, argument);
 }
 /// <summary>
 /// Associates the given parameter to the key placeholder.
 /// </summary>
 /// <param name="parameter">The parameter to associate the key with.</param>
 /// <param name="key">The key placeholder used as the argument.</param>
 /// <remarks>If the key is null, the default value of the parameter will be used.</remarks>
 public void AddArgument(TagParameter parameter, string key)
 {
     _argumentLookup.Add(parameter, key);
 }
Exemplo n.º 7
0
 /// <summary>
 /// Associates the given parameter to the key placeholder.
 /// </summary>
 /// <param name="parameter">The parameter to associate the key with.</param>
 /// <param name="key">The argument.</param>
 /// <remarks>If the key is null, the default value of the parameter will be used.</remarks>
 public void AddArgument(TagParameter parameter, IArgument argument)
 {
     _argumentLookup.Add(parameter, argument);
 }
Exemplo n.º 8
0
 /// <summary>
 /// Associates the given parameter to the key placeholder.
 /// </summary>
 /// <param name="parameter">The parameter to associate the key with.</param>
 /// <param name="key">The key placeholder used as the argument.</param>
 /// <remarks>If the key is null, the default value of the parameter will be used.</remarks>
 public void AddArgument(TagParameter parameter, string key)
 {
     _argumentLookup.Add(parameter, key);
 }