关于C#的属性
可否设置一个属性,它的set是private的,get   是public   的呢?
------解决方案--------------------可以 这么写 
 public class SomeType { 
 public String Name { 
 get { return null; } 
 private set {} 
 } 
 }
------解决方案--------------------具我所知,不能写出这样的属性,为什么不用私有方法取代set   
 // 
 public string myProp; 
 private void SetMyProp(string Value) 
 { 
     myProp = Value; 
 }   
 public string MyProp  
 { 
     get 
     { 
         return myProp; 
     } 
 }