Type相关的静态缓存值

2017-10-15 00:17:26  访问(1471) 赞(0) 踩(0)


        #region Type相关的静态缓存值

        /// <summary>
        /// typeof(long)
        /// </summary>
        protected readonly static Type typeObject = typeof(object);



        /// <summary>
        /// typeof(long)
        /// </summary>
        protected readonly static Type typeLong = typeof(long);




        /// <summary>
        /// typeof(long?)
        /// </summary>
        protected readonly static Type typeLongNull = typeof(long?);




        /// <summary>
        /// typeof(float)
        /// </summary>
        protected readonly static Type typeFloat = typeof(float);



        /// <summary>
        /// typeof(float?)
        /// </summary>
        protected readonly static Type typeFloatNull = typeof(float?);




        /// <summary>
        /// typeof(double)
        /// </summary>
        protected readonly static Type typeDouble = typeof(double);


        /// <summary>
        /// typeof(double?)
        /// </summary>
        protected readonly static Type typeDoubleNull = typeof(double?);


        /// <summary>
        /// typeof(DateTime)
        /// </summary>
        protected readonly static Type typeDateTime = typeof(DateTime);



        /// <summary>
        /// typeof(DateTime?)
        /// </summary>
        protected readonly static Type typeDateTimeNull = typeof(DateTime?);



        /// <summary>
        /// typeof(int)
        /// </summary>
        protected readonly static Type typeInt = typeof(int);


        /// <summary>
        /// typeof(UInt64)
        /// </summary>
        protected readonly static Type typeUInt64 = typeof(System.UInt64);


        /// <summary>
        /// typeof(int?)
        /// </summary>
        protected readonly static Type typeIntNull = typeof(int?);


        /// <summary>
        /// typeof(Int32)
        /// </summary>
        protected readonly static Type typeInt32 = typeof(Int32);

        /// <summary>
        /// typeof(string)
        /// </summary>
        protected readonly static Type typeString = typeof(string);




        /// <summary>
        /// typeof(bool)
        /// </summary>
        protected readonly static Type typeBoolean = typeof(bool);





        /// <summary>
        /// typeof(long?)
        /// </summary>
        protected readonly static Type typeBooleanNull = typeof(bool?);


        /// <summary>
        /// typeof(Unit)
        /// </summary>
        protected readonly static Type typeUnit = typeof(Unit);



        /// <summary>
        /// typeof(Unit?)
        /// </summary>
        protected readonly static Type typeUnitNull = typeof(Unit?);




        /// <summary>
        /// typeof(System.Enum)
        /// </summary>
        protected readonly static Type typeSystemEnum = typeof(System.Enum);


        #endregion Type相关的静态缓存值


上一条:

下一条:


 

相关评论

评论加载中……
 

发表评论

类型:
内容:
  (Alt+Enter)