public static IEnumerable <IDocument> FromFactory(this IEnumerable <GenericDocument> docs, IDocumentTypeFactory df) { return(from d in docs select d.FromFactory(df)); }
public IDocument FromFactory(IDocumentTypeFactory df) { return((IDocument)(this.ToObject(df.GetNetTypeFor(this.TYPE)))); }