예제 #1
0
        public override string ToString()
        {
            return(GetType().Name + ";Accepts:" + AcceptedCharacters +
#pragma warning disable 618 // Ignore obsolete warning for EditorHints
                   ((EditorHints == EditorHints.None) ? string.Empty : (";Hints: " + EditorHints.ToString())));

#pragma warning restore 618 // Ignore obsolete warning for EditorHints
        }
예제 #2
0
 public override string ToString()
 {
     return(GetType().Name
            + ";Accepts:"
            + AcceptedCharacters
            + (
                (EditorHints == EditorHints.None)
                 ? String.Empty
                 : (";Hints: " + EditorHints.ToString())
                ));
 }