Sample app C# fix