From be7f5aebc7e0f3ac63a43645533e9661d9606483 Mon Sep 17 00:00:00 2001 From: La Programmatrice Verde Date: Fri, 4 Apr 2025 10:01:25 +0200 Subject: [PATCH] Fine --- Auto.cs | 26 ++++++++++++++++++ Grafica.cs | 5 ---- Program.cs | 9 ++++-- ...CoreApp,Version=v9.0.AssemblyAttributes.cs | 4 +++ obj/Debug/net9.0/oggetti_1.AssemblyInfo.cs | 22 +++++++++++++++ .../net9.0/oggetti_1.AssemblyInfoInputs.cache | 1 + ....GeneratedMSBuildEditorConfig.editorconfig | 15 ++++++++++ obj/Debug/net9.0/oggetti_1.GlobalUsings.g.cs | 8 ++++++ obj/Debug/net9.0/oggetti_1.assets.cache | Bin 0 -> 149 bytes 9 files changed, 82 insertions(+), 8 deletions(-) create mode 100644 Auto.cs delete mode 100644 Grafica.cs create mode 100644 obj/Debug/net9.0/.NETCoreApp,Version=v9.0.AssemblyAttributes.cs create mode 100644 obj/Debug/net9.0/oggetti_1.AssemblyInfo.cs create mode 100644 obj/Debug/net9.0/oggetti_1.AssemblyInfoInputs.cache create mode 100644 obj/Debug/net9.0/oggetti_1.GeneratedMSBuildEditorConfig.editorconfig create mode 100644 obj/Debug/net9.0/oggetti_1.GlobalUsings.g.cs create mode 100644 obj/Debug/net9.0/oggetti_1.assets.cache diff --git a/Auto.cs b/Auto.cs new file mode 100644 index 0000000..07dee47 --- /dev/null +++ b/Auto.cs @@ -0,0 +1,26 @@ +namespace oggetti_1; + +class Auto { + readonly int cilindrata; + readonly string targa; + readonly double peso; + readonly double volume; + readonly string marca; + + public Auto(int p_cilindrata, string p_targa, double p_peso, double p_volume, string p_marca) { + this.cilindrata = p_cilindrata; + this.targa = p_targa; + this.peso = p_peso; + this.volume = p_volume; + this.marca = p_marca; + } + + public void Stampa() { + Console.WriteLine($"Cilindrata: {this.cilindrata}"); + Console.WriteLine($"Targa: {this.targa}"); + Console.WriteLine($"Peso: {this.peso}"); + Console.WriteLine($"Volume: {this.volume}"); + Console.WriteLine($"Marca: {this.marca}"); + } + +} \ No newline at end of file diff --git a/Grafica.cs b/Grafica.cs deleted file mode 100644 index 87e3194..0000000 --- a/Grafica.cs +++ /dev/null @@ -1,5 +0,0 @@ -namespace oggetti_1; - -class Grafica { - -} \ No newline at end of file diff --git a/Program.cs b/Program.cs index 46eaa18..4d88f5f 100644 --- a/Program.cs +++ b/Program.cs @@ -2,8 +2,11 @@ class Program { - static void Main(string[] args) - { - Console.WriteLine("Hello, World!"); + static void Main(string[] args) { + Auto auto = new Auto(3600, "DV643RH", 2547.3, 8472, "Ford"); + Auto auto2 = new Auto(2400, "AB482GT", 2345.542, 4325, "FIAT"); + + auto.Stampa(); + auto2.Stampa(); } } diff --git a/obj/Debug/net9.0/.NETCoreApp,Version=v9.0.AssemblyAttributes.cs b/obj/Debug/net9.0/.NETCoreApp,Version=v9.0.AssemblyAttributes.cs new file mode 100644 index 0000000..9e76325 --- /dev/null +++ b/obj/Debug/net9.0/.NETCoreApp,Version=v9.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v9.0", FrameworkDisplayName = ".NET 9.0")] diff --git a/obj/Debug/net9.0/oggetti_1.AssemblyInfo.cs b/obj/Debug/net9.0/oggetti_1.AssemblyInfo.cs new file mode 100644 index 0000000..bdf8ee2 --- /dev/null +++ b/obj/Debug/net9.0/oggetti_1.AssemblyInfo.cs @@ -0,0 +1,22 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("oggetti_1")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+2491ea45d236ee677dca113d65a3cbfa7f42fa4a")] +[assembly: System.Reflection.AssemblyProductAttribute("oggetti_1")] +[assembly: System.Reflection.AssemblyTitleAttribute("oggetti_1")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/obj/Debug/net9.0/oggetti_1.AssemblyInfoInputs.cache b/obj/Debug/net9.0/oggetti_1.AssemblyInfoInputs.cache new file mode 100644 index 0000000..880aab9 --- /dev/null +++ b/obj/Debug/net9.0/oggetti_1.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +4733b9c6edd51ecb0171ae4b6be6f468f05027dc26b187ba771da8d0a6e7486f diff --git a/obj/Debug/net9.0/oggetti_1.GeneratedMSBuildEditorConfig.editorconfig b/obj/Debug/net9.0/oggetti_1.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..c207adf --- /dev/null +++ b/obj/Debug/net9.0/oggetti_1.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,15 @@ +is_global = true +build_property.TargetFramework = net9.0 +build_property.TargetPlatformMinVersion = +build_property.UsingMicrosoftNETSdkWeb = +build_property.ProjectTypeGuids = +build_property.InvariantGlobalization = +build_property.PlatformNeutralAssembly = +build_property.EnforceExtendedAnalyzerRules = +build_property._SupportedPlatformList = Linux,macOS,Windows +build_property.RootNamespace = oggetti_1 +build_property.ProjectDir = /home/Verde/git/oggetti_1/ +build_property.EnableComHosting = +build_property.EnableGeneratedComInterfaceComImportInterop = +build_property.EffectiveAnalysisLevelStyle = 9.0 +build_property.EnableCodeStyleSeverity = diff --git a/obj/Debug/net9.0/oggetti_1.GlobalUsings.g.cs b/obj/Debug/net9.0/oggetti_1.GlobalUsings.g.cs new file mode 100644 index 0000000..8578f3d --- /dev/null +++ b/obj/Debug/net9.0/oggetti_1.GlobalUsings.g.cs @@ -0,0 +1,8 @@ +// +global using global::System; +global using global::System.Collections.Generic; +global using global::System.IO; +global using global::System.Linq; +global using global::System.Net.Http; +global using global::System.Threading; +global using global::System.Threading.Tasks; diff --git a/obj/Debug/net9.0/oggetti_1.assets.cache b/obj/Debug/net9.0/oggetti_1.assets.cache new file mode 100644 index 0000000000000000000000000000000000000000..e351d27a8cd2f375192900ba208c0fa7791a38d3 GIT binary patch literal 149 zcmWIWc6a1qU|^X4v)-|OZ|>9Qy0gN)OH>(WrFU$033btMdYf|~bC!z2M4%dC0V7bM jjDALbZmND*YEeq6zFuBwdTNP&L1J=tVtQ(^J|Tku62ls+ literal 0 HcmV?d00001