Object data type in C#

Object.cs

using System;
class Test
{
static void Main() {
string s = “Test”;
string t = string.Copy(s);
Console.WriteLine(s == t);
Console.WriteLine((object)s == (object)t);
}
}

ObjectDataType.cs

class Point
{
public int x, y;
public Point(int x, int y) {
this.x = x;
this.y = y;
}
}
class Test
{
static void Main() {
Point[] points = new Point[100];
for (int i = 0; i < 100; i++)
{
points[i] = new Point(i, i*i);
System.Console.WriteLine("{0}",points[i]);
}
}
}

Related posts :

  • WHOIS DATA PARSER
  • A PayPal Store Shopping Cart
  • Bulk Pagerank checker
  • AGENTS OF FORTUNE PROFESSIONAL
  • LAND MINE – A Website script.
  • Basics of Javascript
  • SUPERSTATS LOG ANALYZER
  • Leave a Comment