Skip to content

Instantly share code, notes, and snippets.

@nickdarnell
Created March 28, 2015 12:46
Show Gist options
  • Save nickdarnell/b7f81c9f8cc977a6b68d to your computer and use it in GitHub Desktop.
Save nickdarnell/b7f81c9f8cc977a6b68d to your computer and use it in GitHub Desktop.
%typemap(cscode) YourBaseRTTIObject
%{
internal YourBaseRTTIObject m_castedSource;
public bool IsKindOf<T>()
{
// Use your C++ RTTI system to test if this wrapped C# object's
// native object is a 'typeof(T).Name'
}
%}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment