Skip to content

Instantly share code, notes, and snippets.

View ariel-avi's full-sized avatar

Ariel Avi ariel-avi

View GitHub Profile
@ariel-avi
ariel-avi / ManagedObject.h
Last active November 4, 2020 19:30
ManagedObject.h
#pragma once
using namespace System;
namespace Interop
{
template <class T>
public ref class ManagedObject
{
protected:
T* m_Instance;
@ariel-avi
ariel-avi / Base.h
Created November 4, 2020 20:46
Base.h
#pragma once
class Base {
private:
int m_SomeInt;
public:
inline int getInt() const {
return m_someInt;
}
@ariel-avi
ariel-avi / Base.h
Created November 4, 2020 20:56
C++/CLI wrap example
// ISO C++
#pragma once
class Base {
private:
int m_SomeInt;
public:
inline int getInt() const {