Skip to content

Instantly share code, notes, and snippets.

@tomspilman
Last active December 12, 2015 04:38
Show Gist options
  • Save tomspilman/4716106 to your computer and use it in GitHub Desktop.
Save tomspilman/4716106 to your computer and use it in GitHub Desktop.
internal class GLString
{
public GLString(string value)
{
#if iOS
_string = value;
#elif ANDROID
_string = new StringBuilder(value);
#endif
}
#if iOS
private readonly string _string;
public static implicit operator string(GLString str)
{
return str._string;
}
#elif ANDROID
private readonly StringBuilder _string;
public static implicit operator StringBuilder(GLString str)
{
return str._string;
}
#endif
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment