Share via


AuthorRole.Equality(AuthorRole, AuthorRole) Operator

Definition

Returns a value indicating whether two AuthorRole instances are equivalent, as determined by a case-insensitive comparison of their labels.

public static bool operator == (Microsoft.SemanticKernel.ChatCompletion.AuthorRole left, Microsoft.SemanticKernel.ChatCompletion.AuthorRole right);
static member ( = ) : Microsoft.SemanticKernel.ChatCompletion.AuthorRole * Microsoft.SemanticKernel.ChatCompletion.AuthorRole -> bool
Public Shared Operator == (left As AuthorRole, right As AuthorRole) As Boolean

Parameters

left
AuthorRole

the first AuthorRole instance to compare

right
AuthorRole

the second AuthorRole instance to compare

Returns

true if left and right are both null or have equivalent labels; false otherwise

Applies to