Last active
December 12, 2015 04:38
-
-
Save tomspilman/4716106 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
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