Example #1
0
        internal virtual object Coerce(object a_object)
        {
            IReflectClass claxx = null;

            if (a_object != null)
            {
                if (a_object is IReflectClass)
                {
                    claxx = (IReflectClass)a_object;
                }
                else
                {
                    claxx = i_trans.Reflector().ForObject(a_object);
                }
            }
            else
            {
                // TODO: Review this line for NullableArrayHandling
                return(a_object);
            }
            if (_fieldMetadata == null)
            {
                return(a_object);
            }
            return(_fieldMetadata.Coerce(claxx, a_object));
        }