ln functionality in C#