mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Use expression bodies for properties
This commit is contained in:
parent
74ba508e26
commit
209833561e
6 changed files with 19 additions and 29 deletions
|
|
@ -44,8 +44,8 @@ namespace MapControl.Projections
|
|||
/// </summary>
|
||||
public string CoordinateSystemWkt
|
||||
{
|
||||
get { return CoordinateSystem?.WKT; }
|
||||
protected set { CoordinateSystem = new CoordinateSystemFactory().CreateFromWkt(value); }
|
||||
get => CoordinateSystem?.WKT;
|
||||
protected set => CoordinateSystem = new CoordinateSystemFactory().CreateFromWkt(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -53,7 +53,7 @@ namespace MapControl.Projections
|
|||
/// </summary>
|
||||
public ICoordinateSystem CoordinateSystem
|
||||
{
|
||||
get { return coordinateSystem; }
|
||||
get => coordinateSystem;
|
||||
protected set
|
||||
{
|
||||
coordinateSystem = value ?? throw new ArgumentNullException(nameof(value));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue