I have the following code:
public static T ParameterFetchValue(string parameterKey) { Parameter result = null; result = ParameterRepository
How about:
T t = (T)TypeDescriptor.GetConverter(typeof(T)).ConvertFromInvariantString(text);
Works fine for Guid and most other types.
Guid