// CS0751: A partial method must be declared within a partial class or partial struct // Line: 7 public class C { partial void Foo () { } }