示例#1
0
        public static IEnumerable <IParameterLink> ParameterLinks(this ParameterSettings parameterSettings, Type type, string propertyName)
        {
            if (parameterSettings == null || parameterSettings.ParameterMaps == null || type == null || string.IsNullOrWhiteSpace(propertyName))
            {
                return(null);
            }

            ParameterMap parameterMap = parameterSettings.ParameterMap(type);

            if (parameterMap == null)
            {
                return(null);
            }

            return(parameterMap.ParameterLinks(propertyName));
        }