ReordenarAsignaciones
v1.2
Console application to change the order of assignments. (revision May 21, 2023)
Version for .NET 6.
In NuGet you can download the package and install it as a .NET Tool.
Por ejemplo esta asignación:
LaFactura.Activa = chkFacActiva.IsChecked;
Lo convertirá en:
chkFacActiva.IsChecked = LaFactura.Activa;
Y al revés:
chkFacActiva.IsChecked = LaFactura.Activa;
Lo convertirá en:
LaFactura.Activa = chkFacActiva.IsChecked;
In the code I use extra conversions of some extensions that I usually use with a class/module called Extensions.
In the Extensions folder is the Visual Basic code and the code converted to C# (unreviewed).
Those extensions convert a text string to a specific type:
AsDecimal, AsDecimalInt, AsInteger, AsDouble, AsDate, AsDateTime y AsTimeSpan.
Los equivalentes en ToString son:
AsInteger .ToString()
AsDecimalInt .ToString()
AsDecimal .ToString("0.##")
AsDouble .ToString("0.##")
AsDate .ToString("dd/MM/yyyy")
AsDateTime .ToString("dd/MM/yyyy HH:mm")
AsTimeSpan .ToString("hh\:mm")
En Visual Basic sería: .ToString("hh:mm")