Register for your free account! | Forgot your password?

You last visited: Today at 10:18

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



C#

Discussion on C# within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
[GMs]'s Avatar
 
elite*gold: 100
Join Date: Apr 2007
Posts: 183
Received Thanks: 57
C#

I was taking Computer Science I in school and they teach Java. I started to watch . What is the difference between String and string? In Java, there is a Scanner to read the inputs. Is there something like that in C# instead of reading it as a string and parsing it?
[GMs] is offline  
Old 06/20/2009, 23:55   #2
 
elite*gold: 0
Join Date: May 2009
Posts: 98
Received Thanks: 30
String and string are the same thing. "string" is simply and alias for System.String.
high7 is offline  
Old 06/25/2009, 00:02   #3
 
elite*gold: 0
Join Date: Feb 2007
Posts: 31
Received Thanks: 9
Java and C# are almost entirely the same language, because...well Microsoft stole Java from SunMicro Systems but due to pending law suites changed it up a bit with some C syntax. So the difference between string and String are trivial. In general "string" refers to a data type and "String" refers to a class.
jamellathewhite is offline  
Old 06/25/2009, 08:42   #4
 
elite*gold: 0
Join Date: May 2009
Posts: 98
Received Thanks: 30
Quote:
Originally Posted by jamellathewhite View Post
Java and C# are almost entirely the same language, because...well Microsoft stole Java from SunMicro Systems but due to pending law suites changed it up a bit with some C syntax.
Um... No..

Quote:
Originally Posted by jamellathewhite View Post
So the difference between string and String are trivial. In general "string" refers to a data type and "String" refers to a class.
Um... No...

In .NET "string" and "System.String" are exactly the same. "string" is simply an alias for "System.String". Which means "string" is compiled as "System.String".
high7 is offline  
Old 06/25/2009, 22:28   #5
 
elite*gold: 0
Join Date: Feb 2007
Posts: 31
Received Thanks: 9
C# and Java are almost the same language, Microsoft made C# to resemble Java and its cross platform attributes. In fact that got in trouble for it originally because Java was never intended to be platform dependent, a tactic Microsoft loves to implement in all their creations. The difference between C# and Java mainly? C# retains a C/C++ like syntax and same attributes like limited pointer use.
You would think people posting to help other people would actually research this stuff, but I guess not....
jamellathewhite is offline  
Old 06/25/2009, 22:48   #6
 
elite*gold: 0
Join Date: May 2009
Posts: 98
Received Thanks: 30
Quote:
Originally Posted by jamellathewhite View Post
C# and Java are almost the same language, Microsoft made C# to resemble Java and its cross platform attributes. In fact that got in trouble for it originally because Java was never intended to be platform dependent, a tactic Microsoft loves to implement in all their creations. The difference between C# and Java mainly? C# retains a C/C++ like syntax and same attributes like limited pointer use.
You would think people posting to help other people would actually research this stuff, but I guess not....
Um... No...
high7 is offline  
Old 06/26/2009, 02:38   #7
 
elite*gold: 0
Join Date: Feb 2007
Posts: 31
Received Thanks: 9
Quote:
Originally Posted by high7 View Post
Um... No...
I am guessing you have failed to move past C# in the programming world in any sense. Because if you had you would have noticed the extreme similarities between Java and C#; to the point were if you know one, you pretty much know the other.

The History of C#:

Around 1997, Microsoft started a project that was internally known as Project Lightning (and also known as Project 42). The name "Project 42" was most likely because DevDiv (the Microsoft Developer Division) is in Building 42, which (as James points out) is probably an homage to The Hitchhiker's Guide to the Galaxy by Douglas Adams.

There were several names being considered, one of which was the COM Object Runtime (COR), which is where the name for the mscorlib.dll assembly came from. This is the assembly which contains all of the CLR's main types and is really the only one that must be loaded by every .NET app domain.

