public virtual int CompareTo(object obj) { if (obj == null) { return(1); } var emp = obj as Empresa; return(emp == null ? 1 : Codigo.CompareTo(emp.Codigo)); }
public int CompareTo(UF other) { if (ReferenceEquals(this, other)) { return(0); } if (ReferenceEquals(null, other)) { return(1); } return(Codigo.CompareTo(other.Codigo)); }
public int CompareTo(PlanProgramatico other) { return(Codigo.CompareTo(other.Codigo)); }
/// <summary> /// Compares the current device with the givenn object. /// </summary> /// <param name="obj"></param> /// <returns></returns> public virtual int CompareTo(object obj) { var dev = obj as Dispositivo; return(dev == null ? -1 : Codigo.CompareTo(dev.Codigo)); }
public int CompareTo(object obj) { return(Codigo.CompareTo(obj)); }
public int CompareTo(object obj) { var outro = obj as Produto; return(Codigo.CompareTo(outro.Codigo)); }