I'd like to do something like this:

public T GetValueFromString<T>(string Data) where T :
TRYPARSECONSTRAINT
{
       return T.TryParse(Data);
}



Does anyone know of a way to do this easily?



I know the static interface issue is a regular discussion point here
and other places,
and as yet I still cant quite get my head around why it doesn't make
sense for it to exist
but this seems to me, to be another case for it

Reply via email to