ReordenarAsignaciones 1.2.0
dotnet tool install --global ReordenarAsignaciones --version 1.2.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local ReordenarAsignaciones --version 1.2.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=ReordenarAsignaciones&version=1.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package ReordenarAsignaciones --version 1.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ReordenarAsignaciones
Aplicación de consola para cambiar el orden de las asignaciones. (revisión del 21-may-2023)
Versión para .NET 6.
En NuGet puedes descargar el paquete e instalarlo como Tool de .NET.
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;
Conversiones especializadas
En el código utilizo conversiones extras de unas extensiones que suelo utilizar con una clase/módulo llamado Extensiones.
En la carpeta Extensiones está el código de Visual Basic y el convertido a C# (sin revisar).
Esas extensiones convierten una cadena de texto en un tipo específico:
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")
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
Version | Downloads | Last updated |
---|---|---|
1.2.0 | 211 | 5/21/2023 |