MZS2 C# library code