Wiki

Changes between Version 2 and Version 3 of PortingC

Show
Ignore:
Timestamp:
06/07/10 02:26:22 (14 years ago)
Author:
gauthier
Comment:

typo + precision about using [[ ]] when needed

Legend:

Unmodified
Added
Removed
Modified
  • PortingC

    v2 v3  
    210210    e.g {{{ ListEvent le = event as ListEvent;   --->  le = event to ListEvent }}} 
    211211         
    212 18. String catenated with expressions (converted to string) can be modified to use string interpolation. 
    213     Put the expressions ( suitably cobra converted) into the string inside [] 
     21218. String concatenated with expressions (converted to string) can be modified to use string interpolation. 
     213    Put the expressions (suitably cobra converted) into the string inside [] 
    214214    e.g. {{{ "Value " + item.Value + " selected item: " + item.Selected  --->  "Value [item.value] selected item:[item.selected]" }}} 
    215               
     215    if you have [ and ] symbols, these should be doubled 
     216    e.g {{{"some constant [ string ]" ---> "some constant [[ string ]]"}}} 
    21621719. Adding eventHandlers 
    217218    Cobra uses the '''listen''' statement to register event handlers where C# uses an override on