Ground work for Wino Calendar. (#475)

Wino Calendar abstractions.
This commit is contained in:
Burak Kaan Köse
2024-11-10 23:28:25 +01:00
committed by GitHub
parent a979e8430f
commit d1d6f12f05
486 changed files with 7969 additions and 2708 deletions

View File

@@ -34,6 +34,11 @@ namespace Wino.Core.UWP.Services
return (T)TypeDescriptor.GetConverter(typeof(T)).ConvertFromInvariantString(value);
}
if (typeof(T) == typeof(TimeSpan))
{
return (T)(object)TimeSpan.Parse(value);
}
return (T)Convert.ChangeType(value, typeof(T));
}