JuneTools.LocalStorageValue.GetValueType C# (CSharp) Method

GetValueType() private method

Gets the type of the value.
private GetValueType ( object value ) : ValueType
value object Value.
return System.ValueType
        private ValueType GetValueType(object value)
        {
            if (null != value) {
                Type type = value.GetType ();
                if (typeof(int) == type || typeof(long) == type) {
                    return ValueType.Int;
                }

                if (typeof(float) == type || typeof(double) == type) {
                    return ValueType.Float;
                }
            }

            return ValueType.String;
        }