public static string GetQuery(this IQueryPart part) { StringBuilder sb = new StringBuilder(); part.BuildQuery(sb); return(sb.ToString()); }