Skip to content

ConsoleMessageLocation

Namespace: PuppeteerSharp

public class ConsoleMessageLocation : IEquatable<ConsoleMessageLocation>

Console message location.

Inheritance: object

Implements: IEquatable<ConsoleMessageLocation>

View source

public int? ColumnNumber { get; set; }

0-based column number in the resource if known.

Value: int?

View source

public string FunctionName { get; set; }

Name of the function if known.

Value: string

View source

public int? LineNumber { get; set; }

0-based line number in the resource if known.

Value: int?

View source

public string URL { get; set; }

URL of the resource if known.

Value: string

View source

public bool Equals(ConsoleMessageLocation other)

Indicates whether the current object is equal to another object of the same type.

Parameters

Name Type Description
other ConsoleMessageLocation An object to compare with this object.

Returns: bool — <a href=“https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool"&gt;true&lt;/a> if the current object is equal to the <code class=“paramref”>other</code> parameter; otherwise, <a href=“https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool"&gt;false&lt;/a>.

View source

public override bool Equals(object obj)

Determines whether the specified object is equal to the current object.

Parameters

Name Type Description
obj object The object to compare with the current object.

Returns: bool — <a href=“https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool"&gt;true&lt;/a> if the specified object is equal to the current object; otherwise, <a href=“https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool"&gt;false&lt;/a>.

View source

public override int GetHashCode()

Serves as the default hash function.

Returns: int — A hash code for the current object.

View source

operator ==(ConsoleMessageLocation, ConsoleMessageLocation)

Section titled “operator ==(ConsoleMessageLocation, ConsoleMessageLocation)”
public static bool operator ==(ConsoleMessageLocation location1, ConsoleMessageLocation location2)

Overriding == operator for ConsoleMessageLocation.

Parameters

Name Type Description
location1 ConsoleMessageLocation the value to compare against <code class=“paramref”>location2</code>.
location2 ConsoleMessageLocation the value to compare against <code class=“paramref”>location1</code>.

Returns: bool — true if the two instances are equal to the same value.

View source

operator !=(ConsoleMessageLocation, ConsoleMessageLocation)

Section titled “operator !=(ConsoleMessageLocation, ConsoleMessageLocation)”
public static bool operator !=(ConsoleMessageLocation location1, ConsoleMessageLocation location2)

Overriding != operator for ConsoleMessageLocation.

Parameters

Name Type Description
location1 ConsoleMessageLocation the value to compare against <code class=“paramref”>location2</code>.
location2 ConsoleMessageLocation the value to compare against <code class=“paramref”>location1</code>.

Returns: bool — true if the two instances are not equal to the same value.

View source

Made with love by Dario Kondratiuk