ResourceTypeDetector

ResourceTypeDetector class

Utility static methods for detecting resource types (formats)

public static class ResourceTypeDetector

Methods

Name Description
static DetectTypeFromFilename(string) Detects a type from specified filename and returns an instance of respective IResourceType
static TryDetectResource(Stream, string, IResourceType) Tries to analyze an input stream and creates one of supportable HTML resources from it, taking into account a specified assumptive type, if it is not null

See Also