You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
688 B
26 lines
688 B
using System; |
|
using System.Collections.Generic; |
|
using System.Linq; |
|
using System.Text; |
|
|
|
using ICSharpCode.NRefactory; |
|
using ICSharpCode.RubyBinding; |
|
|
|
namespace ICSharpCode.CodeConversion |
|
{ |
|
public class RubyHelpers |
|
{ |
|
public static bool Convert(SupportedLanguage inputLanguage, string ProvidedSource, out string ConvertedSource, out string ErrorMessage) |
|
{ |
|
NRefactoryToRubyConverter converter = new |
|
NRefactoryToRubyConverter(inputLanguage); |
|
|
|
string convertedCode = converter.Convert(ProvidedSource); |
|
|
|
ConvertedSource = convertedCode; |
|
ErrorMessage = ""; |
|
|
|
return true; |
|
} |
|
} |
|
}
|
|
|