public int CompareTo(SchemaBinaryBase obj) { long l = 0; while( l < myValue.Length && l < obj.Value.Length && myValue[l]==obj.Value[l] ) l++; if( l < myValue.Length && l < obj.Value.Length ) return myValue[l].CompareTo( obj.Value[l] ); return myValue.Length.CompareTo( obj.Value.Length ); }
public SchemaBinaryBase(SchemaBinaryBase obj) { myValue = obj.myValue; isEmpty = obj.isEmpty; isNull = obj.isNull; }