MapSource Class

A source of the data of a map, with its license.

public sealed class MapSource : IEquatable<MapSource>
Implements

Constructors

NameDescription
MapSource(string, Uri?, string?)A source of the data of a map, with its license.

MapSource(string, Uri?, string?)

MapSource.cs

A source of the data of a map, with its license.

public MapSource(string Name, Uri? Url = null, string? License = null)

Parameters

Name string
The name of the source, such as Natural Earth.
Url Uri?
The address of the source, or null.
License string?
The license of the data, such as ODbL-1.0, or null.

Properties

NameDescription
LicenseThe license of the data, such as ODbL-1.0, or null.
NameThe name of the source, such as Natural Earth.
UrlThe address of the source, or null.

The license of the data, such as ODbL-1.0, or null.

public string? License { get; init; }

Property value

string?

The name of the source, such as Natural Earth.

public string Name { get; init; }

Property value

string

The address of the source, or null.

public Uri? Url { get; init; }

Property value

Uri?

Methods

NameDescription
Deconstruct(string, Uri?, string?)
Equals(MapSource?)
Equals(object?)
GetHashCode()
ToString()

Deconstruct(string, Uri?, string?)

public void Deconstruct(out string Name, out Uri? Url, out string? License)

Parameters

Name string
Url Uri?
License string?

No documentation is available.

Equals overloads

Equals(MapSource?)

public bool Equals(MapSource? other)
Parameters
other MapSource?
Returns

bool

No documentation is available.

Equals(object?)

public override bool Equals(object? obj)
Parameters
obj object?
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(MapSource?, MapSource?)
operator !=(MapSource?, MapSource?)

operator ==(MapSource?, MapSource?)

public static bool operator ==(MapSource? left, MapSource? right)

Parameters

left MapSource?
right MapSource?

Returns

bool

No documentation is available.

operator !=(MapSource?, MapSource?)

public static bool operator !=(MapSource? left, MapSource? right)

Parameters

left MapSource?
right MapSource?

Returns

bool

No documentation is available.