Objective C to C# » Developer.Team - Developers Paradise!

Objective C to C#

Objective C to C#
Objective C to C# | 421 kB


For those addicted .Net programmers like me who are in need of a bridge between objective c (especially for iOS developers) and the native C# programs. There is this tool you can use to convert between both languages to keep your applications moving.

What it does:
Translate code syntax.
Provide a GUI for batch code translation.
Collect #define constants into static class values.
Change C to C# enums.
Remove memory management calls and pointer operations.
Wrap code into a specified namespace.
Convert interface (C# class) syntax (fields, constructors, properties).
Convert protocol (C# interface) syntax.
Unmangle method signatures into CamelCase method names.
Translate expressions, statements and literals (strings, booleans, NSLog, for-in).
Translate some types (NSString, BOOL, NSObject, NSTimeInterval, id<>).
Translate C array syntax.
Translate NSArray/NSMutableArray messages into ArrayList method calls.
Changes C math functions into Math class calls.
Unroll #define macros.
Translate block syntax into anonymous delegates.
Translate exception throwing and some exception types.
Handle NSCoding with a special C# library

What it doesn't:
Understand your code (semantics).
Replace your source code editor.
Produce code that will compile without manual fixes.
Work on files with invalid syntax.
Work on files with missing headers (but try the ignore missing imports option).
Work on files with reserved C# keywords in Objective-C code (there is an option to pre/postfix/capitalize them, which works in 95% of cases).
Preserve comments and formatting (we have experimental support for preserving comments in most common places).
Transform anything else than what it does (obvious, but worth mentioning - if it's not on the left list it will stay the same as in input: NSDictionary, NSDate, CGRect ...).

Home:
http://www.razum.si/


Only for V.I.P
Warning! You are not allowed to view this text.