int vote;
Insertvotes(objectType, objectId , vote, userID); //calling
针对此方法调用,我想将vote
转换为bool
类型。如何进行转换?
以下是该方法的签名:
public static bool Insertvotes(int forumObjectType,
int objectId,
bool isThumbUp,
int userID)
{
// code...
}