Start a new topic

TypePropertyDescripter<T>

Can the TypePropertyDescriptor from TypeScript be implemented as:


   

   public class TypePropertyDescriptor<T> : PropertyDescriptor
 {
 public new T value { get { return (T)base.value; } set { base.value = value; } }
 public new Func<T> get { get { return (Func<T>)base.value; } set { base.value = value; } }
 public new Action<T> set { get { return (Action<T>)base.value; } set { base.value = value; } }
 }

 

Login or Signup to post a comment