/// <summary> /// Create an instance of a source map writer of the given name and from the given base stream. /// </summary> /// <param name="writer">base stream</param> /// <param name="implementationName">implementation name to create</param> /// <returns>instance of a source map writer</returns> public static ISourceMap Create(TextWriter writer, string implementationName) { ISourceMap implementation = null; // which implementation to instantiate? if (string.Compare(implementationName, V3SourceMap.ImplementationName, StringComparison.OrdinalIgnoreCase) == 0) { implementation = new V3SourceMap(writer); } else if (string.Compare(implementationName, ScriptSharpSourceMap.ImplementationName, StringComparison.OrdinalIgnoreCase) == 0) { implementation = new ScriptSharpSourceMap(writer); } return implementation; }
/// <summary> /// Create an instance of a source map writer of the given name and from the given base stream. /// </summary> /// <param name="writer">base stream</param> /// <param name="implementationName">implementation name to create</param> /// <returns>instance of a source map writer</returns> public static ISourceMap Create(TextWriter writer, string implementationName) { ISourceMap implementation = null; // which implementation to instantiate? if (string.Compare(implementationName, V3SourceMap.ImplementationName, StringComparison.OrdinalIgnoreCase) == 0) { implementation = new V3SourceMap(writer); } else if (string.Compare(implementationName, ScriptSharpSourceMap.ImplementationName, StringComparison.OrdinalIgnoreCase) == 0) { implementation = new ScriptSharpSourceMap(writer); } return(implementation); }