UnitUtils.IsValidUnit
Description:
Checks whether a unit is valid for a given measurable spec.
Checks whether a unit is valid for a given measurable spec.
public static bool IsValidUnit(
ForgeTypeId specTypeId,
ForgeTypeId unitTypeId
)
-
specTypeIdIdentifier of the measurable spec.
-
unitTypeIdIdentifier of the unit to check.
Return Value
bool
True if the unit is valid, false otherwise.
-
specTypeId is not a measurable spec identifier. See UnitUtils.IsMeasurableSpec(ForgeTypeId).
-
A non-optional argument was null