| C# type | .Net Type |
|---|---|
| bool | System.Boolean |
| byte | System.Byte |
| sbyte | System.SByte |
| char | System.Char |
| decimal | System.Decimal |
| double | System.Double |
| float | System.Single |
| int | System.Int32 |
| uint | System.UInt32 |
| long | System.Int64 |
| ulong | System.UInt64 |
| object | System.Object |
| short | System.Int16 |
| ushort | System.UInt16 |
| string | System.String |
Some regexes:
Build this table
Find:^([a-z]*)\t([a-z\.A-Z0-9]*)
Replace:
Build switch case for each type:
Find:^([a-z]*)\t([a-z\.A-Z0-9]*)
Replace:\t\tcase "\2": \n\t\t\tstrConvertedType = "\1"; \n\t\t\tbreak;\n\n
Build the ConvertToCodeCalls:
Find: ^([a-z]*)\t([a-zA-Z0-9]*)\.([a-zA-Z0-9]*)
Replace:\t\tcase "\2.\3" : \n\t\t strConvertTo = "System.Convert.To\3" ;\n\t\t break;\n
No comments:
Post a Comment
- the first minus - Comments have to be moderated because of the spammers
- the second minus - I am very lazy at moderating comments ... hardly find time ...
- the third minus - Short links are no good for security ...
- The REAL PLUS : Any critic and positive feedback is better than none, so your comments will be published sooner or later !!!!