How about:
T t = (T)TypeDescriptor.GetConverter(typeof(T)).ConvertFromInvariantString(text);
Works fine for Guid and most other types.
How about:
T t = (T)TypeDescriptor.GetConverter(typeof(T)).ConvertFromInvariantString(text);
Works fine for Guid and most other types.