Made publicly visible constants into properties.

This commit is contained in:
Michael L Smith 2016-03-15 19:50:51 -07:00
parent 7a563e92f0
commit fbfe44f96a
2 changed files with 7 additions and 7 deletions

View File

@ -8,8 +8,8 @@ namespace OSCADSharp
{ {
internal class SphereScriptBuilder internal class SphereScriptBuilder
{ {
private IBindings bindings; private readonly IBindings bindings;
private Sphere sphere; private readonly Sphere sphere;
internal SphereScriptBuilder(IBindings bindings, Sphere sphere) internal SphereScriptBuilder(IBindings bindings, Sphere sphere)
{ {

View File

@ -14,27 +14,27 @@ namespace OSCADSharp
/// <summary> /// <summary>
/// One imperial inch /// One imperial inch
/// </summary> /// </summary>
public const double One = 25.4; public static double One { get; private set; } = 25.4;
/// <summary> /// <summary>
/// Half of an imperial inch /// Half of an imperial inch
/// </summary> /// </summary>
public const double Half = One / 2; public static double Half { get; private set; } = One / 2;
/// <summary> /// <summary>
/// Quarter of an imperial inch /// Quarter of an imperial inch
/// </summary> /// </summary>
public const double Quarter = Half / 2; public static double Quarter { get; private set; } = Half / 2;
/// <summary> /// <summary>
/// Eigth of an imperial inch /// Eigth of an imperial inch
/// </summary> /// </summary>
public const double Eigth = Quarter / 2; public static double Eigth { get; private set; } = Quarter / 2;
/// <summary> /// <summary>
/// Sixteenth of an imperial inch /// Sixteenth of an imperial inch
/// </summary> /// </summary>
public const double Sixteenth = Eigth / 2; public static double Sixteenth { get; private set; } = Eigth / 2;
/// <summary> /// <summary>
/// Converts inches to millimeters /// Converts inches to millimeters