public static int CompareTo(javaChar self, object value) { if (value == null) { return(1); } if (!(value is Char)) { throw new ArgumentException(Environment.GetResourceString("Arg_MustBeChar")); } return(self.charValue() - ((char)value)); }
internal static object Unbox(object val) { #if STATIC_COMPILER || FIRST_PASS || STUB_GENERATOR return(null); #else java.lang.Byte b = val as java.lang.Byte; if (b != null) { return(b.byteValue()); } java.lang.Boolean b1 = val as java.lang.Boolean; if (b1 != null) { return(b1.booleanValue()); } java.lang.Short s = val as java.lang.Short; if (s != null) { return(s.shortValue()); } java.lang.Character c = val as java.lang.Character; if (c != null) { return(c.charValue()); } java.lang.Integer i = val as java.lang.Integer; if (i != null) { return(i.intValue()); } java.lang.Float f = val as java.lang.Float; if (f != null) { return(f.floatValue()); } java.lang.Long l = val as java.lang.Long; if (l != null) { return(l.longValue()); } java.lang.Double d = val as java.lang.Double; if (d != null) { return(d.doubleValue()); } else { throw new java.lang.IllegalArgumentException(); } #endif }
public static string ToString(javaChar self, IFormatProvider provider) { return(new string(self.charValue(), 1)); }
public static int CompareTo(javaChar self, char value) { return(self.charValue() - value); }
public static bool Equals(javaChar self, char obj) { return(self.charValue() == obj); }
public static CharMap GetAdapter(javaChar self) { return(new CharMap(self.charValue())); }