Skip to content

Instantly share code, notes, and snippets.

@tnngo2
Created May 7, 2012 12:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tnngo2/2627433 to your computer and use it in GitHub Desktop.
Save tnngo2/2627433 to your computer and use it in GitHub Desktop.
using System;
namespace Theory10
{
class House
{
public string HouseName;
public int Members;
}
class Program
{
public static void Main(string[] args)
{
// Construct a House object using object initializers.
House londonHouse =
new House { HouseName = "London Street", Members = 3 };
Console.WriteLine("House Name: {0}, Members: {1} ",
londonHouse.HouseName, londonHouse.Members);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment