/// <summary>
        /// Adds a converter for a particular member.
        /// </summary>
        /// <param name="methodName">
        /// Specifies the name of the member.
        /// </param>
        /// <param name="converter">
        /// Specifies the converter
        /// </param>
        protected void AddConverter(string methodName, MemberExpressionConverter converter)
        {
            Guard.AgainstArgumentNull(methodName, "methodName");
            Guard.AgainstArgumentNull(converter, "converter");

            _memberAccessConverters.AddOrUpdate(methodName, converter, (m, c) => converter);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Adds a converter for a particular member.
        /// </summary>
        /// <param name="methodName">
        /// Specifies the name of the member.
        /// </param>
        /// <param name="converter">
        /// Specifies the converter
        /// </param>
        protected void AddConverter(string methodName, MemberExpressionConverter converter)
        {
            Guard.AgainstArgumentNull(methodName, "methodName");
            Guard.AgainstArgumentNull(converter, "converter");

            _memberAccessConverters.AddOrUpdate(methodName, converter, (m, c) => converter);
        }