- Home /
BindingList could not be found?
I have checked the unity's mono support and BindingList is part of the .NET 2.0. I did set my api compatibility to .NET 2.0. But when I include the BindingList into my script, I get an error saying:
error CS0246: The type or namespace name `BindingList`1' could not be found.
Are you missing a using directive or an assembly reference?
Why am I getting this error? Can I use the BindingList class in unity?
Comment
Best Answer
Answer by GuyTidhar · Mar 18, 2013 at 12:29 PM
If you are using C#, add the following import at the top of the file you wish to use the BindingList:
using System.ComponentModel;
using Component = UnityEngine.Component;
Answer by paulaceccon · Mar 18, 2013 at 12:31 PM
Have you imported the package, putting at the top using System.ComponentModel
??
You have to do this, to use the BindingList.