IQMap.Impl.Support.ParameterParser.IsParameterType C# (CSharp) Method

IsParameterType() protected method

Check the parameter to see if it's legitimate paramter values
protected IsParameterType ( Object obj ) : bool
obj Object
return bool
        protected bool IsParameterType(Object obj)
        {
            if (obj == null)
            {
                return true;
            }
            else
            {
                Type t = Types.GetUnderlyingType(obj.GetType());
                return t.IsPrimitive || t == typeof(string) || t == typeof(byte[])
                    || t == typeof(DateTime) || t.IsEnum || t == typeof(DBNull);
            }
        }