Class GeoJsonCoordinates
- Namespace
- MongoDB.Driver.GeoJsonObjectModel
- Assembly
- MongoDB.Driver.dll
Represents a GeoJson position in some coordinate system (see subclasses).
[BsonSerializer(typeof(GeoJsonCoordinatesSerializer))]
public abstract class GeoJsonCoordinates : IEquatable<GeoJsonCoordinates>
- Inheritance
-
GeoJsonCoordinates
- Implements
- Derived
- Inherited Members
Properties
Values
Gets the coordinate values.
public abstract ReadOnlyCollection<double> Values { get; }
Property Value
Methods
Equals(GeoJsonCoordinates)
Determines whether the specified GeoJsonCoordinates is equal to this instance.
public bool Equals(GeoJsonCoordinates obj)
Parameters
obj
GeoJsonCoordinatesThe GeoJsonCoordinates to compare with this instance.
Returns
- bool
true
if the specified GeoJsonCoordinates is equal to this instance; otherwise,false
.
Equals(object)
Determines whether the specified object is equal to this instance.
public override bool Equals(object obj)
Parameters
Returns
GetHashCode()
Returns a hash code for this instance.
public override int GetHashCode()
Returns
- int
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
Operators
operator ==(GeoJsonCoordinates, GeoJsonCoordinates)
Determines whether two GeoJsonCoordinates instances are equal.
public static bool operator ==(GeoJsonCoordinates lhs, GeoJsonCoordinates rhs)
Parameters
lhs
GeoJsonCoordinatesThe LHS.
rhs
GeoJsonCoordinatesThe RHS.
Returns
- bool
true
if the left hand side is equal to the right hand side; otherwise,false
.
operator !=(GeoJsonCoordinates, GeoJsonCoordinates)
Determines whether two GeoJsonCoordinates instances are not equal.
public static bool operator !=(GeoJsonCoordinates lhs, GeoJsonCoordinates rhs)
Parameters
lhs
GeoJsonCoordinatesThe LHS.
rhs
GeoJsonCoordinatesThe RHS.
Returns
- bool
true
if the left hand side is not equal to the right hand side; otherwise,false
.