コード例 #1
0
 public override void Remove(Component component)
 {
     components.Remove(component);
 }
コード例 #2
0
 public abstract void Remove(Component component);
コード例 #3
0
 public override void Remove(Component component)
 {
     throw new NotSupportedException("File can't support the operation!");
 }
コード例 #4
0
 public void RemoveChild(Component component)
 {
     children.Remove(component);
 }
コード例 #5
0
 public abstract void Add(Component component);
コード例 #6
0
ファイル: Program.cs プロジェクト: Dipen411/Patterns
 public abstract void Remove(Component c);
コード例 #7
0
ファイル: Program.cs プロジェクト: Dipen411/Patterns
 public override void Remove(Component component)
 {
     children.Remove(component);
 }
コード例 #8
0
 public void AddChild(Component component)
 {
     children.Add(component);
 }
コード例 #9
0
 public void RemoveChild(Component component)
 {
     children.Remove(component);
 }
コード例 #10
0
 public void addComponent(Component c)
 {
     content.Add(c);
 }
コード例 #11
0
 public void removeComponent(Component c)
 {
     content.Remove(c);
 }
コード例 #12
0
ファイル: Leaf.cs プロジェクト: pyz1989/DesignPatterns
 public override void Add(Component component)
 {
 }
コード例 #13
0
ファイル: Leaf.cs プロジェクト: pyz1989/DesignPatterns
 public override void Remove(Component component)
 {
 }
コード例 #14
0
ファイル: Leaf.cs プロジェクト: QQ2287991080/DesignPatterns
 public void Remove(Component c)
 {
     Console.WriteLine("不支持该方法");
     return;
 }
コード例 #15
0
ファイル: Program.cs プロジェクト: Dipen411/Patterns
 public override void Remove(Component c)
 {
     Console.WriteLine("Cannot remove from a leaf");
 }
コード例 #16
0
ファイル: Composite.cs プロジェクト: pipifot/Design_Patterns
 public override void Add(Component component)
 {
     _children.Add(component);
 }
コード例 #17
0
ファイル: Program.cs プロジェクト: Dipen411/Patterns
 public abstract void Add(Component c);
コード例 #18
0
ファイル: Composite.cs プロジェクト: pipifot/Design_Patterns
 public override void Remove(Component component)
 {
     _children.Remove(component);
 }
コード例 #19
0
ファイル: Program.cs プロジェクト: Dipen411/Patterns
 public override void Add(Component component)
 {
     children.Add(component);
 }
コード例 #20
0
 public void Remove(Component component)
 {
     components.Remove(component);
 }
コード例 #21
0
ファイル: Program.cs プロジェクト: Dipen411/Patterns
 public override void Add(Component c)
 {
     Console.WriteLine("Cannot add to a leaf");
 }
コード例 #22
0
 public void AddChild(Component component)
 {
     children.Add(component);
 }