Click or drag to resize

EntityExtensionsIsOfType Method

Returns a value indicating whether the entity identifier of the specified entity is of the specified type.

Namespace:  SampSharp.Entities
Assembly:  SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-local+709673996c0cc3c0733358a87691d1009326afa7
Syntax
C#
public static bool IsOfType(
	this EntityId entity,
	Guid type
)

Parameters

entity
Type: SampSharp.EntitiesEntityId
The entity to check.
type
Type: SystemGuid
The entity identifier type to check for.

Return Value

Type: Boolean
A value indicating whether the entity identifier of the specified entity is of the specified type.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type EntityId. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also