/// <summary> /// Compare this field with another <code>ObjectStreamField</code>. Return /// -1 if this is smaller, 0 if equal, 1 if greater. Types that are /// primitives are "smaller" than object types. If equal, the field names /// are compared. /// </summary> // REMIND: deprecate? public virtual int CompareTo(Object obj) { ObjectStreamField other = (ObjectStreamField)obj; bool isPrim = Primitive; if (isPrim != other.Primitive) { return(isPrim ? -1 : 1); } return(Name_Renamed.CompareTo(other.Name_Renamed)); }
private static FieldWrapper GetFieldWrapper(java.io.ObjectStreamField field) { java.lang.reflect.Field f = field.getField(); return(f == null ? null : FieldWrapper.FromField(f)); }