ソースコード
namespace Kogane { public static class CharExtensionMethods { public static bool IsAlphanumeric( this char self ) { return char.IsLetterOrDigit( self ); } } }
使用例
Debug.Log( '0'.IsAlphanumeric() ); // True Debug.Log( 'A'.IsAlphanumeric() ); // True Debug.Log( 'a'.IsAlphanumeric() ); // True