Distance Class

Namespace
Shiny.Locations
Interfaces
Base Types
  • object
graph BT Type-->Base0["object"] Type-.->Interface0["IEquatable<Distance>"] Type["Distance"] class Type type-node

Syntax

public sealed class Distance : IEquatable<Distance>

Fields

Name Constant Value Summary
KM_TO_METERS 1000
static
KM_TO_MILES 0.621371
static
MILES_TO_KM 1.60934
static

Properties

Name Value Summary
TotalKilometers double
TotalMeters double
TotalMiles double

Methods

Operators

Name Value Summary
operator !=(Distance, Distance) bool
operator <(Distance, Distance) bool
operator <=(Distance, Distance) bool
operator ==(Distance, Distance) bool
operator >(Distance, Distance) bool
operator >=(Distance, Distance) bool

Extension Methods

Name Value Summary
GetPropertyInfo<Distance, TRet>(Expression<Func<Distance, TRet>>) PropertyInfo
Reflects out property information based on the expression value
ReflectGet(string) object
Gets an objects property dynamically through reflection - will throw an exception if proper has no getter or property does not exists
ReflectGet<Distance, TReturn>(Expression<Func<Distance, TReturn>>) TReturn
Gets an objects property dynamically through reflection - will throw an exception if proper has no getter or property does not exists
ReflectSet(string, object) void
Sets an objects property dynamically through reflection - will throw an exception if proper has no setter, wrong type, or property does not exists
GitHub