diff --git a/Piatto.cs b/Piatto.cs index 3e10862..94b9a08 100644 --- a/Piatto.cs +++ b/Piatto.cs @@ -1,5 +1,42 @@ namespace ordini_ristorante; class Piatto { + string nome; + string descrizione; + float prezzo; + public Piatto(string p_nome, string p_descrizione, float p_prezzo) { + this.nome = p_nome; + this.descrizione = p_descrizione; + this.prezzo = p_prezzo; + } + public string GetNome() { + return this.nome; + } + + public string GetDescrizione() { + return this.descrizione; + } + + public float GetPrezzo() { + return this.prezzo; + } + + public void SetNome(string p_nome) { + this.nome = p_nome; + } + + public void SetDescrizione(string p_descrizione) { + this.descrizione = p_descrizione; + } + + public void SetPrezzo(float p_prezzo) { + this.prezzo = p_prezzo; + } + + public void StampaPiatto() { + Console.WriteLine($"Nome del piatto: {this.GetNome()}"); + Console.WriteLine($"Descrizione: {this.GetDescrizione()}"); + Console.WriteLine($"Prezzo: {this.GetPrezzo()}"); + } } \ No newline at end of file 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/ordini_ristorante.AssemblyInfo.cs b/obj/Debug/net9.0/ordini_ristorante.AssemblyInfo.cs new file mode 100644 index 0000000..b712e2c --- /dev/null +++ b/obj/Debug/net9.0/ordini_ristorante.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("ordini_ristorante")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+9023ed83425a547edfb1994e1147cfea2e2c758a")] +[assembly: System.Reflection.AssemblyProductAttribute("ordini_ristorante")] +[assembly: System.Reflection.AssemblyTitleAttribute("ordini_ristorante")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/obj/Debug/net9.0/ordini_ristorante.AssemblyInfoInputs.cache b/obj/Debug/net9.0/ordini_ristorante.AssemblyInfoInputs.cache new file mode 100644 index 0000000..0b56020 --- /dev/null +++ b/obj/Debug/net9.0/ordini_ristorante.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +9ac5a69e82f66ed2911a99c90a009293dbb97f02178db9df33033cf343bb8fac diff --git a/obj/Debug/net9.0/ordini_ristorante.GeneratedMSBuildEditorConfig.editorconfig b/obj/Debug/net9.0/ordini_ristorante.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..6b1d210 --- /dev/null +++ b/obj/Debug/net9.0/ordini_ristorante.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 = ordini_ristorante +build_property.ProjectDir = /home/Verde/git/ordini_ristorante/ +build_property.EnableComHosting = +build_property.EnableGeneratedComInterfaceComImportInterop = +build_property.EffectiveAnalysisLevelStyle = 9.0 +build_property.EnableCodeStyleSeverity = diff --git a/obj/Debug/net9.0/ordini_ristorante.GlobalUsings.g.cs b/obj/Debug/net9.0/ordini_ristorante.GlobalUsings.g.cs new file mode 100644 index 0000000..8578f3d --- /dev/null +++ b/obj/Debug/net9.0/ordini_ristorante.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/ordini_ristorante.assets.cache b/obj/Debug/net9.0/ordini_ristorante.assets.cache new file mode 100644 index 0000000..a5231fc Binary files /dev/null and b/obj/Debug/net9.0/ordini_ristorante.assets.cache differ