/// <summary> /// Returns the <see cref="EvaluationContext"/> described by the element, if the element is itself a model. /// </summary> /// <returns></returns> internal EvaluationContext GetSelfModelEvaluationContext() { return(obj.Interfaces <Model>() .Select(i => i.DefaultEvaluationContext) .FirstOrDefault(i => i != null)); }