forked from icsharpcode/RefactoringEssentials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconverter.txt
27 lines (23 loc) · 919 Bytes
/
converter.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Converter:
Known limitations and bugs:
- Web UI does not report syntax errors
- Comments are not converted
- Preprocessor directives are not converted
We probably cannot convert all preprocessor directives exactly without changing the semantics.
Missing features and bugs:
C# to VB:
- unsafe code cannot be converted
VB to C#:
- statements:
* special select case expressions
* special statements: call, erase, redim, a.o.
- expressions:
* .. To .. arguments
* anonymous types
- special cases:
* Should add Public Modifier to inner types, methods, properties and fields in structures
* Built-in methods => Prefix with class name
* Function A() \n A = SomeValue \n End Function -> convert to return statement
* Comparison with empty string literal -> string.IsNullOrEmpty
* Add default value to local variable declarations without initializer
* XML literals -> XLinq