예제 #1
0
 protected FrontendInstanceBase(FrontendBase frontend)
 {
     if (frontend == null)
     {
         throw new ArgumentNullException("frontend");
     }
     this.frontend = frontend;
 }
예제 #2
0
        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));
        }