示例#1
0
 void IIntermediateSegmentableDeclarationPartCollection.Add(IIntermediateSegmentableDeclaration part)
 {
     if (!(part is TDeclaration))
     {
         throw new ArgumentException("part");
     }
     this.Add((TDeclaration)(part));
 }
示例#2
0
 void IIntermediateSegmentableDeclarationPartCollection.Add(IIntermediateSegmentableDeclaration part)
 {
     if (part is IIntermediateAssembly)
     {
         this.Add((IIntermediateAssembly)(part));
     }
     else
     {
         throw new ArgumentException("part");
     }
 }