FloatStringConverter.cs 822 B

12345678910111213141516171819202122232425
  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. namespace IFramework.Serialization
  10. {
  11. #pragma warning disable CS1591 // 缺少对公共可见类型或成员的 XML 注释
  12. [System.Runtime.InteropServices.ComVisible(false)]
  13. public class FloatStringConverter : StringConverter<float>
  14. {
  15. public override bool TryConvert(string self, out float result)
  16. {
  17. return float.TryParse(self, out result);
  18. }
  19. }
  20. #pragma warning restore CS1591 // 缺少对公共可见类型或成员的 XML 注释
  21. }