Skip to content

TextStudioBindingDiagnostic

StructTextStudioTextStudio
public readonly struct TextStudioBindingDiagnostic

Non-spamming runtime state surfaced by the binding authoring UI.

public static readonly TextStudioBindingDiagnostic None

Returns

TextStudio.TextStudioBindingDiagnostic

TextStudioBindingDiagnostic(TextStudioBindingDiagnosticCode, string)

Section titled “TextStudioBindingDiagnostic(TextStudioBindingDiagnosticCode, string)”
public TextStudioBindingDiagnostic(TextStudioBindingDiagnosticCode code, string message)

Creates a diagnostic with a stable category and customer-facing message.

Parameters

Name Type
code TextStudio.TextStudioBindingDiagnosticCode
message System.String

public bool Equals(TextStudioBindingDiagnostic other)

Parameters

Name Type
other TextStudio.TextStudioBindingDiagnostic

Returns

System.Boolean

public override bool Equals(object obj)

Parameters

Name Type
obj System.Object

Returns

System.Boolean

public override int GetHashCode()

Returns

System.Int32

operator ==(TextStudioBindingDiagnostic, TextStudioBindingDiagnostic)

Section titled “operator ==(TextStudioBindingDiagnostic, TextStudioBindingDiagnostic)”
public static bool operator ==(TextStudioBindingDiagnostic left, TextStudioBindingDiagnostic right)

Returns whether two diagnostics have the same category and message.

Parameters

Name Type
left TextStudio.TextStudioBindingDiagnostic
right TextStudio.TextStudioBindingDiagnostic

Returns

System.Boolean

operator !=(TextStudioBindingDiagnostic, TextStudioBindingDiagnostic)

Section titled “operator !=(TextStudioBindingDiagnostic, TextStudioBindingDiagnostic)”
public static bool operator !=(TextStudioBindingDiagnostic left, TextStudioBindingDiagnostic right)

Returns whether two diagnostics differ in category or message.

Parameters

Name Type
left TextStudio.TextStudioBindingDiagnostic
right TextStudio.TextStudioBindingDiagnostic

Returns

System.Boolean

public TextStudioBindingDiagnosticCode Code { get; }

Returns

TextStudio.TextStudioBindingDiagnosticCode

public string Message { get; }

Returns

System.String

public bool IsError { get; }

Returns

System.Boolean