Question by
Tigermisu · Feb 23, 2016 at 02:32 PM ·
c#collections
List does not contain a definition for Except error.
Hello! I'm getting the following error:
'List' does not contain a definition for 'Except' and no extension method 'Except' accepting a first argument of type 'List' could be found (are you missing a using directive or an assembly reference?)
These are the lines of code I'm trying to use:
List<GameObject> allPoints = new List<GameObject>(GameObject.FindGameObjectsWithTag("MountPoint"));
otherMountingPoints = allPoints.Except(thisMountingPoints).ToList();
I got the following imports:
using UnityEngine;
using UnityEngine.UI;
using System.Collections.Generic;
Does anyone have an idea on why the method Except can't be found? I've looked around the web and couldn't find anything. Thank you.
Comment
Answer by NoseKills · Feb 23, 2016 at 05:13 PM
Looks like it just has never been added to Unity's .NET even since
Your answer
![](https://koobas.hobune.stream/wayback/20220612065258im_/https://answers.unity.com/themes/thub/images/avi.jpg)