Source code sites?

  • Thread starter Thread starter Jim Hubbard
  • Start date Start date
J

Jim Hubbard

I am looking for .Net 2.0 VB, C or C# source code (even advanced 1.1 code is
OK). I find that I learn more, faster by tweaking other people's code than
by simply reading book after book on the subject.

Any links that you could provide (the more advanced the better) would be
sincerely appreciated.

Thanks!
 
Microsoft has went to great pains to send code with the Visual Studio
package that you should really take the time to look at. I would also
recommend getting their book on C#.net if you really interested in serious
programming. If you're familiar with programming and want to cut to the
chase...they've done a really nice job of printing a text that doesn't
attempt to re-teach you the fundamentals of programming. The books does a
great job of comparing old C++ to the changes in C#. I know it might be
hard to believe but I give MS a thumbs up on this one...great job MS with
your added examples!

Good Luck,

Chris

--
Securing your systems is much like fighting off disease -- as long as you
maintain basic hygiene, you're likely to be okay, but you'll never be
invulnerable.

Steve Shah - Unix Systems Network Administrator
 
Which M$ C#.net did you have in mind? Could you give the title? Or
even better, the ISBN?

Chris
 
The title is "Microsoft Visual C#.net Step by Step"

You'll have to be careful because this ISBN is for the 2003 version...not
for the 2005 version. They have a 2005 version in print...they're both
$39.99. Here is the ISBN...

0-7356-1909-3

Good luck!

Chris

--
Securing your systems is much like fighting off disease -- as long as you
maintain basic hygiene, you're likely to be okay, but you'll never be
invulnerable.

Steve Shah - Unix Systems Network Administrator
 
Jim,

I use these samples.

http://msdn.microsoft.com/vstudio/downloads/101samples/default.aspx

The only problem with those is that the VBNet samples are often obviously
made by C# programmers, so you don't see methods like the CDate and there
are constructions like this "If (true) then"

However I thought that you are very well able to see that.

I hope this helps,

(Written from the VB language newsgroup)

Cor
 
Thanks for the links so far.......but does anyone have more advanced code?

I'm looking for code examples like mirror drivers in .Net or defragging in
..Net....that type of thing. Perhaps coding mirror drivers for a LAN remote
pc application cannot be done in .Net....but, I thought that .Net was
supposed to be the successor to C++. Am I wrong about that?
 
Jim Hubbard said:
Thanks for the links so far.......but does anyone have more advanced code?

I'm looking for code examples like mirror drivers in .Net or defragging in
.Net....that type of thing. Perhaps coding mirror drivers for a LAN
remote pc application cannot be done in .Net....but, I thought that .Net
was supposed to be the successor to C++. Am I wrong about that?

No .NET (a marketing term really) is not the successor of anything like a
programming language. C++ is a programming language and what you call .NET
covers a framework that can be used to build general purpose user
applications, running in top of the so called CLR (or CLI in Ecma parlance).
There are numerous (managed) programming languages that target the framework
like: C#, VB.NET, ME C++, JScript and C++/CLI to name a few. None of them
are however meant to replace C++, while the "managed" languages may have
several advantages over native C++, depending on the problem domain, a lot
of programming task can't (or shouldn't) be done using any of them. The
problem is not directly the language per se , it's more related to the
managed environment (the Common Language Runtime).
One of the programming domains for which you can't use .NET (any language)
are drivers (any kind), here the only supported language is C++ (or lower
;-)).
Other domains not targeted by .NET are high performance servers (aka.
Databases, mail servers), High performance desktop application (CAD/CAM,
Imaging etc...) kernel OS components, system libraries, runtime libraries
etc....
Note that C++ is part of the Visual Studio offering and VS2005 includes the
latest version supporting native C++ as well as C++CLI.

Willy.
 
So, learning C++ is not a waste of time then....

But, it looks like the learning curve is quite steep and I may be better off
hiring out this little project (making a .Net interface to the C++ mirror
drivers).

Thanks for the info!
 
SourceForge.net - a variety of platforms, languages, etc. (have to search
for C#)
CodeProject.com - similar
GotDotNet.com - look at the workspaces

MSDN site also has code samples in a variety of their articles.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***********************************************
Think Outside the Box!
***********************************************
 
I think the best source of learning .NET and C# is ROTOR(Shared Source
Common Language Infrastructure). The entire CLR(with some changes i'm
sure) source code for version 1.0 is included as well of most of 1.0
libraries. When learning C# it was helpful getting classes like
ArrayList and stepping through them. Anyway, you can get Shared Source
Common Language Infrastructure here
http://www.microsoft.com/downloads/...FA-7462-47D0-8E56-8DD34C6292F0&displaylang=en
 
Back
Top