All it'd take is a single drill hole and re-wiring the sensor, but it near the top of the window and no one's even gonna notice it's there. Like mneary said if you have eaves it's even more perfect you can recess it up, completely out of site.
Where C# is just different from C++. value types and reference types exist (struct is value-type, class is reference-type) value types live on the stack, reference types on the heap; references can point to null (must not be valid) code is packaged in assemblies in C#; no automatic conversion from int to bool in C#; main-function is called Main in C#
C#, also known as C sharp, is an object oriented programming language. C# is a multi-paradigm programming language. It includes strong typing, imperative, declarative, functional, procedural, generic, object-oriented (class-based), and component-oriented programming disciplines. C# is based on the C programming language. It was originally developed by Anders Hejlsberg for Microsoft for use in its .NET framework. The C# language was later approved as a standard by Ecma (ECMA-334) and ISO (ISO/IEC 23270:2006).