Viel Spaß beim Surfen.
|
|||
In this article I described a simple algorithm which can be used to convert an arbitrary long number with base X to a number with base Y. The implementation assumed that all digits have an equal base, which suffices in most cases. In this article we will make small modifications in order to allow for number conversions where both the source and the destination number of the conversion may have different bases for each digit. I decided to implement this algorithm and write about it, because I needed it for my own experiments -- I wanted to play around with an idea I have had. For those of you who are interested, I'll write about my experiments in a subsequent article. :)
|
|||
This article describes a simple algorithm which can be used to transform a block of numbers from base X to a base Y. It can be used to encode a string or binary data not only into another represenation like base16, base32 or base64, but to any base you like.
|
|||
This article introduces a way to emulate F#'s 'with' construct in C#. In particular, it is shown how a factory method can be implemented which creates a new object based on a provided template object and optional additional values (replacing values of the template object) in a type-safe way. While the presented solution doesn't use new C# 4.0 language features, using them for this task is also considered and discussed.
|
|||
