Thats just strange. By commenting out a couple of lines of code, I can build my C# app and Avast is ok with it.
Unfortunately I really wanted those lines in there - just a minimum height check on a Windows control on my form.
Anyways, have posted a copy of the file with a false positive report.