日期:2014-05-20 浏览次数:20909 次
public class TestArgs { public TestArgs() { this.ArgTime=DateTime.Now; } private string _argName; private DateTime _argTime; public string ArgName { get { return _argName; } set { _argName = UpdateName(value); } } public DateTime ArgTime { get { return _argTime; } set { _argTime = value; } } private void UpdateName(string name) { return name + "[args]"; } } public class TestArgsSessionA { public TestArgsSessionA() { this.TestArysInfo = new TestArgs(); } private TestArgs _testArysInfo; private int _argState; private int _aryCount; public TestArgs TestArysInfo { get { return _testArysInfo; } set { _testArysInfo = value; } } public int ArgState { get { return _argState; } set { _argState = value; } } public int AryCount { get { return _aryCount; } set { _aryCount = value; } } } public class TestArgsSessionB : TestArgs { private int _argState; private int _aryCount; public int ArgState { get { return _argState; } set { _argState = value; } } public int AryCount { get { return _aryCount; } set { _aryCount = value; } } }