LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] [OT] Microsoft's new C# language -- it's Java

[ILUG] [OT] Microsoft's new C# language -- it's Java

Justin Mason jm at jmason.org
Wed Jun 28 15:26:33 IST 2000


Well, well... it turns out that C#, the new language announced by MS, is
basically, more or less, Java reimplemented.

here's the details from http://tinker.editthispage.com/ :

   The big joke of the day: C# IS indeed Java with a few extensions, and is
   not C++. First, let's see the official denial:

   "Initial reports indicate the new language, a hybrid of C and C++ called
   C# (pronounced cee-sharp), behaves much like Java, Sun Microsystems'
   technology for cross-platform development. But Microsoft (stock: MSFT)
   executives insist C# does nothing of the kind. "It's very different from
   Java," said David Lazar, a product manager at Microsoft, Redmond, Wash.
   " - Microsoft's Web Language Due Next Week

   Then, let's look at some code samples of C# from the Introduction to C#
   document, available in Word format only: 

   using System;
   class Class1
   {
	   public int Value = 0;
   }
   class Test
   {
	   static void Main() {
		   int v1 = 0;
		   int v2 = v1;
		   v2 = 123;
		   Class1 r1 = new Class1();
		   Class1 r2 = r1;
		   r2.Value = 123;
		   Console.WriteLine("Values: {0}, {1}", v1, v2);
		   Console.WriteLine("Refs: {0}, {1}", r1.Value, r2.Value);
	   }
   }



   using System.Data;
   class Employee
   {
	   private static DataSet ds;
	   public string Name;
	   public decimal Salary;
	   ...
   }


   class Color
   {
	   internal ushort redPart;
	   internal ushort bluePart;
	   internal ushort greenPart;
	   public Color(ushort red, ushort blue, ushort green) {
		   redPart = red;
		   bluePart = blue;
		   greenPart = green;
	   }
	   ...
   }

   If it smells like Java, and looks like Java, it's Java.





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell