Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Arild Fines

C# changes

This topic is 5731 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

From http://zdnet.com.com/2100-1104-965046.html:
That release of Visual C# will include four new features: support for "generics," which is a form of a C++ template that can help C# developers build software more quickly; support for "iterators," which help developers create new code; anonymous methods, which ease development of what’s known as "event-driven" code; and support for "partial types," which make it easier to use C# for building large projects.

God puts an apple tree in the middle of the Garden of Eden and says, do what you like guys, oh, but don''t eat the apple. Surprise surprise, they eat it and he leaps out from behind a bush shouting "Gotcha." It wouldn''t have made any difference if they hadn''t eaten it... because if you''re dealing with somebody who has the sort of mentality which likes leaving hats on the pavement with bricks under them you know perfectly well they won''t give up. They''ll get you in the end. -- Douglas Adams

Share this post


Link to post
Share on other sites
Advertisement
Interesting. Signals and slots any time soon, or are we confined to using the .Net framework messaging architecture only?

I guess it''s time to start learning the thing. I still won''t use it until Mono is operational about par, but I''ve got to look to the future...

Share this post


Link to post
Share on other sites
I think they''re releasing this a bit early. I mean Visual Studio.NET was only released this year, and they''re going to release a new one only a year after? I mean, the features are nice and all that, but it''s times like this I wish I had a Universal MSDN subscription and didn''t have to buy new IDEs whenever they came out..

Oh, and we thought we had it bad with the ads:



There was another one there that actually hid some of the text so I had to cut and paste it into notepad just so could see it...

If I had my way, I''d have all of you shot!


codeka.com - Just click it.

Share this post


Link to post
Share on other sites
The only problem about the genarics and other support is that it won''t be around until late 2003? I think that is when Yukon is going to be released... So learning C# now might help you but if you want to use generics it isn''t available yet... As for iterators they are avalible now, and so is the partial types (although this is "unsafe" code which means the type checker cannot find problems with it...) Anonymous methods? I really don''t know I havent heard about it so I can''t comment on it...

Share this post


Link to post
Share on other sites
quote:
Original post by djkno3
...learning C# now might help you but if you want to use generics it isn''t available yet...

I already have generics in C++, which I use for my production work right now (alongside a few scripting languages). I don''t need generics in C# now, though others may. I only need it when Mono is stable and usable.

quote:
Anonymous methods? I really don''t know I havent heard about it so I can''t comment on it...

Very very nice Java feature:

  
Boolean SomeClass::someMethodThatTakesEventHandler(
ret_type eventHandler( param ) { /* code */ }
);

Share this post


Link to post
Share on other sites
quote:
Original post by Dean Harding
I think they''re releasing this a bit early.

I don''t think we will be seeing this for at least a year yet. See http://msdn.microsoft.com/vstudio/productinfo/roadmap.asp. These changes are scheduled for "Visual Studio for Yukon" - they won''t be in Everett(1.1).

Btw - does anyone have an idea what they mean by "partial types"?



God puts an apple tree in the middle of the Garden of Eden and says, do what you like guys, oh, but don''t eat the apple. Surprise surprise, they eat it and he leaps out from behind a bush shouting "Gotcha." It wouldn''t have made any difference if they hadn''t eaten it... because if you''re dealing with somebody who has the sort of mentality which likes leaving hats on the pavement with bricks under them you know perfectly well they won''t give up. They''ll get you in the end. -- Douglas Adams

Share this post


Link to post
Share on other sites
partial types has to deal with partially accepted code. Which means that the security access of the program running isn''t really trusted. So if you have a program running from a web application and it trys to call a method from a shared libary unless the library has a specification in it to allow "partial typing" then the program cannot call the method. This is how MS is trying to stop stuff like internet worms/viruses and stuff like that because if the app runs in an "untrusted" context it can''t have access to the normal shared libraries (dll''s). If the library allows access to partial types though you are kinda screwed. By default shared libries have to be "Strongly typed" which means they have the company that made them and such in the properties menu and the system admin can also disallow any "strongly typed" librarys from being shared if they do not have a trusted digital signature (eg from verisign)

Share this post


Link to post
Share on other sites
I don''t think you need the universal subscription to get the new IDE - I think the next step down gets you that. Doesn''t Universal include all the stuff, like office-dev, BizTalk, etc... or is that something else where you get *everything*.

Share this post


Link to post
Share on other sites
Universal is the "Enterprise archetect" (sp) version (that''s what I call it because that''s what version of VS .NET you get with it and yes it has pretty much everything you ever wanted from MS. The next step down is "Enterprise" and it gives you the Enterprise edition of VS.NET and the lowest you can go is "Professional" to get a copy of VS.NET and of course it gives you the professional version of VS .NET. Prices are horrible though. $2799 for universal, $2199 Enterprise, $1199 for professional (USD) but you can usually find them a bit cheaper if you look around on the net... seeing as there are MSDN suscription resellers around. Also if you have a licenced copy of any of the VS products from 97 on you can qualify for a discount.

Share this post


Link to post
Share on other sites
What about this new version? I read someone here saying it''d be available quite cheap to existing users, is that right? Or is it just the regular discounted price? I''m really interested in this "98% ISO compliant C++ compiler" that supposed to be in the next version...

If I had my way, I''d have all of you shot!


codeka.com - Just click it.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!