GetArgumentKeyNames() public méthode

public GetArgumentKeyNames ( ) : object>.Dictionary
Résultat object>.Dictionary
Exemple #1
0
 private Dictionary <string, object> GetArguments(Scope scope, Scope context)
 {
     if (_definition.IsSetter)
     {
         return(_arguments.GetArgumentKeyNames());
     }
     else
     {
         return(_arguments.GetArguments(scope, context));
     }
 }
Exemple #2
0
 void IGenerator.GetText(Scope scope, TextWriter writer, Scope context)
 {
     Dictionary<string, object> arguments;
     if (_definition.IsSetter)
     {
         arguments = _arguments.GetArgumentKeyNames();   
     }
     else
     {
         arguments = _arguments.GetArguments(scope, context);
     }            
     _definition.GetText(writer, arguments, context);
 }
        void IGenerator.GetText(TextWriter writer, Scope scope, Scope context, Action <Substitution> postProcessor)
        {
            Dictionary <string, object> arguments;

            if (_definition.IsSetter)
            {
                arguments = _arguments.GetArgumentKeyNames();
            }
            else
            {
                arguments = _arguments.GetArguments(scope, context);
            }
            _definition.GetText(writer, arguments, context);
        }
Exemple #4
0
        void IGenerator.GetText(Scope scope, TextWriter writer, Scope context)
        {
            Dictionary <string, object> arguments;

            if (_definition.IsSetter)
            {
                arguments = _arguments.GetArgumentKeyNames();
            }
            else if (_definition is CommandTagDefinition)
            {
                arguments = new Dictionary <string, object>();
                foreach (var pair in _arguments.LookupDictionary)
                {
                    arguments.Add(pair.Key.Name, pair.Value);
                }
            }
            else
            {
                arguments = _arguments.GetArguments(scope, context);
            }

            _definition.GetText(writer, arguments, context);
        }