DateTimeStringConverter.cs 848 B

1234567891011121314151617181920212223242526
  1. /*********************************************************************************
  2. *Author: OnClick
  3. *Version: 0.0.1
  4. *UnityVersion: 2018.3.11f1
  5. *Date: 2019-04-07
  6. *Description: IFramework
  7. *History: 2018.11--
  8. *********************************************************************************/
  9. using System;
  10. namespace IFramework.Serialization
  11. {
  12. #pragma warning disable CS1591 // 缺少对公共可见类型或成员的 XML 注释
  13. [System.Runtime.InteropServices.ComVisible(false)]
  14. public class DateTimeStringConverter : StringConverter<DateTime>
  15. {
  16. public override bool TryConvert(string self, out DateTime result)
  17. {
  18. return DateTime.TryParse(self, out result);
  19. }
  20. }
  21. #pragma warning restore CS1591 // 缺少对公共可见类型或成员的 XML 注释
  22. }