void IIntermediateSegmentableDeclarationPartCollection.Add(IIntermediateSegmentableDeclaration part) { if (!(part is TDeclaration)) { throw new ArgumentException("part"); } this.Add((TDeclaration)(part)); }
void IIntermediateSegmentableDeclarationPartCollection.Add(IIntermediateSegmentableDeclaration part) { if (part is IIntermediateAssembly) { this.Add((IIntermediateAssembly)(part)); } else { throw new ArgumentException("part"); } }