using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class A
{
private int x;
public A(int x)
{
this.x = x;
}
public int MyX
{
get
{
return x;
}
}
}
class B
{
public static void Main()
{
A b = new A(10);
//b.MyX = 100;
Console.WriteLine(b.MyX);
}
}
}