Example #1
0
        /*----------------------------------------------------------------------------------------*/
        #region Public Methods
        /// <summary>
        /// Gets the value of the field associated with the injector.
        /// </summary>
        /// <param name="target">The instance on which the field should be read.</param>
        /// <returns>The value stored in the field.</returns>
        public object Get(object target)
        {
            if (_getter == null)
            {
                _getter = DynamicMethodFactory.CreateGetter(Member);
            }

            return(_getter(target));
        }