//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 loyalsoft. All rights reserved. // Homepage: http://www.game7000.com/ // Feedback: http://www.game7000.com/ //------------------------------------------------------------ using GameFramework; using System; namespace UnityGameFramework.Runtime { /// /// System.DateTime 变量类。 /// public sealed class VarDateTime : Variable { /// /// 初始化 System.DateTime 变量类的新实例。 /// public VarDateTime() { } /// /// 从 System.DateTime 到 System.DateTime 变量类的隐式转换。 /// /// 值。 public static implicit operator VarDateTime(DateTime value) { VarDateTime varValue = ReferencePool.Acquire(); varValue.Value = value; return varValue; } /// /// 从 System.DateTime 变量类到 System.DateTime 的隐式转换。 /// /// 值。 public static implicit operator DateTime(VarDateTime value) { return value.Value; } } }