public FakeCommonTypeBuilder WhereFrom(MonoCecilModule monoCecilModule) { if (this.monoCecilModule != null) { throw new ArgumentException("Module already saved"); } this.monoCecilModule = monoCecilModule; return(this); }
public static IEnumerable <CommonType> WhereFrom(this IEnumerable <CommonType> commonTypes, MonoCecilModule monoCecilModule) { return(commonTypes.Where(commonType => commonType.MonoCecilType.Module == monoCecilModule)); }