473,729 Members | 2,227 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Generics article

Hi,
I wrote an article about generics in C# 2.0; you can download it at
http://www.coders-lab.be/Technical%2...s_Generics.pdf
Suggestions and feedback always very welcome,
kind regards,
Ludwig

--
Ludwig
http://www.goedgenoegen.be
Jan 28 '06 #1
13 1833
Ludwig <no@email.be> wrote:
I wrote an article about generics in C# 2.0; you can download it at
http://www.coders-lab.be/Technical%2...s_Generics.pdf
Suggestions and feedback always very welcome,


Without having read it - I see no particular reason why it needs to be
a PDF rather than HTML. It would be easier to use as straight HTML,
IMO.

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Jan 28 '06 #2
On Sat, 28 Jan 2006 23:10:52 -0000, Jon Skeet [C# MVP]
<sk***@pobox.co m> wrote:
Ludwig <no@email.be> wrote:
I wrote an article about generics in C# 2.0; you can download it at
http://www.coders-lab.be/Technical%2...s_Generics.pdf
Suggestions and feedback always very welcome,


Without having read it - I see no particular reason why it needs to be
a PDF rather than HTML. It would be easier to use as straight HTML,
IMO.


Converting my doc to pdf preserves lay-out. Converting to HTML, well,
it's not the same anymore. Therefore, it's a pdf.
--
Ludwig
http://www.goedgenoegen.be
Jan 28 '06 #3
Ludwig,
if you want readership (which I guess you'd like, since you've been kind
enough to post about it on this group) I'd recommend you offer the article in
HTML, with an option to download as PDF. As with everything in life, there
are trade-offs. HTML means more readership and - these days - it also means
better indexing by the search engines; not a small matter at all.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Ludwig" wrote:
Hi,
I wrote an article about generics in C# 2.0; you can download it at
http://www.coders-lab.be/Technical%2...s_Generics.pdf
Suggestions and feedback always very welcome,
kind regards,
Ludwig

--
Ludwig
http://www.goedgenoegen.be

Jan 28 '06 #4
On Sat, 28 Jan 2006 15:42:27 -0800, "Peter Bromberg [C# MVP]"
<pb*******@yaho o.nospammin.com > wrote:
Ludwig,
if you want readership (which I guess you'd like, since you've been kind
enough to post about it on this group) I'd recommend you offer the article in
HTML, with an option to download as PDF. As with everything in life, there
are trade-offs. HTML means more readership and - these days - it also means
better indexing by the search engines; not a small matter at all.
Peter


I uploaded the html version:
http://www.coders-lab.be/Technical%2...ics/index.html

There's a link to the pdf version.
--
Ludwig
http://www.goedgenoegen.be
Jan 29 '06 #5
Ludwig <no@email.be> wrote:
Without having read it - I see no particular reason why it needs to be
a PDF rather than HTML. It would be easier to use as straight HTML,
IMO.


Converting my doc to pdf preserves lay-out. Converting to HTML, well,
it's not the same anymore. Therefore, it's a pdf.


Not being exactly the same isn't necessarily a bad thing though. For
instance, I've got a wide screen laptop - having a fixed width layout
means most of the screen is wasted. PDF is really useful when the
layout is absolutely vital - but I don't see why it is in your article.
The code needs to be preserved as it is, and that's easy to do, but
everything else can be more flexible in HTML.

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Jan 29 '06 #6
On Sun, 29 Jan 2006 02:03:11 +0100, Ludwig <no@email.be> wrote:
On Sat, 28 Jan 2006 15:42:27 -0800, "Peter Bromberg [C# MVP]"
<pb*******@yah oo.nospammin.co m> wrote:
Ludwig,
if you want readership (which I guess you'd like, since you've been kind
enough to post about it on this group) I'd recommend you offer the article in
HTML, with an option to download as PDF. As with everything in life, there
are trade-offs. HTML means more readership and - these days - it also means
better indexing by the search engines; not a small matter at all.
Peter


I uploaded the html version:
http://www.coders-lab.be/Technical%2...ics/index.html

There's a link to the pdf version.

Thanks Ludwig.

Although I didn't mind downloading the PDF file, it was nice to see
that I had a choice regarding how I wanted to read it.

Otis Mukinfus
http://www.otismukinfus.com
http://www.tomchilders.com
Jan 29 '06 #7
SP
"Ludwig" <no@email.be> wrote in message
news:ut******** *************** *********@4ax.c om...
Hi,
I wrote an article about generics in C# 2.0; you can download it at
http://www.coders-lab.be/Technical%2...s_Generics.pdf
Suggestions and feedback always very welcome,
kind regards,
Ludwig


"Boxing and unboxing are very timeconsuming operations and should be
avoided, because they degrade performance. This effect of boxing/unboxing
can be quite significant in scenarios where you must iterate over large
collections. The solution to these problems is creating strongly typed
collections."
How does a strongly typed collection avoid boxing / unboxing of primitive
types (you are talking about .Net 1.1 in this part of the article)?

SP


Jan 29 '06 #8
SP <ec***********@ hotmail.com> wrote:
"Ludwig" <no@email.be> wrote in message
news:ut******** *************** *********@4ax.c om...
Hi,
I wrote an article about generics in C# 2.0; you can download it at
http://www.coders-lab.be/Technical%2...s_Generics.pdf
Suggestions and feedback always very welcome,
kind regards,
Ludwig


"Boxing and unboxing are very timeconsuming operations and should be
avoided, because they degrade performance. This effect of boxing/unboxing
can be quite significant in scenarios where you must iterate over large
collections. The solution to these problems is creating strongly typed
collections."
How does a strongly typed collection avoid boxing / unboxing of primitive
types (you are talking about .Net 1.1 in this part of the article)?


You can create a strongly typed collection which uses an array of the
appropriate type underneath the covers (int[], DatTime[] or whatever).

I would take issue with the idea that boxing and unboxing are "very
timeconsuming operations". The problem is that you tend to do them an
awful lot, so even though individually they're cheap, they can mount
up...

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Jan 30 '06 #9

SP schreef:
"Ludwig" <no@email.be> wrote in message
news:ut******** *************** *********@4ax.c om...
Hi,
I wrote an article about generics in C# 2.0; you can download it at
http://www.coders-lab.be/Technical%2...s_Generics.pdf
Suggestions and feedback always very welcome,
kind regards,
Ludwig


"Boxing and unboxing are very timeconsuming operations and should be
avoided, because they degrade performance. This effect of boxing/unboxing
can be quite significant in scenarios where you must iterate over large
collections. The solution to these problems is creating strongly typed
collections."
How does a strongly typed collection avoid boxing / unboxing of primitive
types (you are talking about .Net 1.1 in this part of the article)?

SP


Oeps yes, this is confusing, I'll change it. Thanks for the remark.

Jan 30 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
3366
by: Chris Dunaway | last post by:
The next version of VS.Net (Whidbey) promises to add generics support to VB. I have a vague remembrance of Templates in C++, but I guess I need a refresher. What will generics allow us to do? How do they make coding easier? Is there a resource that will give me a basic understanding of what generics are and how generics will be useful (in the context of VB.Net)? Thanks
12
2740
by: Michael S | last post by:
Why do people spend so much time writing complex generic types? for fun? to learn? for use? I think of generics like I do about operator overloading. Great to have as a language-feature, as it defines the language more completely. Great to use.
9
5984
by: sloan | last post by:
I'm not the sharpest knife in the drawer, but not a dummy either. I'm looking for a good book which goes over Generics in great detail. and to have as a reference book on my shelf. Personal Experience Only, Please. ...
18
2633
by: riftimes | last post by:
Hello, would you help me to find totorials with examples about generics and Dictionary thank you.
3
2601
by: Showjumper | last post by:
Back in asp.net 1.1 i made custom collection classes per Karl Seguin's article On the Way to Mastering ASP.NET: Introducing Custom Entity Classes to take advantage of strongly typed data. Now with generics i understand that one doesnt have to used these custom collections. So i want to move this 1.1 project to 2.0. I have been reading about generics but i geuss i dont really get hpw to implement them. For example i have 2 classees in the...
8
2430
by: Kris Jennings | last post by:
Hi, I am trying to create a new generic class and am having trouble casting a generic type to a specific type. For example, public class MyClass<Twhere T : MyItemClass, new() { public MyClass() { } public void AppendItem()
8
3186
by: mark.norgate | last post by:
I've run into a few problems trying to use generics for user controls (classes derived from UserControl). I'm using the Web Application model rather than the Web Site model. The first problem I'm having is that the partial class signature in my projectDetails.ascx.cs file looks like this: public partial class ProjectDetailsControl<TEntryServiceProvider: UserControl, INamingContainer where TEntryServiceProvider : IEntryServiceProvider...
4
1449
by: ludwig.stuyck | last post by:
Hello, I updated my article on generics with databinding and serialization/ deserialization. Summary: Generics are one of the most useful improvements in the .NET 2.0 framework. In this article I start with pointing out the disadvantages of using the classical arrays and .NET collections, and then I show you how generics provide a nice and elegant way of creating flexible and performant strongly typed collections with
3
7291
by: =?Utf-8?B?SmltSGVhdmV5?= | last post by:
I am trying to follow along with an example about how to create a generic collection which is "Type" drivern (the article is here http://www.ftponline.com/vsm/2007_02/magazine/features/dfergus/page4.aspx - I think you have to have an account to actually see the article...but anyway). In the example, they declare a couple arraylist. When I attempt to create a new instance of the class, I get a null exception on the array list which were...
1
6547
by: JosAH | last post by:
Greetings, Introduction This week I'll write a bit about generics (those funny angular brackets). I need an example and decided to use sets and some of their operations. This weeks' article discusses one set class and two interesting operations on the set: combinations and set partitioning. First a description of the algorithms is given and then we'll have some fun with the generic implementation of them.
0
9286
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9203
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8155
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6722
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6026
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4529
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3240
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2689
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2165
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.