Пример #1
0
        public ResolvedTraitSet SetTraitParameterValue(ResolveOptions resOpt, CdmTraitDefinition toTrait, string paramName, dynamic value)
        {
            ResolvedTraitSet altered = this.ShallowCopyWithException(toTrait);

            altered.Get(toTrait).ParameterValues.SetParameterValue(this.ResOpt, paramName, value);
            return(altered);
        }
Пример #2
0
        public ResolvedTraitSet SetTraitParameterValue(ResolveOptions resOpt, CdmTraitDefinition toTrait, string paramName, dynamic value)
        {
            ResolvedTraitSet altered = this.ShallowCopyWithException(toTrait);
            var currTrait            = altered.Get(toTrait)?.ParameterValues;

            if (currTrait != null)
            {
                currTrait.SetParameterValue(this.ResOpt, paramName, value);
            }
            return(altered);
        }