Exemplo n.º 1
0
        private bool TryGetProperty(RelationClassInfo relationClassInfo, object result, out object value)
        {
            var someValue = resultClass.GetProperty(relationClassInfo.ClassType).GetValue(result);

            if (someValue != null)
            {
                value = someValue;
                return(true);
            }

            value = null;
            return(false);
        }
Exemplo n.º 2
0
        private bool TryGetProperty(RelationClassInfo relationClassInfo, object result, out object value)
        {
            var someValue = resultClass.GetProperty(relationClassInfo.ClassType).GetValue(result);

            if (someValue != null)
            {
                value = someValue;
                return true;
            }

            value = null;
            return false;
        }