public static bool IsFile(this ITypeSpec spec, INakedObjectsFramework framework) { return(spec != null && (spec.IsImage(framework) || spec.IsFileAttachment(framework) || spec.ContainsFacet <IArrayValueFacet <byte> >())); }