Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }