Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.Net 2.0 Support? #2

Open
GoogleCodeExporter opened this issue Jul 27, 2015 · 4 comments
Open

.Net 2.0 Support? #2

GoogleCodeExporter opened this issue Jul 27, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

Because of my upstream game engine only supports .net 2.0, is there any plan to 
provide support for it?, as in jitter i can see it heavily using lingq.

Original issue reported on code.google.com by [email protected] on 24 Jan 2012 at 8:37

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

Jitter isn't using linq at all. You can remove the "using linq" stuff from the 
beginning of every file (its just IslandManager.cs).

Also compile with the "NET_20" flag so Jitter uses it own "HashSet" 
implementation which is missing in 2.0.

Original comment by [email protected] on 30 Jan 2012 at 1:46

@GoogleCodeExporter
Copy link
Author

To allow the compilation with .net 2.0 you have to add to your World.cs 
something along the lines of:

#if NET_20
        public delegate void Action<in T1, in T2>(
        T1 arg1,
        T2 arg2
    );
#endif

Since .net 2.0 just provides a delegate Action<T> with a single generic 
parameter. It would be nice if you could add this to jitter by default.

Original comment by [email protected] on 7 Jul 2012 at 12:26

@GoogleCodeExporter
Copy link
Author

Hmm it may be even better to use something like:
#if NET_20
namespace System {

    public delegate void Action<in T1, in T2>(
        T1 arg1,
        T2 arg2
    );
}
#endif

This produces a warning if a project referencing jitter doesn't use .net 2.0, 
although that shouldn't matter that much.

Original comment by [email protected] on 7 Jul 2012 at 12:42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant