using System;
using System.Collections.Generic;
using System.Text;namespace ConsoleApplication2
{
    public class Program
    {
        public static void Main(string[] args)
        {
            B b = new B();
            Console.WriteLine(b.Count);
            Console.Read();
        }
    }
    public interface A
    {
        void print();
        int Count
        {
            get;
        }
    }
    public class B : A
    {
        #region A 成员        void A.print()
        {
            Console.WriteLine("I am  B!");
        }
        public int Count
        {
            get { return Count; }
        }        #endregion
    }
}

解决方案 »

  1.   

    死循环private int c=0;
            public int Count
            {
                get { return c; }
            }
      
    *****************************************************************************
    欢迎使用CSDN论坛专用阅读器 : CSDN Reader(附全部源代码) 最新版本:20070130http://www.cnblogs.com/feiyun0112/archive/2006/09/20/509783.html
      

  2.   

    yes public int Count
            {
                get { return Count; }
            }
    这里是有问题