public MemberReferenceExpression CreateMappedReference(LexicalInfo nodeLexicalInfo, Field field, IType type) { if (type.GenericInfo != null && type.ConstructedInfo == null) { type = TypeSystemServices.SelfMapGenericType(type); } var entity = type.ConstructedInfo != null ? (IField)type.ConstructedInfo.Map((IField)field.Entity) : (IField)field.Entity; return(CreateReference(entity)); }