Use expression body syntax
This commit is contained in:
@@ -24,7 +24,7 @@ namespace OpenRA
|
||||
public struct WDist : IComparable, IComparable<WDist>, IEquatable<WDist>, IScriptBindable, ILuaAdditionBinding, ILuaSubtractionBinding, ILuaEqualityBinding, ILuaTableBinding
|
||||
{
|
||||
public readonly int Length;
|
||||
public long LengthSquared { get { return (long)Length * Length; } }
|
||||
public long LengthSquared => (long)Length * Length;
|
||||
|
||||
public WDist(int r) { Length = r; }
|
||||
public static readonly WDist Zero = new WDist(0);
|
||||
@@ -148,10 +148,7 @@ namespace OpenRA
|
||||
}
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
throw new LuaException("WDist is read-only. Use WDist.New to create a new value");
|
||||
}
|
||||
set => throw new LuaException("WDist is read-only. Use WDist.New to create a new value");
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user