I wonder if anyone can explain how the System.double is different from System.Double and how these differences are constructed in code.
if one looks at the Class:
public struct Double : IComparable, IFormattable, IConvertible, IComparable<Double>, IEquatable<Double>
from: https://referencesource.microsoft.com/#mscorlib/system/double.cs,1a65cbdb09544ba1
There is no clarity between the double and Double Types.
Using Visual Studio 2015, it is recommended that one uses the double key word instead of Double as the conversion is less.
If I were to write a custom Data Type and derive from double, for example, would constructing it by dynamic be enough to get the ball rolling.
It baffles me at how .NET has derived the base Data Types.
EDIT: A search on the net shows there is a lot of confusion on this topic. For example:
using System;
public class QBit : IComparable, IFormattable, IConvertible
{
internal _qbit
public string Value { get { return _qbit; }
public QBit()
{
_qbit = "1978";
}
}
In another class:
using System;
using qbit = QBit;
public class Spinstate
{
internal _state
public string Value { get { return _state; }
public QBit()
{
qbit = new QBit ();
_state = qbit.Value;
}
}
Is not the same as a Keyword, this is an Alias. How to declare a Keyword?
EDIT: A KEYWORD is defined as:
Keywords are predefined reserved identifiers that have special meanings to the compiler. They cannot be used as identifiers in your program unless they include @ as a prefix. For example, @if is a legal identifier but if is not because it is a keyword.
The Keyword 'double' is defined as follows:
The double keyword signifies a simple type that stores 64-bit floating-point values. The following table shows the precision and approximate range for the double type.
The Type is as specified by the IEEE 754 standard, which is a binary64 Double precision floating-point format - Still, we are no closer to Defining a Keyword in Code and more importantly "and how they are constructed"