private int FindSdvig(MyChar myChar, char nchar) { if (myChar.Key < nchar) { return(MAXCHAR - nchar + myChar.Key - MINCHAR + 1); } else { return(myChar.Key - nchar); } }
public int CompareTo(object obj) { MyChar tmp = (MyChar)obj; return(-Value.CompareTo(tmp.Value)); }