migrated C# examples