Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Ok, lets see. First off, there are some datatypes build into the CLR. Those cannot be modified or new ones added, since they are part of the standard. You can find a list <a href="http://msdn.microsoft.com/en-us/library/exx3b86w.aspx" rel="noreferrer">here</a> or <a href="http://msdn.microsoft.com/en-us/library/ya5y69ds.aspx" rel="noreferrer">here</a>. That's C#, but the list should also exist for VB.net somewhere, and it should look equal because the underlying CLR is the same. Also, the list is not complete because floats and char are missing, but you get the idea.</p> <p>But then, there are some structs that encapsulate those Data Types and add some Extra functionality. For example, System.Int32 is just a plain standard struct, no magic involved. Feel free to look at it in Reflector, it's in mscorlib:</p> <pre><code>[Serializable, StructLayout(LayoutKind.Sequential), ComVisible(true)] public struct Int32 : IComparable, IFormattable, IConvertible, IComparable&lt;int&gt;, IEquatable&lt;int&gt; </code></pre> <p>So you want your own "1 to 10" Integer? Then I recommend looking at the nearest suitable type, which is either <code>Int16</code> or <code>Byte</code>. If you look at them, you can see that they all look somewhat similar, but that they are based on one of the built-in datatypes.</p> <p>Just copy/pasting and modifying some of the built-in structs (i.e. <code>System.Byte</code>) does not completely work because some members are internal (i.e. <code>NumberFormatInfo.ValidateParseStyleInteger</code>), but <a href="http://www.red-gate.com/products/reflector/" rel="noreferrer">Reflector</a> could help here.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload