public static PredefinedType?SpecToPredefinedType(INakedObjectSpecificationSurface spec) { if (spec.IsFileAttachment() || spec.IsImage()) { return(PredefinedType.Blob); } if (spec.IsParseable() || spec.IsCollection() || spec.IsVoid()) { Type underlyingType = spec.GetUnderlyingType(); return(TypeToPredefinedType(underlyingType)); } return(null); }
public static bool IsAttachment(INakedObjectSpecificationSurface spec) { return (spec.IsImage() || spec.IsFileAttachment()); }
public static PredefinedType? SpecToPredefinedType(INakedObjectSpecificationSurface spec) { if (spec.IsFileAttachment() || spec.IsImage()) { return PredefinedType.Blob; } if (spec.IsParseable() || spec.IsCollection() || spec.IsVoid()) { Type underlyingType = spec.GetUnderlyingType(); return TypeToPredefinedType(underlyingType); } return null; }
public static bool IsAttachment(INakedObjectSpecificationSurface spec) { return(spec.IsImage() || spec.IsFileAttachment()); }