C++ to C#

A

A.M

Hi,
I am confortable with C++, VB6, VB.NET programming and looking for fast and
efficient resources (book, url, ...) to switch to C#.

I checked some C# books, they spent alot of pages to teach me C# syntax(
which is similar to C++) and also .NET framework APIs (which i already know
them through VB.NET programming)

If i can find right resource, I should be able to transfer my current
VB.NET/C++ skills to C# in one day.

Could anyone refer me to any book title/url that helps me?


Any help would be apprecited,
Ali
 
¸

¸®ÇÙ\(ÀÌÁø¼®\)

msdn ^^;;

--
Have a Good time ~^-^a
::::::::::::::::::::::::::::::::::::::::
¡Ømsn:[email protected]
¡Øicq:#44973062
¡Ønateon:leehack
¡Øbuddybuddy:leehack
¡Øtachy:leehack1
¡Ømail:[email protected]
::::::::::::::::::::::::::::::::::::::::
 
M

Michael Culley

shared -> static
sub -> void
friend -> internal
end * -> }
sub new -> name of class
destructor (I don't know the syntax in vbnet) -> ~name of class
MyBase -> base
Me -> this
optional -> doesn't exist, use overloads.
ByVal -> this is the default, leave blank
ByRef -> ref
MyArray(0) -> MyArray[0]
_ (at end of line) -> just go to next line.

Sub New()
Base.New
->
MyClassName() : base()

public property Get SomeProp as int
->
public int SomeProp
{
get { return privatevalue; }
set { privatevalue = value; }
}

Dim X as New Object()
->
object X = new Object();

public property Get SomeProp(ByVal Index as Int) as Int
->
public this[int Index]
{
get { return ... ; }
}

that's all I can think of at the moment, I'm sure others can fill in the blanks.
 
J

Jeffrey Tan[MSFT]

Hi,

Thanks for posting in this group.
C# is a language specially for .Net programming. C# and VB.net all use .Net
Framework class library to work.
C#'s syntax is similar with C++, but for the internal machinism it is more
similar with VB.net. They are all event-driven and encapsulate the
low-level windows message and APIs.
So as I think, learnning C# consist of 2 parts: C# language syntax and
common used .Net Class library.
If you already familar with VB.net, I think it is easy to move to C# world,
you just need translate your code syntax.
The MSDN gives you a full document for C# .net programming.(Both C# syntax
and .Net class library)

If you still have something unclear, please tell me the difficulty.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
J

Jeffrey Tan[MSFT]

Hi,

Oh, so far as I think, if you are familar with C# syntax and class library,
but still unclear about .Net programming.
I think the problem may be the CLR(.Net Common Language Runtime).
For CLR, I think Jeffrey Richter's "Applied Microsoft .Net Framework
Programming" is a good book for the general .Net programming.
For exmaple, managed types, the concept of assembly, attribute, delegate,
interface, event, GC etc.

Hope this helps,
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
P

Paul Robson

A.M said:
Hi,
I am confortable with C++, VB6, VB.NET programming and looking for fast and
efficient resources (book, url, ...) to switch to C#.

I checked some C# books, they spent alot of pages to teach me C# syntax(
which is similar to C++) and also .NET framework APIs (which i already know
them through VB.NET programming)

If you know VB.NET that well, a transfer to C# should be uncomplicated
as the languages are pretty similar - the syntax probably accounts for
the majority of the differences :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Tool for converting VB.NET to C#. 11
C# Book Suggestions 1
Equivalent C Sharp code. 1
C# Book 2
C# vs C++ 5
Book Recommendation 4
Good books for C# begunner 1
REPOST: C# Book 9

Top