FileExtensionReplacementList.ReplaceFileExtensions Method

Uses the file extension replacements to select the correct version from a set of files.

Namespace:  System.Web.Optimization
Assembly:  System.Web.Optimization (in System.Web.Optimization.dll)

public virtual IEnumerable<VirtualFile> ReplaceFileExtensions(
	BundleContext context,
	IEnumerable<VirtualFile> files
)

Parameters

context
Type: System.Web.Optimization.BundleContext
The BundleContext object that contains state for both the framework configuration and the HTTP request.
files
Type: System.Collections.Generic.IEnumerable<VirtualFile>
The files contained in the bundle.

Return Value

Type: System.Collections.Generic.IEnumerable<VirtualFile>
The list of file extensions.
Show: