.

converting values to the generic type

 

 

public class TypedProperty<T> : Property 
{ 
 public T TypedValue 
 { 
   get { return (T)Convert.ChangeType(base.Value, typeof(T)); } 
   set { base.Value = value.ToString();} 
 } 
}


 

What's your thoughts on this?

*

Protected by WP Anti Spam