Speaking of assembly loading, the code name for the CLR Loader is Fusion, which provides the name for the Assembly Log Binding Log Viewer utility - fuslogvw.exe: Fusion Assembly Log Viewer.

The codename of C# was Project Cool and was supposedly a "clean-room" implementation of Java. It was later changed to C# based on a musical scale. Just as C++ added the "++" to "C" since it was considered to be "adding to" or "one greater than" C, the sharp (#) on a musical scale means one semi-tone above the note. So, in both cases the name implies one above or higher than the original.
jamellathewhite is offline  
Old 06/26/2009, 11:39   #8
 
elite*gold: 0
Join Date: May 2009
Posts: 98
Received Thanks: 30
Quote:
Originally Posted by jamellathewhite View Post
I am guessing you have failed to move past C# in the programming world in any sense. Because if you had you would have noticed the extreme similarities between Java and C#; to the point were if you know one, you pretty much know the other.

The History of C#:

Around 1997, Microsoft started a project that was internally known as Project Lightning (and also known as Project 42). The name "Project 42" was most likely because DevDiv (the Microsoft Developer Division) is in Building 42, which (as James points out) is probably an homage to The Hitchhiker's Guide to the Galaxy by Douglas Adams.

There were several names being considered, one of which was the COM Object Runtime (COR), which is where the name for the mscorlib.dll assembly came from. This is the assembly which contains all of the CLR's main types and is really the only one that must be loaded by every .NET app domain.

Speaking of assembly loading, the code name for the CLR Loader is Fusion, which provides the name for the Assembly Log Binding Log Viewer utility - fuslogvw.exe: Fusion Assembly Log Viewer.

The codename of C# was Project Cool and was supposedly a "clean-room" implementation of Java. It was later changed to C# based on a musical scale. Just as C++ added the "++" to "C" since it was considered to be "adding to" or "one greater than" C, the sharp (#) on a musical scale means one semi-tone above the note. So, in both cases the name implies one above or higher than the original.
Um... No...
high7 is offline  
Old 06/26/2009, 12:26   #9
 
forcer's Avatar
 
elite*gold: 20
Join Date: Aug 2007
Posts: 606
Received Thanks: 563
Quote:
Originally Posted by high7 View Post
Um... No...
lame way of arguing I must say.
forcer is offline  
Old 06/26/2009, 13:13   #10
 
elite*gold: 0
Join Date: May 2009
Posts: 98
Received Thanks: 30
Quote:
Originally Posted by forcer View Post
lame way of arguing I must say.
Um... No...
high7 is offline  
Old 06/26/2009, 21:43   #11
 
elite*gold: 0
Join Date: Feb 2007
Posts: 31
Received Thanks: 9
Quote:
Originally Posted by high7 View Post
Um... No...
Wow, your an idiot that knows nothing about programming in general. Your simply posting as some way of provoking people to get them to acknowledge your sad pitiful existent in some way.
jamellathewhite is offline  
Old 06/26/2009, 23:31   #12
 
unknownone's Avatar
 
elite*gold: 20
Join Date: Jun 2005
Posts: 1,013
Received Thanks: 381
Quote:
Originally Posted by jamellathewhite View Post
C# and Java are almost the same language, Microsoft made C# to resemble Java ... The difference between C# and Java mainly? C# retains a C/C++ like syntax and same attributes like limited pointer use. .
Java and C++ are almost the same language, Sun made Java to resemble C++ ... The difference between Java and C++ mainly? Java retains a C/C++ like syntax but removes pointer use.

See where I'm going?
unknownone is offline  
Old 06/27/2009, 01:28   #13
 
elite*gold: 0
Join Date: Jun 2009
Posts: 92
Received Thanks: 8
Quote:
Originally Posted by jamellathewhite View Post
Wow, your an idiot that knows nothing about programming in general. Your simply posting as some way of provoking people to get them to acknowledge your sad pitiful existent in some way.
lol'd so hard at this failure of a post
_tao4229 is offline  
Reply




All times are GMT +1. The time now is 10:19.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.