Пример #1
0
 public override void Add(DBusItem child)
 {
     if (!(child is Interface || child is Node))
     {
         throw new InvalidOperationException("child must be of type Interface or Node");
     }
     base.Add(child);
 }
Пример #2
0
 public override void Add(DBusItem child)
 {
     if (!(child is SignalArg || child is Annotation))
     {
         throw new InvalidOperationException("child must be of type SignalArg or Annotation");
     }
     base.Add(child);
 }
 public override void Add(DBusItem child)
 {
     if (!(child is Signal || child is Method || child is Property || child is Annotation))
     {
         throw new InvalidOperationException("child must be of type Signal, Method, Property, or Annotation");
     }
     base.Add(child);
 }