Created
March 28, 2015 12:46
-
-
Save nickdarnell/b7f81c9f8cc977a6b68d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%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