converter

What is the best C# to VB.net converter?

While searching the interweb for a solution for my VB.net problems I often find helpful articles on a specific topic, but the code is C#. That is no big problem but it cost some time to convert it to VB manually. There are some sites that offer code converters from C# to VB and vice versa, but to fix all the flaws after the code-conversi...

How do I best convert a string representation into a DbType?

Suppose I have a string 'nvarchar(50)', which is for example the T-SQL string segment used in creating a table of that type. How do I best convert that to an enum representation of System.Data.DbType? Could it handle the many different possible ways of writing the type in T-SQL, such as: [nvarchar](50) nvarchar 50 @Jorge Table: Yes,...

How do I best convert a DbType to System.Type?

How do I best convert a System.Data.DbType enumeration value to the corresponding (or at least one of the possible corresponding) System.Type values? For example: DbType.StringFixedLength -> System.String DbType.String -> System.String DbType.Int32 -> System.Int32 I've only seen very "dirty" solutions but nothing really clean. (yes...

British English to American English (and vice versa) Converter

Hi, Does anyone know of a library or bit of code that converts British English to American English and vice versa? I don't imagine there's too many differences (some examples that come to mind are doughnut/donut, colour/color, grey/gray, localised/localized) but it would be nice to be able to provide localised site content. ...

How to convert HTML to XHTML?

I need to convert HTML documents into valid XML, preferably XHTML. What's the best way to do this? Does anybody know a toolkit/library/sample/...whatever that helps me to get that task done? To be a bit more clear here, my application has to do the conversion automatically at runtime. I don't look for a tool that helps me to move some p...

Open Source C++ to C# compiler/converter

Even if it requires manual input. Is there any good-enough option available? ...

WPF Data Binding and IValueConverter

Why is it that when I use a converter in my binding expression in WPF, the value is not updated when the data is updated. I have a simple Person data model: class Person : INotifyPropertyChanged { public string FirstName { get; set; } public string LastName { get; set; } } My binding expression looks like this: <TextBlock Text="{B...

Are there any recent Lua to JavaScript converters or interpreters somewhere?

I need to find a good Lua to JavaScript converter; lua2js on luaforge.org is out of date (3 or so years old and looks like it doesn't work on Lua 5.1) and I haven't yet found anything on Google. Does anyone have any experience with any other converters out there? It should work on Lua 5.1 and preferably be .NET based, but .NET is not a ...

WPF Databinding and cascading Converters?

hi there, i wonder if it is possible to cascade converters when using wpf databinding. e.g. something like <SomeControl Visibility="{Binding Path=SomeProperty, Converter={StaticResource firstConverter}, Converter={StaticResource secondConverter}}"/> is it possible at all or do i have to create a custom converter that combines the fu...

Convert Javacript code to VBScript code?

I have been given a task to convert code that is written in JavaScript over to VBScript. It is actually quite basic code and it is really just the syntax that needs to be converted. For example if (str == "string text") { foo = "foo"; } else { foo2 = "foo2"; } becomes If (str = "string text") Then foo = "foo" Else foo2...

How to convert string result of enum with overridden toString() back to enum?

Given the following java enum: public enum AgeRange { A18TO23 { public String toString() { return "18 - 23"; } }, A24TO29 { public String toString() { return "24 - 29"; } }, A30TO35 { public String toString() { return "30 - 35"; } }, } Is th...

Free MS Word doc or html to chm or pdf?

I have a piece of software that currently packages an MS Word file as the user guide/help. I would like to make this into either a pdf or a chm file. I do not wish to re-write the help or user guide. I did not see anything that is exactly what I need. i don't want to pay for it (I'd rather continue with Word Doc) and I wantt o just b...

WPF - Pass the value of one control to a Converter to set the width on another control

I want to set the width of a TextBlock based on the width of its container, minus the margins set on the TextBlock. Here is my code <TextBlock x:Name="txtStatusMessages" Width="{Binding ElementName=LayoutRoot,Path=ActualWidth }" TextWrapping="WrapWithOverflow" Foreground="White" Ma...

xls to text converter

Anyone know of a free xls to text converter that can be run from the unix command line? ...

WPF: Is it possible to use a converter within a style?

WPF: Is it possible to use a converter within a style? For instance I am trying to create a styled TextBlock whose text resizes based on the ActualHeight property of the TextBlock. The resizing would be don via converter... ...

Cross platform open source Doc to RTF converter

I need a doc to rtf converter that will run from the command line, and from within a Perl script (I know I'll need to use system() to run the converter). Any recommendations. Something that can be compiled statically linked so it can run on workstations as standalone binaries would be even more useful. I want to preserve things like h...

Export video into animated gif?

Is there any recommended programs that will output an animated gif based on a video input? Preferably mac but windows is fine as well. ...

Universal document format converter

I am looking to convert any format to/from HTML. I'd like to support DOC, DOCX, PDF, ODT, RDF, DocBook, and TXT. I have found lots of format-to-format conversion utilities, but for convenience of implementation, a single tool is best. This will also make it easier to add new formats as the vendor or open-source project expands the lib...

How to convert code from C# to PHP

Hello, I have a business logic classes that are written in pure C# (without any specific things from this language) and I would convert this code into PHP. I can write my own parser, but think if I could someone did it before me. Could you please tell me where can I find this kind of converter? Ps. As I've written I use only plain C#...

Built-in WPF IValueConverters

Ok, it was a nice surprise (after writing it several times) to find that there already is a BooleanToVisibilityConverter in System.Windows.Controls namespace. Probably there are more such hidden time-savers. Anyone got some? ...