Shoutbox

templates in c# - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: templates in c# (/showthread.php?tid=90330)

templates in c# by MX-G on 04-24-2009 at 12:32 AM

i need help with this, i need to know about templates and how to make one in this language, does anyone knows about it?? could you bring me one example??? I'm desperated waa


RE: templates in c# by ShawnZ on 04-24-2009 at 01:31 AM

err, you mean generics?


RE: templates in c# by Jarrod on 04-24-2009 at 04:33 AM

[Image: attachment.php?pid=960694]
templates?


RE: templates in c# by -dt- on 04-24-2009 at 05:03 AM

quote:
Originally posted by Jarrod
[Image: attachment.php?pid=960694]
templates?
objective c != c#
RE: templates in c# by Jarrod on 04-24-2009 at 05:12 AM

I know that but you can write a template for c#, and maybe he's trying to make one
[Image: attachment.php?pid=960698]


RE: templates in c# by MX-G on 04-24-2009 at 06:43 PM

Yes shawnZ I mean Generics,I know I can do a similar thing using "object" but I need to do it with templates(using T)
What's that Jorrad :S


RE: templates in c# by RaceProUK on 05-05-2009 at 06:29 PM

Take a look at the classes in System.Collections.Generic for examples of generic types.

Also have a look here:
http://www.softsteel.co.uk/tutorials/cSharp/lesson21.html

That sould be enough to get you started (Google is your friend ;)).


RE: templates in c# by MX-G on 05-08-2009 at 09:19 PM

thanks :D