Full copy pasta of C# code.  Yeah.