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++ is a superset of C. You can write C code and compile it with the C++ compiler. So for Arduino programming, most projects will be straight C. Library development and more advanced things may prompt you to use C++. Itâs not so simple: Incompatibilities Between ISO C and ISO C++. C and C++ start with the same letter, use semicolon and curly braces, like C#. C and C++ are much more similar.