文档

Unity Engine

Download Unity

Unity Engine

EnumEquals<T>(T, T)

Determines whether specified enums are equal without boxing.
阅读时间1 分钟最后更新于 2 个月前

Definition

public static bool EnumEquals<T>(T lhs, T rhs) where T : struct, IConvertible

Parameters

lhs

T
The first enum to compare.

rhs

T
The second enum to compare.

Returns

Type

Description

boolTrue if equal, otherwise false.