New to Telerik UI for WPFStart a free 30-day trial

Represents the programming language used in the code block.

Definition

Namespace:Telerik.Windows.Documents.Model.Code

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public class CodeLanguage : IEquatable<CodeLanguage>

Inheritance: objectCodeLanguage

Implements: IEquatable<CodeLanguage>

Constructors

C#
public CodeLanguage(string name)
Parameters:namestring

Properties

Gets the name of the code language represented by the instance.

C#
public string Name { get; }

Methods

Compares the current instance of the CodeLanguage class with another CodeLanguage object.

C#
public bool Equals(CodeLanguage other)
Parameters:otherCodeLanguage

The CodeLanguage object to compare with the current instance.

Returns:

bool

Returns true if the specified CodeLanguage is equal to the current CodeLanguage instance; otherwise, false.

Implements: IEquatable<CodeLanguage>.Equals(CodeLanguage)

Compares the current instance with a specified object for equality.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with the current instance.

Returns:

bool

True if the specified object is equal to the current instance; otherwise, false.

Overrides: object.Equals(object)

Returns a hash code for the current instance of the CodeLanguage class.

C#
public override int GetHashCode()
Returns:

int

A 32-bit signed integer that is the hash code for the current CodeLanguage object.

Overrides: object.GetHashCode()