C# implementation of IRegistry interface.