protected FrontendInstanceBase(FrontendBase frontend) { if (frontend == null) { throw new ArgumentNullException("frontend"); } this.frontend = frontend; }
public int CompareTo(object obj) { if (obj == null) { throw new ArgumentNullException("obj"); } FrontendBase f = obj as FrontendBase; if (obj == null) { throw new ArgumentException("Argument obj must be of type Frontend.", "obj"); } return(f.id.CompareTo(id)); }