Generic structure for performing string conversion when data binding.
Posted
by Rohan West
on Stack Overflow
See other posts from Stack Overflow
or by Rohan West
Published on 2010-03-15T01:27:38Z
Indexed on
2010/03/15
1:29 UTC
Read the original article
Hit count: 424
Hi there, a little while ago i was reading an article about a series of class that were created that handled the conversion of strings into a generic type. Below is a mock class structure. Basically if you set the StringValue it will perform some conversion into type T
public class MyClass<T>
{
public string StringValue {get;set;}
public T Value {get;set;}
}
I cannot remember the article that i was reading, or the name of the class i was reading about. Is this already implemented in the framework? Or shall i create my own?
© Stack Overflow or respective owner