Tag: Development

Community

Conversion Operators

(Jim Mischel) In order to allow direct assignment, we need to define implicit conversion operators so the compiler understands that it’s okay to convert an integer type to Int128. The easiest one to write is converting from UInt64 (ulong in C#) to Int128, as shown here:

Community

First Steps

(Jim Mischel) Since we want the new Int128 to act just like the other integer types, we’ll implement all of the interfaces that the other types implement. The .NET documentation is quite helpful in this regard because it tells us which interfaces those types implement. The Int128 structure definitio