示例#1
0
 public void Run()
 {
     foreach (string key in _commands.Keys)
     {
         if (!string.Equals(key, NoKey, StringComparison.InvariantCultureIgnoreCase) && HasKey(key))
         {
             _commands.Create(key).Execute();
             return;
         }
     }
     if (_commands.IsRegistered(NoKey))
     {
         _commands.Create(NoKey).Execute();
     }
 }
示例#2
0
        /// <summary>
        /// Determines whether <paramref name="converterType"/> can be resolved by current resolver.
        /// </summary>
        /// <param name="converterType">SP field converter type to check.</param>
        /// <returns>true if can resovle the specified <paramref name="converterType"/>.</returns>
        public bool CanResolve(Type converterType)
        {
            Guard.CheckNotNull(nameof(converterType), converterType);

            return(_fieldConvertersBuilders.IsRegistered(converterType));
        }