This has nothing to do with vcpkg...... close this issue ..... please move your question to stackoverflow. (C#?) static methods don't act on the instance itself but on the class. As such the `this` pointer is not accessible although I don't know why the compiler lets you do such nonsense in whatever language you are using here