コード例 #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);
 }
コード例 #2
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;
     }
 }
コード例 #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;
     }
 }
コード例 #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);
            }
        }
コード例 #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);
 }
コード例 #6
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);
 }
コード例 #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);
 }
コード例 #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);
 }