Npgsql.NpgsqlParameterCollection.CheckType C# (CSharp) Method

CheckType() private method

In methods taking an object as argument this method is used to verify that the argument has the type NpgsqlParameter
private CheckType ( object Object ) : void
Object object The object to verify
return void
        private void CheckType(object Object)
        {
            NpgsqlEventLog.LogMethodEnter(LogLevel.Debug, CLASSNAME, "CheckType", Object);
            if (!(Object is NpgsqlParameter))
            {
                throw new InvalidCastException(
                    String.Format(resman.GetString("Exception_WrongType"), Object.GetType()));
            }
        }