Exemple #1
0
        protected Parameter(IParameterDescription description)
        {
            Name          = description.Name;
            PositionIndex = description.PositionIndex;

            Synonyms = new HashSet <string>(description.Synonyms, StringComparer.OrdinalIgnoreCase);

            Description        = description.Description;
            AllowsDefaultValue = description.AllowsDefaultValue;
            DefaultValue       = description.DefaultValue;
            IsCollection       = description.IsCollection;
        }
Exemple #2
0
 private static void ThrowIfIncompatible(IParameterDescription expectedParameter, ParameterDescription actualParameter)
 {
     ThrowIfIncompatible(expectedParameter.ParameterType, actualParameter.ParameterType);
 }