diff --git a/Batch25-polymorphism b/Batch25-polymorphism new file mode 100644 index 0000000..e033346 --- /dev/null +++ b/Batch25-polymorphism @@ -0,0 +1,3 @@ +Comment + +The student showed good understanding of the principle diff --git a/Batch25/Assignments/Polymorphism Assignment.txt b/Batch25/Assignments/Polymorphism Assignment.txt new file mode 100644 index 0000000..3193e7b --- /dev/null +++ b/Batch25/Assignments/Polymorphism Assignment.txt @@ -0,0 +1,2 @@ + //Polymorphism Assignment + //Define a parent class with three methods. define another class, a child class to inherit the parent class. implement method overloading, overiding and hiding on each of the methods. \ No newline at end of file diff --git a/Batch25/Comments/Comment.txt b/Batch25/Comments/Comment.txt new file mode 100644 index 0000000..e033346 --- /dev/null +++ b/Batch25/Comments/Comment.txt @@ -0,0 +1,3 @@ +Comment + +The student showed good understanding of the principle diff --git a/Batch25/LessonMaterials/List/.vs/List/DesignTimeBuild/.dtbcache.v2 b/Batch25/LessonMaterials/List/.vs/List/DesignTimeBuild/.dtbcache.v2 new file mode 100644 index 0000000..9efab4b Binary files /dev/null and b/Batch25/LessonMaterials/List/.vs/List/DesignTimeBuild/.dtbcache.v2 differ diff --git a/Batch25/LessonMaterials/List/.vs/List/FileContentIndex/36102348-8ac2-4629-b62a-5b959a353324.vsidx b/Batch25/LessonMaterials/List/.vs/List/FileContentIndex/36102348-8ac2-4629-b62a-5b959a353324.vsidx new file mode 100644 index 0000000..7a2dfc3 Binary files /dev/null and b/Batch25/LessonMaterials/List/.vs/List/FileContentIndex/36102348-8ac2-4629-b62a-5b959a353324.vsidx differ diff --git a/Batch25/LessonMaterials/List/.vs/List/FileContentIndex/a3a034c8-39d0-497d-8472-cacfbbe6b8cc.vsidx b/Batch25/LessonMaterials/List/.vs/List/FileContentIndex/a3a034c8-39d0-497d-8472-cacfbbe6b8cc.vsidx new file mode 100644 index 0000000..05878c7 Binary files /dev/null and b/Batch25/LessonMaterials/List/.vs/List/FileContentIndex/a3a034c8-39d0-497d-8472-cacfbbe6b8cc.vsidx differ diff --git a/Batch25/LessonMaterials/List/.vs/List/v17/.futdcache.v2 b/Batch25/LessonMaterials/List/.vs/List/v17/.futdcache.v2 new file mode 100644 index 0000000..fa06d22 Binary files /dev/null and b/Batch25/LessonMaterials/List/.vs/List/v17/.futdcache.v2 differ diff --git a/Batch25/LessonMaterials/List/.vs/List/v17/.suo b/Batch25/LessonMaterials/List/.vs/List/v17/.suo new file mode 100644 index 0000000..c2531e5 Binary files /dev/null and b/Batch25/LessonMaterials/List/.vs/List/v17/.suo differ diff --git a/Batch25/LessonMaterials/List/.vs/List/v17/DocumentLayout.backup.json b/Batch25/LessonMaterials/List/.vs/List/v17/DocumentLayout.backup.json new file mode 100644 index 0000000..73f01d9 --- /dev/null +++ b/Batch25/LessonMaterials/List/.vs/List/v17/DocumentLayout.backup.json @@ -0,0 +1,37 @@ +{ + "Version": 1, + "WorkspaceRootPath": "C:\\Users\\DADA\\Desktop\\List\\", + "Documents": [ + { + "AbsoluteMoniker": "D:0:0:{2D8DC066-ADA7-4722-A4AD-270C2BE4C12C}|List.csproj|c:\\users\\dada\\desktop\\list\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{2D8DC066-ADA7-4722-A4AD-270C2BE4C12C}|List.csproj|solutionrelative:program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + } + ], + "DocumentGroupContainers": [ + { + "Orientation": 0, + "VerticalTabListWidth": 256, + "DocumentGroups": [ + { + "DockedWidth": 200, + "SelectedChildIndex": 0, + "Children": [ + { + "$type": "Document", + "DocumentIndex": 0, + "Title": "Program.cs", + "DocumentMoniker": "C:\\Users\\DADA\\Desktop\\List\\Program.cs", + "RelativeDocumentMoniker": "Program.cs", + "ToolTip": "C:\\Users\\DADA\\Desktop\\List\\Program.cs*", + "RelativeToolTip": "Program.cs*", + "ViewState": "AgIAAKoAAAAAAAAAAAAAALcAAAATAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2025-01-13T10:19:58.284Z", + "EditorCaption": "" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/Batch25/LessonMaterials/List/.vs/List/v17/DocumentLayout.json b/Batch25/LessonMaterials/List/.vs/List/v17/DocumentLayout.json new file mode 100644 index 0000000..ec63a5f --- /dev/null +++ b/Batch25/LessonMaterials/List/.vs/List/v17/DocumentLayout.json @@ -0,0 +1,71 @@ +{ + "Version": 1, + "WorkspaceRootPath": "C:\\Users\\DADA\\Desktop\\List\\", + "Documents": [ + { + "AbsoluteMoniker": "D:0:0:{2D8DC066-ADA7-4722-A4AD-270C2BE4C12C}|List.csproj|c:\\users\\dada\\desktop\\list\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{2D8DC066-ADA7-4722-A4AD-270C2BE4C12C}|List.csproj|solutionrelative:program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{2D8DC066-ADA7-4722-A4AD-270C2BE4C12C}|List.csproj|c:\\users\\dada\\desktop\\list\\assesment.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{2D8DC066-ADA7-4722-A4AD-270C2BE4C12C}|List.csproj|solutionrelative:assesment.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{2D8DC066-ADA7-4722-A4AD-270C2BE4C12C}|List.csproj|c:\\users\\dada\\desktop\\list\\list.csproj||{FA3CD31E-987B-443A-9B81-186104E8DAC1}|", + "RelativeMoniker": "D:0:0:{2D8DC066-ADA7-4722-A4AD-270C2BE4C12C}|List.csproj|solutionrelative:list.csproj||{FA3CD31E-987B-443A-9B81-186104E8DAC1}|" + } + ], + "DocumentGroupContainers": [ + { + "Orientation": 0, + "VerticalTabListWidth": 256, + "DocumentGroups": [ + { + "DockedWidth": 200, + "SelectedChildIndex": 2, + "Children": [ + { + "$type": "Document", + "DocumentIndex": 1, + "Title": "Assesment.cs", + "DocumentMoniker": "C:\\Users\\DADA\\Desktop\\List\\Assesment.cs", + "RelativeDocumentMoniker": "Assesment.cs", + "ToolTip": "C:\\Users\\DADA\\Desktop\\List\\Assesment.cs", + "RelativeToolTip": "Assesment.cs", + "ViewState": "AgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2025-01-16T08:24:32.308Z", + "EditorCaption": "" + }, + { + "$type": "Document", + "DocumentIndex": 2, + "Title": "List", + "DocumentMoniker": "C:\\Users\\DADA\\Desktop\\List\\List.csproj", + "RelativeDocumentMoniker": "List.csproj", + "ToolTip": "C:\\Users\\DADA\\Desktop\\List\\List.csproj", + "RelativeToolTip": "List.csproj", + "ViewState": "AgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000758|", + "WhenOpened": "2025-01-16T08:24:02.307Z", + "EditorCaption": "" + }, + { + "$type": "Document", + "DocumentIndex": 0, + "Title": "Program.cs", + "DocumentMoniker": "C:\\Users\\DADA\\Desktop\\List\\Program.cs", + "RelativeDocumentMoniker": "Program.cs", + "ToolTip": "C:\\Users\\DADA\\Desktop\\List\\Program.cs", + "RelativeToolTip": "Program.cs", + "ViewState": "AgIAAH4AAAAAAAAAAAAAAAQAAABxAQAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2025-01-13T10:19:58.284Z", + "EditorCaption": "" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/Batch25/LessonMaterials/List/.vs/ProjectEvaluation/list.metadata.v9.bin b/Batch25/LessonMaterials/List/.vs/ProjectEvaluation/list.metadata.v9.bin new file mode 100644 index 0000000..5409658 Binary files /dev/null and b/Batch25/LessonMaterials/List/.vs/ProjectEvaluation/list.metadata.v9.bin differ diff --git a/Batch25/LessonMaterials/List/.vs/ProjectEvaluation/list.projects.v9.bin b/Batch25/LessonMaterials/List/.vs/ProjectEvaluation/list.projects.v9.bin new file mode 100644 index 0000000..f3d33e8 Binary files /dev/null and b/Batch25/LessonMaterials/List/.vs/ProjectEvaluation/list.projects.v9.bin differ diff --git a/Batch25/LessonMaterials/List/.vs/ProjectEvaluation/list.strings.v9.bin b/Batch25/LessonMaterials/List/.vs/ProjectEvaluation/list.strings.v9.bin new file mode 100644 index 0000000..1a8f172 Binary files /dev/null and b/Batch25/LessonMaterials/List/.vs/ProjectEvaluation/list.strings.v9.bin differ diff --git a/Batch25/LessonMaterials/List/Assesment.cs b/Batch25/LessonMaterials/List/Assesment.cs new file mode 100644 index 0000000..4b09767 --- /dev/null +++ b/Batch25/LessonMaterials/List/Assesment.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace List +{ + internal class Assesment + { + } +} diff --git a/Batch25/LessonMaterials/List/List.csproj b/Batch25/LessonMaterials/List/List.csproj new file mode 100644 index 0000000..2150e37 --- /dev/null +++ b/Batch25/LessonMaterials/List/List.csproj @@ -0,0 +1,10 @@ + + + + Exe + net8.0 + enable + enable + + + diff --git a/Batch25/LessonMaterials/List/List.sln b/Batch25/LessonMaterials/List/List.sln new file mode 100644 index 0000000..dd89ce6 --- /dev/null +++ b/Batch25/LessonMaterials/List/List.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.12.35506.116 d17.12 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "List", "List.csproj", "{2D8DC066-ADA7-4722-A4AD-270C2BE4C12C}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {2D8DC066-ADA7-4722-A4AD-270C2BE4C12C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2D8DC066-ADA7-4722-A4AD-270C2BE4C12C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2D8DC066-ADA7-4722-A4AD-270C2BE4C12C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2D8DC066-ADA7-4722-A4AD-270C2BE4C12C}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/Batch25/LessonMaterials/List/Program.cs b/Batch25/LessonMaterials/List/Program.cs new file mode 100644 index 0000000..f1d4dac --- /dev/null +++ b/Batch25/LessonMaterials/List/Program.cs @@ -0,0 +1,199 @@ +// See https://aka.ms/new-console-template for more information +Console.WriteLine("Hello, World!"); + +//What is Generic List Collection in C#? +//The Generic List in C# is a Collection Class that belongs to System.Collections.Generic namespace. This Generic List Collection Class represents a strongly typed list of objects which can be accessed by using the integer index which is starting from 0. It also provides lots of methods that can be used for searching, sorting, and manipulating the list of items + +//For example, Adding Elements using Add Method of the List Class. As you can see in the below code while creating the Generic List collection instance, we are specifying the type parameter as a string and this allows the collection to store elements of string type only. In this case, the element will be added at the end of the collection. + +//List variableName = new List(); + +List countries = new List(); + +countries.Add("India"); +countries.Add("Srilanka"); +countries.Add("Nigeria"); + +// using object initializer + +List names = new List +{ + "Ade", + "Chuckwu", + "Danjuma" +}; + +/*Console.WriteLine(countries[0]); +Console.WriteLine(countries[1]); +Console.WriteLine(countries[2]);*/ + +//using foreach loop +/*foreach (string country in countries) +{ + Console.WriteLine(country); +}*/ + +//using for loop +/*for (int i = 0; i < names.Count; i++) +{ + Console.WriteLine(names[i]); +}*/ + +/*List numbers = new List(); + +numbers.Add(1); +numbers.Add(2); +numbers.Add(3); +numbers.Add(4); +numbers.Add(5);*/ + +/*List numbers = new List +{ + 1, + 2, + 3, + 4, + 5 +};*/ + +List numbers = new List {1,2,3,4,5 }; + +/*Console.WriteLine(numbers[0]); +Console.WriteLine(numbers[1]); +Console.WriteLine(numbers[2]);*/ + +/* +foreach (int number in numbers) +{ + Console.WriteLine(number); +}*/ + +/*for(int i = 0; i < numbers.Count; i++) +{ + Console.WriteLine(numbers[i]); +}*/ + +//Creating Another Generic List Collection of String Type +/*string[] nations = { "Colombia", "Mexico", "Algeria" }; + +List newCountries = new List(nations);*/ + +List newCountries = new List(); + +//Adding Elements using Add Method +newCountries.Add("JAPAN"); +newCountries.Add("UK"); + +//Adding the newCountries collection into countries collection using AddRange Method +countries.AddRange(newCountries); + +Console.WriteLine($"the total number of countries is now {countries.Count}"); + +foreach(string country in countries) +{ + Console.WriteLine(country); +} + +//Insert(int index, T item): This method is used to insert an element into the Generic List at the specified index. Here, the parameter index specifies the zero-based index at which an item should be inserted and the parameter item specifies the object to insert. The value can be null for reference types. If the index is less than 0 or the index is greater than Generic List Count, then it will throw ArgumentOutOfRangeException. + +//InsertRange(int index, IEnumerable collection): This method is used to insert the elements of a collection into the Generic List at the specified index. Here, the parameter index specifies the zero-based index at which an item should be inserted. The parameter collection specifies the collection whose elements should be inserted into the Generic List. The collection itself cannot be null, but it can contain elements that are null if type T is a reference type. If the collection is null, then it will throw ArgumentNullException. If the index is less than 0 or the index is greater than Generic List Count, then it will throw ArgumentOutOfRangeEx + +//inserting single element +/*List states = new List { "Lagos", "Abuja", "Port-Harcourt" }; +Console.WriteLine($" The initial count is {states.Count}"); + +states.Insert(0, "Ogun"); + +Console.WriteLine($"The current count is {states.Count}"); + +for(int i = 0; i < states.Count; i++) +{ + Console.WriteLine(states[i]); +} + +//Adding multiple states +List newstates = new List { "Abia", "Bauchi", "Calabar" }; + +states.InsertRange(0, newstates); + +Console.WriteLine($"After adding range of states, The current count is {states.Count}"); + +foreach(string state in states) +{ + Console.WriteLine(state); +}*/ + +// How to Check the Availability of an Element in a List Collection in C#? +//If you want to check whether an element exists or not in the Generic List Collection, then you need to use the following Contains method of the Generic List Collection Class in C#. + +//Contains(T item): The Contains(T item) method of the Generic List Collection Class is used to check if the given item is present in the List or not. The parameter item specifies the object to locate in the Generic List. The value can be null for reference types. It returns true if the item is found in the Generic List; otherwise, false. + +/*List nums = new List(); + +nums.Add(1); +nums.Add(2); +nums.Add(3); +nums.Add(4); +nums.Add(5); + +bool result = nums.Contains(1); +Console.WriteLine(result); + +bool result1 = nums.Contains(6); +Console.WriteLine(result1); + +bool result2 = nums.Contains(87); + +if (result2 == true) +{ + nums.Remove(5); + Console.WriteLine("The element has been removed successfully"); +} +else +{ + Console.WriteLine("The element does not exist in the collection"); +}*/ + + +// using RemoveAt +List values = new List { 2, 4, 5, 2, 6, 7, 2, 9, 0 }; +values.RemoveAt(0); // specify the index of the element to be removed + +//Using RemoveAll + +//Remove all element 2 + +values.RemoveAll(x => x == 2); + +for (int i = 0; i < values.Count; i++) +{ + if (values[i] == 2) + { + values.Remove(values[i]); + } +} + +foreach (int i in values) +{ + Console.WriteLine(i); +} +values.Clear(); // Removes everthing int the collection + +//Summary of Generic List Collection Class in C#: +//The List collection is different from the arrays. The List can be resized dynamically but arrays cannot resize dynamically. + +//The Generic List Collection Class in C# can accept null values for reference types and it also accepts duplicate values. + +//When the element’s Count becomes equal to the Capacity of the list collection, then the capacity of the List increased automatically by reallocating the internal array. The existing elements will be copied to the new array before the addition of the new element. + +//The Generic List class is the generic equivalent of the Non-Generic ArrayList class. + +//The Generic List class implements the IList generic interface. + +//We can use both equality and ordering comparer with the generic List class. + +//The List class elements are not sorted by default and elements are accessed by a zero-based index. + +//For very large List objects, you can increase the maximum capacity to 2 billion elements on a 64-bit system by setting the enabled attribute of the configuration element to true in the run-time environment. + + diff --git a/Batch25/LessonMaterials/List/bin/Debug/net8.0/List.deps.json b/Batch25/LessonMaterials/List/bin/Debug/net8.0/List.deps.json new file mode 100644 index 0000000..e1e192b --- /dev/null +++ b/Batch25/LessonMaterials/List/bin/Debug/net8.0/List.deps.json @@ -0,0 +1,23 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v8.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v8.0": { + "List/1.0.0": { + "runtime": { + "List.dll": {} + } + } + } + }, + "libraries": { + "List/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + } + } +} \ No newline at end of file diff --git a/Batch25/LessonMaterials/List/bin/Debug/net8.0/List.dll b/Batch25/LessonMaterials/List/bin/Debug/net8.0/List.dll new file mode 100644 index 0000000..f98fbe1 Binary files /dev/null and b/Batch25/LessonMaterials/List/bin/Debug/net8.0/List.dll differ diff --git a/Batch25/LessonMaterials/List/bin/Debug/net8.0/List.exe b/Batch25/LessonMaterials/List/bin/Debug/net8.0/List.exe new file mode 100644 index 0000000..9063e3c Binary files /dev/null and b/Batch25/LessonMaterials/List/bin/Debug/net8.0/List.exe differ diff --git a/Batch25/LessonMaterials/List/bin/Debug/net8.0/List.pdb b/Batch25/LessonMaterials/List/bin/Debug/net8.0/List.pdb new file mode 100644 index 0000000..8bf06a7 Binary files /dev/null and b/Batch25/LessonMaterials/List/bin/Debug/net8.0/List.pdb differ diff --git a/Batch25/LessonMaterials/List/bin/Debug/net8.0/List.runtimeconfig.json b/Batch25/LessonMaterials/List/bin/Debug/net8.0/List.runtimeconfig.json new file mode 100644 index 0000000..becfaea --- /dev/null +++ b/Batch25/LessonMaterials/List/bin/Debug/net8.0/List.runtimeconfig.json @@ -0,0 +1,12 @@ +{ + "runtimeOptions": { + "tfm": "net8.0", + "framework": { + "name": "Microsoft.NETCore.App", + "version": "8.0.0" + }, + "configProperties": { + "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false + } + } +} \ No newline at end of file diff --git a/Batch25/LessonMaterials/List/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs b/Batch25/LessonMaterials/List/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs new file mode 100644 index 0000000..2217181 --- /dev/null +++ b/Batch25/LessonMaterials/List/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")] diff --git a/Batch25/LessonMaterials/List/obj/Debug/net8.0/List.AssemblyInfo.cs b/Batch25/LessonMaterials/List/obj/Debug/net8.0/List.AssemblyInfo.cs new file mode 100644 index 0000000..2c924ce --- /dev/null +++ b/Batch25/LessonMaterials/List/obj/Debug/net8.0/List.AssemblyInfo.cs @@ -0,0 +1,23 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// 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("List")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+5398e281fb84437e72ad236f0a45d02d0fd7aa7c")] +[assembly: System.Reflection.AssemblyProductAttribute("List")] +[assembly: System.Reflection.AssemblyTitleAttribute("List")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/Batch25/LessonMaterials/List/obj/Debug/net8.0/List.AssemblyInfoInputs.cache b/Batch25/LessonMaterials/List/obj/Debug/net8.0/List.AssemblyInfoInputs.cache new file mode 100644 index 0000000..bae2939 --- /dev/null +++ b/Batch25/LessonMaterials/List/obj/Debug/net8.0/List.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +60a1715ee0cc9cc754dbc4aee2f526cf91c7e663b0236b81899a2ddca59d2e27 diff --git a/Batch25/LessonMaterials/List/obj/Debug/net8.0/List.GeneratedMSBuildEditorConfig.editorconfig b/Batch25/LessonMaterials/List/obj/Debug/net8.0/List.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..ecfdee4 --- /dev/null +++ b/Batch25/LessonMaterials/List/obj/Debug/net8.0/List.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,15 @@ +is_global = true +build_property.TargetFramework = net8.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 = List +build_property.ProjectDir = C:\Users\DADA\Desktop\CLHRepo\InstructorsFilesAndReports\Batch25\LessonMaterials\List\ +build_property.EnableComHosting = +build_property.EnableGeneratedComInterfaceComImportInterop = +build_property.EffectiveAnalysisLevelStyle = 8.0 +build_property.EnableCodeStyleSeverity = diff --git a/Batch25/LessonMaterials/List/obj/Debug/net8.0/List.GlobalUsings.g.cs b/Batch25/LessonMaterials/List/obj/Debug/net8.0/List.GlobalUsings.g.cs new file mode 100644 index 0000000..8578f3d --- /dev/null +++ b/Batch25/LessonMaterials/List/obj/Debug/net8.0/List.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/Batch25/LessonMaterials/List/obj/Debug/net8.0/List.assets.cache b/Batch25/LessonMaterials/List/obj/Debug/net8.0/List.assets.cache new file mode 100644 index 0000000..9dcd7e9 Binary files /dev/null and b/Batch25/LessonMaterials/List/obj/Debug/net8.0/List.assets.cache differ diff --git a/Batch25/LessonMaterials/List/obj/Debug/net8.0/List.csproj.BuildWithSkipAnalyzers b/Batch25/LessonMaterials/List/obj/Debug/net8.0/List.csproj.BuildWithSkipAnalyzers new file mode 100644 index 0000000..e69de29 diff --git a/Batch25/LessonMaterials/List/obj/Debug/net8.0/List.csproj.CoreCompileInputs.cache b/Batch25/LessonMaterials/List/obj/Debug/net8.0/List.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..38fc8d2 --- /dev/null +++ b/Batch25/LessonMaterials/List/obj/Debug/net8.0/List.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +eb92231571bb3a85e28d0a5120cd4a42c42ae4c6c9a1eb5f5efb3e2c2234be28 diff --git a/Batch25/LessonMaterials/List/obj/Debug/net8.0/List.csproj.FileListAbsolute.txt b/Batch25/LessonMaterials/List/obj/Debug/net8.0/List.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..911edcb --- /dev/null +++ b/Batch25/LessonMaterials/List/obj/Debug/net8.0/List.csproj.FileListAbsolute.txt @@ -0,0 +1,14 @@ +C:\Users\DADA\Desktop\List\bin\Debug\net8.0\List.exe +C:\Users\DADA\Desktop\List\bin\Debug\net8.0\List.deps.json +C:\Users\DADA\Desktop\List\bin\Debug\net8.0\List.runtimeconfig.json +C:\Users\DADA\Desktop\List\bin\Debug\net8.0\List.dll +C:\Users\DADA\Desktop\List\bin\Debug\net8.0\List.pdb +C:\Users\DADA\Desktop\List\obj\Debug\net8.0\List.GeneratedMSBuildEditorConfig.editorconfig +C:\Users\DADA\Desktop\List\obj\Debug\net8.0\List.AssemblyInfoInputs.cache +C:\Users\DADA\Desktop\List\obj\Debug\net8.0\List.AssemblyInfo.cs +C:\Users\DADA\Desktop\List\obj\Debug\net8.0\List.csproj.CoreCompileInputs.cache +C:\Users\DADA\Desktop\List\obj\Debug\net8.0\List.dll +C:\Users\DADA\Desktop\List\obj\Debug\net8.0\refint\List.dll +C:\Users\DADA\Desktop\List\obj\Debug\net8.0\List.pdb +C:\Users\DADA\Desktop\List\obj\Debug\net8.0\List.genruntimeconfig.cache +C:\Users\DADA\Desktop\List\obj\Debug\net8.0\ref\List.dll diff --git a/Batch25/LessonMaterials/List/obj/Debug/net8.0/List.dll b/Batch25/LessonMaterials/List/obj/Debug/net8.0/List.dll new file mode 100644 index 0000000..f98fbe1 Binary files /dev/null and b/Batch25/LessonMaterials/List/obj/Debug/net8.0/List.dll differ diff --git a/Batch25/LessonMaterials/List/obj/Debug/net8.0/List.genruntimeconfig.cache b/Batch25/LessonMaterials/List/obj/Debug/net8.0/List.genruntimeconfig.cache new file mode 100644 index 0000000..01a538c --- /dev/null +++ b/Batch25/LessonMaterials/List/obj/Debug/net8.0/List.genruntimeconfig.cache @@ -0,0 +1 @@ +6cc731df94d867b7b4f445849ea1985ee5ea57cc879b1553559e56223621bea9 diff --git a/Batch25/LessonMaterials/List/obj/Debug/net8.0/List.pdb b/Batch25/LessonMaterials/List/obj/Debug/net8.0/List.pdb new file mode 100644 index 0000000..8bf06a7 Binary files /dev/null and b/Batch25/LessonMaterials/List/obj/Debug/net8.0/List.pdb differ diff --git a/Batch25/LessonMaterials/List/obj/Debug/net8.0/apphost.exe b/Batch25/LessonMaterials/List/obj/Debug/net8.0/apphost.exe new file mode 100644 index 0000000..9063e3c Binary files /dev/null and b/Batch25/LessonMaterials/List/obj/Debug/net8.0/apphost.exe differ diff --git a/Batch25/LessonMaterials/List/obj/Debug/net8.0/ref/List.dll b/Batch25/LessonMaterials/List/obj/Debug/net8.0/ref/List.dll new file mode 100644 index 0000000..0cedff7 Binary files /dev/null and b/Batch25/LessonMaterials/List/obj/Debug/net8.0/ref/List.dll differ diff --git a/Batch25/LessonMaterials/List/obj/Debug/net8.0/refint/List.dll b/Batch25/LessonMaterials/List/obj/Debug/net8.0/refint/List.dll new file mode 100644 index 0000000..0cedff7 Binary files /dev/null and b/Batch25/LessonMaterials/List/obj/Debug/net8.0/refint/List.dll differ diff --git a/Batch25/LessonMaterials/List/obj/List.csproj.nuget.dgspec.json b/Batch25/LessonMaterials/List/obj/List.csproj.nuget.dgspec.json new file mode 100644 index 0000000..c88d6ef --- /dev/null +++ b/Batch25/LessonMaterials/List/obj/List.csproj.nuget.dgspec.json @@ -0,0 +1,73 @@ +{ + "format": 1, + "restore": { + "C:\\Users\\DADA\\Desktop\\List\\List.csproj": {} + }, + "projects": { + "C:\\Users\\DADA\\Desktop\\List\\List.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\DADA\\Desktop\\List\\List.csproj", + "projectName": "List", + "projectPath": "C:\\Users\\DADA\\Desktop\\List\\List.csproj", + "packagesPath": "C:\\Users\\DADA\\.nuget\\packages\\", + "outputPath": "C:\\Users\\DADA\\Desktop\\List\\obj\\", + "projectStyle": "PackageReference", + "fallbackFolders": [ + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" + ], + "configFilePaths": [ + "C:\\Users\\DADA\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net8.0" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + }, + "restoreAuditProperties": { + "enableAudit": "true", + "auditLevel": "low", + "auditMode": "all" + }, + "SdkAnalysisLevel": "9.0.100" + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.100/PortableRuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/Batch25/LessonMaterials/List/obj/List.csproj.nuget.g.props b/Batch25/LessonMaterials/List/obj/List.csproj.nuget.g.props new file mode 100644 index 0000000..19835a0 --- /dev/null +++ b/Batch25/LessonMaterials/List/obj/List.csproj.nuget.g.props @@ -0,0 +1,16 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + $(UserProfile)\.nuget\packages\ + C:\Users\DADA\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages + PackageReference + 6.12.1 + + + + + + \ No newline at end of file diff --git a/Batch25/LessonMaterials/List/obj/List.csproj.nuget.g.targets b/Batch25/LessonMaterials/List/obj/List.csproj.nuget.g.targets new file mode 100644 index 0000000..3dc06ef --- /dev/null +++ b/Batch25/LessonMaterials/List/obj/List.csproj.nuget.g.targets @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/Batch25/LessonMaterials/List/obj/Release/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs b/Batch25/LessonMaterials/List/obj/Release/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs new file mode 100644 index 0000000..2217181 --- /dev/null +++ b/Batch25/LessonMaterials/List/obj/Release/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")] diff --git a/Batch25/LessonMaterials/List/obj/Release/net8.0/List.AssemblyInfo.cs b/Batch25/LessonMaterials/List/obj/Release/net8.0/List.AssemblyInfo.cs new file mode 100644 index 0000000..9a77f26 --- /dev/null +++ b/Batch25/LessonMaterials/List/obj/Release/net8.0/List.AssemblyInfo.cs @@ -0,0 +1,23 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// 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("List")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+5398e281fb84437e72ad236f0a45d02d0fd7aa7c")] +[assembly: System.Reflection.AssemblyProductAttribute("List")] +[assembly: System.Reflection.AssemblyTitleAttribute("List")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/Batch25/LessonMaterials/List/obj/Release/net8.0/List.AssemblyInfoInputs.cache b/Batch25/LessonMaterials/List/obj/Release/net8.0/List.AssemblyInfoInputs.cache new file mode 100644 index 0000000..5200da1 --- /dev/null +++ b/Batch25/LessonMaterials/List/obj/Release/net8.0/List.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +532214174265b98bf18796a6c6f7e506cda1de7b78f4fe714f0696c58a00585b diff --git a/Batch25/LessonMaterials/List/obj/Release/net8.0/List.GeneratedMSBuildEditorConfig.editorconfig b/Batch25/LessonMaterials/List/obj/Release/net8.0/List.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..ecfdee4 --- /dev/null +++ b/Batch25/LessonMaterials/List/obj/Release/net8.0/List.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,15 @@ +is_global = true +build_property.TargetFramework = net8.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 = List +build_property.ProjectDir = C:\Users\DADA\Desktop\CLHRepo\InstructorsFilesAndReports\Batch25\LessonMaterials\List\ +build_property.EnableComHosting = +build_property.EnableGeneratedComInterfaceComImportInterop = +build_property.EffectiveAnalysisLevelStyle = 8.0 +build_property.EnableCodeStyleSeverity = diff --git a/Batch25/LessonMaterials/List/obj/Release/net8.0/List.GlobalUsings.g.cs b/Batch25/LessonMaterials/List/obj/Release/net8.0/List.GlobalUsings.g.cs new file mode 100644 index 0000000..8578f3d --- /dev/null +++ b/Batch25/LessonMaterials/List/obj/Release/net8.0/List.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/Batch25/LessonMaterials/List/obj/Release/net8.0/List.assets.cache b/Batch25/LessonMaterials/List/obj/Release/net8.0/List.assets.cache new file mode 100644 index 0000000..3864aa5 Binary files /dev/null and b/Batch25/LessonMaterials/List/obj/Release/net8.0/List.assets.cache differ diff --git a/Batch25/LessonMaterials/List/obj/project.assets.json b/Batch25/LessonMaterials/List/obj/project.assets.json new file mode 100644 index 0000000..00e3c7a --- /dev/null +++ b/Batch25/LessonMaterials/List/obj/project.assets.json @@ -0,0 +1,79 @@ +{ + "version": 3, + "targets": { + "net8.0": {} + }, + "libraries": {}, + "projectFileDependencyGroups": { + "net8.0": [] + }, + "packageFolders": { + "C:\\Users\\DADA\\.nuget\\packages\\": {}, + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\DADA\\Desktop\\List\\List.csproj", + "projectName": "List", + "projectPath": "C:\\Users\\DADA\\Desktop\\List\\List.csproj", + "packagesPath": "C:\\Users\\DADA\\.nuget\\packages\\", + "outputPath": "C:\\Users\\DADA\\Desktop\\List\\obj\\", + "projectStyle": "PackageReference", + "fallbackFolders": [ + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" + ], + "configFilePaths": [ + "C:\\Users\\DADA\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net8.0" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + }, + "restoreAuditProperties": { + "enableAudit": "true", + "auditLevel": "low", + "auditMode": "all" + }, + "SdkAnalysisLevel": "9.0.100" + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.100/PortableRuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/Batch25/LessonMaterials/List/obj/project.nuget.cache b/Batch25/LessonMaterials/List/obj/project.nuget.cache new file mode 100644 index 0000000..136a906 --- /dev/null +++ b/Batch25/LessonMaterials/List/obj/project.nuget.cache @@ -0,0 +1,8 @@ +{ + "version": 2, + "dgSpecHash": "QCakTmbKYr4=", + "success": true, + "projectFilePath": "C:\\Users\\DADA\\Desktop\\List\\List.csproj", + "expectedPackageFiles": [], + "logs": [] +} \ No newline at end of file diff --git a/Batch25/LessonMaterials/Polymorphism.txt b/Batch25/LessonMaterials/Polymorphism.txt new file mode 100644 index 0000000..84562eb --- /dev/null +++ b/Batch25/LessonMaterials/Polymorphism.txt @@ -0,0 +1,125 @@ +Polymorphism + +Outline of our discussion on the topic + +What is polymorphism +Polymorphism in object-oriented programming (OOP) refers to the ability of objects to take on "many forms", allowing methods or functions to operate on objects of different types through a unified interface. It enables flexibility and modularity in code by letting you interact with objects based on their common parent class or interface, rather than their specific concrete types. There are two primary types of polymorphism + +1. Compile-Time Polymorphism (Static/Overloading) +Resolved during compile time based on method signatures (name + parameters). +Example: Method OverLoading + +2. Runtime Polymorphism (Dynamic/Overriding) +Resolved during runtime based on the actual object type. +Example: Method Overriding + + +// Why overload a method in a class +// how to implement a method to be overloaded in parent class +// How to imlement overload a method in a child class + +// Why override a method in a class +// how to implement a method to be overided in parent class +// How to implement overide a method in a child class + +// Why hiding a method in a class +// how to implement a method to be hiden in parent class +// How to hide a method in a child class + +//we defined a parent and child class +//we implemented method overload, overiding and hiding + +Child child = new Child("Ade", "Chuckwu", "Danjuma", "Abuja", 1990); +child.Snour(); // the can only have access to the overidden method in his class +child.GetAge(); +Child.Eat(); // this is the inherited method, the can still have access to the inherited method after overlaoding it + +Console.WriteLine("How many times do you eat daily"); +int input = int.Parse(Console.ReadLine()); + +Child.Eat(input); //this is the inherited method that is overloaded +Child.Sleeping(); +Child.Walking(); +child.PrintDetails(); +public class Father +{ + public string SurName { get; set; } + public string StateOfOrigin { get; set; } + + public Father(string surName, string stateOfOrigin) + { + SurName = surName; + StateOfOrigin = stateOfOrigin; + } + + public static void Walking() // This cannot be overidden but it can be overlaoded and hide + { + Console.WriteLine("I walk slowly"); + } + + private static void Reading() // this is a private, it cannot be inherited and we cannot set it as virtual becauuse it is limited this calss + { + Console.WriteLine("I read everyday"); + } + + public virtual void Snour() // this is a virtual method to be overided + { + Console.WriteLine("I snour loudly"); + } + + public static void Eat() // this is a none virtual method to be overloaded + { + Console.WriteLine("I eat once daily"); + } + + public static void Sleeping() // this is a none virtual method to be hiden + { + Console.WriteLine("I sleep early"); + } + +} + +public class Child : Father +{ + public string FirstName { get; set; } + public string MiddleName { get; set; } + public int YearOfBirth { get; set; } + + public Child(string firstName, string middleName, string surName, string stateOfOrigin, int yearOfBirth) : base(surName, stateOfOrigin) + { + FirstName = firstName; + MiddleName = middleName; + YearOfBirth = yearOfBirth; + } + + public void GetAge() + { + int currentYear = DateTime.Now.Year; + int age = currentYear - this.YearOfBirth; + Console.WriteLine($"{this.FirstName} current age is : {age}"); + } + + //overiding the snour method + public override void Snour() // we must include the overide keyword + { + Console.WriteLine("My snouring is not loud as my father"); + } + + //Overloading the Eat method. the inherited method will still be available for the child. the child can still have access to the implementation this method in the parent class + public static void Eat(int squareMeal) + { + Console.WriteLine($"I eat {squareMeal} times daily)"); + } + + // we cannot overlaod an hidden method and the child cannot access to the implementation this method in the parent class + public static new void Sleeping() + { + Console.WriteLine("I sleep late"); + } + + public void PrintDetails() + { + Console.WriteLine($"These are the details of this child\n Surname : {SurName}\n FirstName : {FirstName}\n MiddleName : {MiddleName}\n State Of Origin :{StateOfOrigin}\n Year Of Birth : {YearOfBirth}"); + } + +} diff --git a/Batch26/LessonMaterials/Topic Polymorphism.txt b/Batch26/LessonMaterials/Topic Polymorphism.txt new file mode 100644 index 0000000..b012ee8 --- /dev/null +++ b/Batch26/LessonMaterials/Topic Polymorphism.txt @@ -0,0 +1,113 @@ +// Topic: Polymorphism + +//Outline of our discussion on the topic + +// Why overload a method in a class +// how to implement a method to be overloaded in parent class +// How to imlement overload a method in a child class + +// Why override a method in a class +// how to implement a method to be overided in parent class +// How to implement overide a method in a child class + +// Why hiding a method in a class +// how to implement a method to be hiden in parent class +// How to hide a method in a child class + +//we defined a parent and child class +//we implemented method overload, overiding and hiding + +Child child = new Child("Ade", "Chuckwu", "Danjuma", "Abuja", 1990); +child.Snour(); // the can only have access to the overidden method in his class +child.GetAge(); +Child.Eat(); // this is the inherited method, the can still have access to the inherited method after overlaoding it + +Console.WriteLine("How many times do you eat daily"); +int input = int.Parse(Console.ReadLine()); + +Child.Eat(input); //this is the inherited method that is overloaded +Child.Sleeping(); +Child.Walking(); +child.PrintDetails(); +public class Father +{ + public string SurName { get; set; } + public string StateOfOrigin { get; set; } + + public Father(string surName, string stateOfOrigin) + { + SurName = surName; + StateOfOrigin = stateOfOrigin; + } + + public static void Walking() // This cannot be overidden but it can be overlaoded and hide + { + Console.WriteLine("I walk slowly"); + } + + private static void Reading() // this is a private, it cannot be inherited and we cannot set it as virtual becauuse it is limited this calss + { + Console.WriteLine("I read everyday"); + } + + public virtual void Snour() // this is a virtual method to be overided + { + Console.WriteLine("I snour loudly"); + } + + public static void Eat() // this is a none virtual method to be overloaded + { + Console.WriteLine("I eat once daily"); + } + + public static void Sleeping() // this is a none virtual method to be hiden + { + Console.WriteLine("I sleep early"); + } + +} + +public class Child : Father +{ + public string FirstName { get; set; } + public string MiddleName { get; set; } + public int YearOfBirth { get; set; } + + public Child(string firstName, string middleName, string surName, string stateOfOrigin, int yearOfBirth) : base(surName, stateOfOrigin) + { + FirstName = firstName; + MiddleName = middleName; + YearOfBirth = yearOfBirth; + } + + public void GetAge() + { + int currentYear = DateTime.Now.Year; + int age = currentYear - this.YearOfBirth; + Console.WriteLine($"{this.FirstName} current age is : {age}"); + } + + //overiding the snour method + public override void Snour() // we must include the overide keyword + { + Console.WriteLine("My snouring is not loud as my father"); + } + + //Overloading the Eat method. the inherited method will still be available for the child. the child can still have access to the implementation this method in the parent class + public static void Eat(int squareMeal) + { + Console.WriteLine($"I eat {squareMeal} times daily)"); + } + + // we cannot overlaod an hidden method and the child cannot access to the implementation this method in the parent class + public static new void Sleeping() + { + Console.WriteLine("I sleep late"); + } + + public void PrintDetails() + { + Console.WriteLine($"These are the details of this child\n Surname : {SurName}\n FirstName : {FirstName}\n MiddleName : {MiddleName}\n State Of Origin :{StateOfOrigin}\n Year Of Birth : {YearOfBirth}"); + } + +} diff --git a/PrimitiveAndNonPrimitiveTypes/.vs/PrimitiveAndNonPrimitiveTypes/DesignTimeBuild/.dtbcache.v2 b/PrimitiveAndNonPrimitiveTypes/.vs/PrimitiveAndNonPrimitiveTypes/DesignTimeBuild/.dtbcache.v2 new file mode 100644 index 0000000..019a43e Binary files /dev/null and b/PrimitiveAndNonPrimitiveTypes/.vs/PrimitiveAndNonPrimitiveTypes/DesignTimeBuild/.dtbcache.v2 differ diff --git a/PrimitiveAndNonPrimitiveTypes/.vs/PrimitiveAndNonPrimitiveTypes/FileContentIndex/2ef295c0-0f8e-4ead-a9bc-c8c8414a5948.vsidx b/PrimitiveAndNonPrimitiveTypes/.vs/PrimitiveAndNonPrimitiveTypes/FileContentIndex/2ef295c0-0f8e-4ead-a9bc-c8c8414a5948.vsidx new file mode 100644 index 0000000..9fa17fd Binary files /dev/null and b/PrimitiveAndNonPrimitiveTypes/.vs/PrimitiveAndNonPrimitiveTypes/FileContentIndex/2ef295c0-0f8e-4ead-a9bc-c8c8414a5948.vsidx differ diff --git a/PrimitiveAndNonPrimitiveTypes/.vs/PrimitiveAndNonPrimitiveTypes/v17/.futdcache.v2 b/PrimitiveAndNonPrimitiveTypes/.vs/PrimitiveAndNonPrimitiveTypes/v17/.futdcache.v2 new file mode 100644 index 0000000..22696ac Binary files /dev/null and b/PrimitiveAndNonPrimitiveTypes/.vs/PrimitiveAndNonPrimitiveTypes/v17/.futdcache.v2 differ diff --git a/PrimitiveAndNonPrimitiveTypes/.vs/PrimitiveAndNonPrimitiveTypes/v17/.suo b/PrimitiveAndNonPrimitiveTypes/.vs/PrimitiveAndNonPrimitiveTypes/v17/.suo new file mode 100644 index 0000000..6f1615b Binary files /dev/null and b/PrimitiveAndNonPrimitiveTypes/.vs/PrimitiveAndNonPrimitiveTypes/v17/.suo differ diff --git a/PrimitiveAndNonPrimitiveTypes/.vs/PrimitiveAndNonPrimitiveTypes/v17/DocumentLayout.backup.json b/PrimitiveAndNonPrimitiveTypes/.vs/PrimitiveAndNonPrimitiveTypes/v17/DocumentLayout.backup.json new file mode 100644 index 0000000..ba9c10c --- /dev/null +++ b/PrimitiveAndNonPrimitiveTypes/.vs/PrimitiveAndNonPrimitiveTypes/v17/DocumentLayout.backup.json @@ -0,0 +1,37 @@ +{ + "Version": 1, + "WorkspaceRootPath": "C:\\Users\\DADA\\Desktop\\PrimitiveAndNonPrimitiveTypes\\", + "Documents": [ + { + "AbsoluteMoniker": "D:0:0:{F8EBBE66-B610-455C-B3A7-5306E143E0D1}|PrimitiveAndNonPrimitiveTypes.csproj|c:\\users\\dada\\desktop\\primitiveandnonprimitivetypes\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{F8EBBE66-B610-455C-B3A7-5306E143E0D1}|PrimitiveAndNonPrimitiveTypes.csproj|solutionrelative:program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + } + ], + "DocumentGroupContainers": [ + { + "Orientation": 0, + "VerticalTabListWidth": 256, + "DocumentGroups": [ + { + "DockedWidth": 200, + "SelectedChildIndex": 0, + "Children": [ + { + "$type": "Document", + "DocumentIndex": 0, + "Title": "Program.cs", + "DocumentMoniker": "C:\\Users\\DADA\\Desktop\\PrimitiveAndNonPrimitiveTypes\\Program.cs", + "RelativeDocumentMoniker": "Program.cs", + "ToolTip": "C:\\Users\\DADA\\Desktop\\PrimitiveAndNonPrimitiveTypes\\Program.cs", + "RelativeToolTip": "Program.cs", + "ViewState": "AgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2025-01-20T20:50:35.422Z", + "EditorCaption": "" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/PrimitiveAndNonPrimitiveTypes/.vs/PrimitiveAndNonPrimitiveTypes/v17/DocumentLayout.json b/PrimitiveAndNonPrimitiveTypes/.vs/PrimitiveAndNonPrimitiveTypes/v17/DocumentLayout.json new file mode 100644 index 0000000..86fe9f1 --- /dev/null +++ b/PrimitiveAndNonPrimitiveTypes/.vs/PrimitiveAndNonPrimitiveTypes/v17/DocumentLayout.json @@ -0,0 +1,37 @@ +{ + "Version": 1, + "WorkspaceRootPath": "C:\\Users\\DADA\\Desktop\\PrimitiveAndNonPrimitiveTypes\\", + "Documents": [ + { + "AbsoluteMoniker": "D:0:0:{F8EBBE66-B610-455C-B3A7-5306E143E0D1}|PrimitiveAndNonPrimitiveTypes.csproj|c:\\users\\dada\\desktop\\primitiveandnonprimitivetypes\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{F8EBBE66-B610-455C-B3A7-5306E143E0D1}|PrimitiveAndNonPrimitiveTypes.csproj|solutionrelative:program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + } + ], + "DocumentGroupContainers": [ + { + "Orientation": 0, + "VerticalTabListWidth": 256, + "DocumentGroups": [ + { + "DockedWidth": 200, + "SelectedChildIndex": 0, + "Children": [ + { + "$type": "Document", + "DocumentIndex": 0, + "Title": "Program.cs", + "DocumentMoniker": "C:\\Users\\DADA\\Desktop\\PrimitiveAndNonPrimitiveTypes\\Program.cs", + "RelativeDocumentMoniker": "Program.cs", + "ToolTip": "C:\\Users\\DADA\\Desktop\\PrimitiveAndNonPrimitiveTypes\\Program.cs", + "RelativeToolTip": "Program.cs", + "ViewState": "AgIAAAIAAAAAAAAAAAAAAAIAAAAvAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2025-01-20T20:50:35.422Z", + "EditorCaption": "" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/PrimitiveAndNonPrimitiveTypes/.vs/ProjectEvaluation/primitiveandnonprimitivetypes.metadata.v9.bin b/PrimitiveAndNonPrimitiveTypes/.vs/ProjectEvaluation/primitiveandnonprimitivetypes.metadata.v9.bin new file mode 100644 index 0000000..534843d Binary files /dev/null and b/PrimitiveAndNonPrimitiveTypes/.vs/ProjectEvaluation/primitiveandnonprimitivetypes.metadata.v9.bin differ diff --git a/PrimitiveAndNonPrimitiveTypes/.vs/ProjectEvaluation/primitiveandnonprimitivetypes.projects.v9.bin b/PrimitiveAndNonPrimitiveTypes/.vs/ProjectEvaluation/primitiveandnonprimitivetypes.projects.v9.bin new file mode 100644 index 0000000..4a9148a Binary files /dev/null and b/PrimitiveAndNonPrimitiveTypes/.vs/ProjectEvaluation/primitiveandnonprimitivetypes.projects.v9.bin differ diff --git a/PrimitiveAndNonPrimitiveTypes/.vs/ProjectEvaluation/primitiveandnonprimitivetypes.strings.v9.bin b/PrimitiveAndNonPrimitiveTypes/.vs/ProjectEvaluation/primitiveandnonprimitivetypes.strings.v9.bin new file mode 100644 index 0000000..c414402 Binary files /dev/null and b/PrimitiveAndNonPrimitiveTypes/.vs/ProjectEvaluation/primitiveandnonprimitivetypes.strings.v9.bin differ diff --git a/PrimitiveAndNonPrimitiveTypes/PrimitiveAndNonPrimitiveTypes.csproj b/PrimitiveAndNonPrimitiveTypes/PrimitiveAndNonPrimitiveTypes.csproj new file mode 100644 index 0000000..2150e37 --- /dev/null +++ b/PrimitiveAndNonPrimitiveTypes/PrimitiveAndNonPrimitiveTypes.csproj @@ -0,0 +1,10 @@ + + + + Exe + net8.0 + enable + enable + + + diff --git a/PrimitiveAndNonPrimitiveTypes/PrimitiveAndNonPrimitiveTypes.sln b/PrimitiveAndNonPrimitiveTypes/PrimitiveAndNonPrimitiveTypes.sln new file mode 100644 index 0000000..daba4cd --- /dev/null +++ b/PrimitiveAndNonPrimitiveTypes/PrimitiveAndNonPrimitiveTypes.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.12.35506.116 d17.12 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PrimitiveAndNonPrimitiveTypes", "PrimitiveAndNonPrimitiveTypes.csproj", "{F8EBBE66-B610-455C-B3A7-5306E143E0D1}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {F8EBBE66-B610-455C-B3A7-5306E143E0D1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F8EBBE66-B610-455C-B3A7-5306E143E0D1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F8EBBE66-B610-455C-B3A7-5306E143E0D1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F8EBBE66-B610-455C-B3A7-5306E143E0D1}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/PrimitiveAndNonPrimitiveTypes/Program.cs b/PrimitiveAndNonPrimitiveTypes/Program.cs new file mode 100644 index 0000000..b5e544b --- /dev/null +++ b/PrimitiveAndNonPrimitiveTypes/Program.cs @@ -0,0 +1,11 @@ + + +//Outline of todays class discussion (20/1/2025) + +//What are primitive Types +//What are non-primitive Types +//Differences between primitive types and non primitive types +//Why Data Type +//Breaking Data Type into value types and reference types +//Example of value types and reference types with indepth illustrations +//Insight into computer memory (Stack and heap) with respect into value type and reference type diff --git a/PrimitiveAndNonPrimitiveTypes/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs b/PrimitiveAndNonPrimitiveTypes/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs new file mode 100644 index 0000000..2217181 --- /dev/null +++ b/PrimitiveAndNonPrimitiveTypes/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")] diff --git a/PrimitiveAndNonPrimitiveTypes/obj/Debug/net8.0/PrimitiveAndNonPrimitiveTypes.AssemblyInfo.cs b/PrimitiveAndNonPrimitiveTypes/obj/Debug/net8.0/PrimitiveAndNonPrimitiveTypes.AssemblyInfo.cs new file mode 100644 index 0000000..bf4ad15 --- /dev/null +++ b/PrimitiveAndNonPrimitiveTypes/obj/Debug/net8.0/PrimitiveAndNonPrimitiveTypes.AssemblyInfo.cs @@ -0,0 +1,23 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// 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("PrimitiveAndNonPrimitiveTypes")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+5398e281fb84437e72ad236f0a45d02d0fd7aa7c")] +[assembly: System.Reflection.AssemblyProductAttribute("PrimitiveAndNonPrimitiveTypes")] +[assembly: System.Reflection.AssemblyTitleAttribute("PrimitiveAndNonPrimitiveTypes")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/PrimitiveAndNonPrimitiveTypes/obj/Debug/net8.0/PrimitiveAndNonPrimitiveTypes.AssemblyInfoInputs.cache b/PrimitiveAndNonPrimitiveTypes/obj/Debug/net8.0/PrimitiveAndNonPrimitiveTypes.AssemblyInfoInputs.cache new file mode 100644 index 0000000..c8e543a --- /dev/null +++ b/PrimitiveAndNonPrimitiveTypes/obj/Debug/net8.0/PrimitiveAndNonPrimitiveTypes.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +6f221205dd801cc584837d7eb461b18800a6fc3491ce5dc19c56aee3d464748e diff --git a/PrimitiveAndNonPrimitiveTypes/obj/Debug/net8.0/PrimitiveAndNonPrimitiveTypes.GeneratedMSBuildEditorConfig.editorconfig b/PrimitiveAndNonPrimitiveTypes/obj/Debug/net8.0/PrimitiveAndNonPrimitiveTypes.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..1e624d9 --- /dev/null +++ b/PrimitiveAndNonPrimitiveTypes/obj/Debug/net8.0/PrimitiveAndNonPrimitiveTypes.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,15 @@ +is_global = true +build_property.TargetFramework = net8.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 = PrimitiveAndNonPrimitiveTypes +build_property.ProjectDir = C:\Users\DADA\Desktop\CLHRepo\InstructorsFilesAndReports\PrimitiveAndNonPrimitiveTypes\ +build_property.EnableComHosting = +build_property.EnableGeneratedComInterfaceComImportInterop = +build_property.EffectiveAnalysisLevelStyle = 8.0 +build_property.EnableCodeStyleSeverity = diff --git a/PrimitiveAndNonPrimitiveTypes/obj/Debug/net8.0/PrimitiveAndNonPrimitiveTypes.GlobalUsings.g.cs b/PrimitiveAndNonPrimitiveTypes/obj/Debug/net8.0/PrimitiveAndNonPrimitiveTypes.GlobalUsings.g.cs new file mode 100644 index 0000000..8578f3d --- /dev/null +++ b/PrimitiveAndNonPrimitiveTypes/obj/Debug/net8.0/PrimitiveAndNonPrimitiveTypes.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/PrimitiveAndNonPrimitiveTypes/obj/Debug/net8.0/PrimitiveAndNonPrimitiveTypes.assets.cache b/PrimitiveAndNonPrimitiveTypes/obj/Debug/net8.0/PrimitiveAndNonPrimitiveTypes.assets.cache new file mode 100644 index 0000000..16a0fa6 Binary files /dev/null and b/PrimitiveAndNonPrimitiveTypes/obj/Debug/net8.0/PrimitiveAndNonPrimitiveTypes.assets.cache differ diff --git a/PrimitiveAndNonPrimitiveTypes/obj/PrimitiveAndNonPrimitiveTypes.csproj.nuget.dgspec.json b/PrimitiveAndNonPrimitiveTypes/obj/PrimitiveAndNonPrimitiveTypes.csproj.nuget.dgspec.json new file mode 100644 index 0000000..28a7074 --- /dev/null +++ b/PrimitiveAndNonPrimitiveTypes/obj/PrimitiveAndNonPrimitiveTypes.csproj.nuget.dgspec.json @@ -0,0 +1,73 @@ +{ + "format": 1, + "restore": { + "C:\\Users\\DADA\\Desktop\\PrimitiveAndNonPrimitiveTypes\\PrimitiveAndNonPrimitiveTypes.csproj": {} + }, + "projects": { + "C:\\Users\\DADA\\Desktop\\PrimitiveAndNonPrimitiveTypes\\PrimitiveAndNonPrimitiveTypes.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\DADA\\Desktop\\PrimitiveAndNonPrimitiveTypes\\PrimitiveAndNonPrimitiveTypes.csproj", + "projectName": "PrimitiveAndNonPrimitiveTypes", + "projectPath": "C:\\Users\\DADA\\Desktop\\PrimitiveAndNonPrimitiveTypes\\PrimitiveAndNonPrimitiveTypes.csproj", + "packagesPath": "C:\\Users\\DADA\\.nuget\\packages\\", + "outputPath": "C:\\Users\\DADA\\Desktop\\PrimitiveAndNonPrimitiveTypes\\obj\\", + "projectStyle": "PackageReference", + "fallbackFolders": [ + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" + ], + "configFilePaths": [ + "C:\\Users\\DADA\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net8.0" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + }, + "restoreAuditProperties": { + "enableAudit": "true", + "auditLevel": "low", + "auditMode": "all" + }, + "SdkAnalysisLevel": "9.0.100" + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.100/PortableRuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/PrimitiveAndNonPrimitiveTypes/obj/PrimitiveAndNonPrimitiveTypes.csproj.nuget.g.props b/PrimitiveAndNonPrimitiveTypes/obj/PrimitiveAndNonPrimitiveTypes.csproj.nuget.g.props new file mode 100644 index 0000000..19835a0 --- /dev/null +++ b/PrimitiveAndNonPrimitiveTypes/obj/PrimitiveAndNonPrimitiveTypes.csproj.nuget.g.props @@ -0,0 +1,16 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + $(UserProfile)\.nuget\packages\ + C:\Users\DADA\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages + PackageReference + 6.12.1 + + + + + + \ No newline at end of file diff --git a/PrimitiveAndNonPrimitiveTypes/obj/PrimitiveAndNonPrimitiveTypes.csproj.nuget.g.targets b/PrimitiveAndNonPrimitiveTypes/obj/PrimitiveAndNonPrimitiveTypes.csproj.nuget.g.targets new file mode 100644 index 0000000..3dc06ef --- /dev/null +++ b/PrimitiveAndNonPrimitiveTypes/obj/PrimitiveAndNonPrimitiveTypes.csproj.nuget.g.targets @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/PrimitiveAndNonPrimitiveTypes/obj/Release/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs b/PrimitiveAndNonPrimitiveTypes/obj/Release/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs new file mode 100644 index 0000000..2217181 --- /dev/null +++ b/PrimitiveAndNonPrimitiveTypes/obj/Release/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")] diff --git a/PrimitiveAndNonPrimitiveTypes/obj/Release/net8.0/PrimitiveAndNonPrimitiveTypes.AssemblyInfo.cs b/PrimitiveAndNonPrimitiveTypes/obj/Release/net8.0/PrimitiveAndNonPrimitiveTypes.AssemblyInfo.cs new file mode 100644 index 0000000..5ee38e3 --- /dev/null +++ b/PrimitiveAndNonPrimitiveTypes/obj/Release/net8.0/PrimitiveAndNonPrimitiveTypes.AssemblyInfo.cs @@ -0,0 +1,23 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// 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("PrimitiveAndNonPrimitiveTypes")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+5398e281fb84437e72ad236f0a45d02d0fd7aa7c")] +[assembly: System.Reflection.AssemblyProductAttribute("PrimitiveAndNonPrimitiveTypes")] +[assembly: System.Reflection.AssemblyTitleAttribute("PrimitiveAndNonPrimitiveTypes")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/PrimitiveAndNonPrimitiveTypes/obj/Release/net8.0/PrimitiveAndNonPrimitiveTypes.AssemblyInfoInputs.cache b/PrimitiveAndNonPrimitiveTypes/obj/Release/net8.0/PrimitiveAndNonPrimitiveTypes.AssemblyInfoInputs.cache new file mode 100644 index 0000000..5466660 --- /dev/null +++ b/PrimitiveAndNonPrimitiveTypes/obj/Release/net8.0/PrimitiveAndNonPrimitiveTypes.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +fd92297c3f84bf3be5f323ad4b859611fe149d95cafd416f7fd0214d20e53c4a diff --git a/PrimitiveAndNonPrimitiveTypes/obj/Release/net8.0/PrimitiveAndNonPrimitiveTypes.GeneratedMSBuildEditorConfig.editorconfig b/PrimitiveAndNonPrimitiveTypes/obj/Release/net8.0/PrimitiveAndNonPrimitiveTypes.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..1e624d9 --- /dev/null +++ b/PrimitiveAndNonPrimitiveTypes/obj/Release/net8.0/PrimitiveAndNonPrimitiveTypes.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,15 @@ +is_global = true +build_property.TargetFramework = net8.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 = PrimitiveAndNonPrimitiveTypes +build_property.ProjectDir = C:\Users\DADA\Desktop\CLHRepo\InstructorsFilesAndReports\PrimitiveAndNonPrimitiveTypes\ +build_property.EnableComHosting = +build_property.EnableGeneratedComInterfaceComImportInterop = +build_property.EffectiveAnalysisLevelStyle = 8.0 +build_property.EnableCodeStyleSeverity = diff --git a/PrimitiveAndNonPrimitiveTypes/obj/Release/net8.0/PrimitiveAndNonPrimitiveTypes.GlobalUsings.g.cs b/PrimitiveAndNonPrimitiveTypes/obj/Release/net8.0/PrimitiveAndNonPrimitiveTypes.GlobalUsings.g.cs new file mode 100644 index 0000000..8578f3d --- /dev/null +++ b/PrimitiveAndNonPrimitiveTypes/obj/Release/net8.0/PrimitiveAndNonPrimitiveTypes.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/PrimitiveAndNonPrimitiveTypes/obj/Release/net8.0/PrimitiveAndNonPrimitiveTypes.assets.cache b/PrimitiveAndNonPrimitiveTypes/obj/Release/net8.0/PrimitiveAndNonPrimitiveTypes.assets.cache new file mode 100644 index 0000000..c2f9c0b Binary files /dev/null and b/PrimitiveAndNonPrimitiveTypes/obj/Release/net8.0/PrimitiveAndNonPrimitiveTypes.assets.cache differ diff --git a/PrimitiveAndNonPrimitiveTypes/obj/project.assets.json b/PrimitiveAndNonPrimitiveTypes/obj/project.assets.json new file mode 100644 index 0000000..b52d280 --- /dev/null +++ b/PrimitiveAndNonPrimitiveTypes/obj/project.assets.json @@ -0,0 +1,79 @@ +{ + "version": 3, + "targets": { + "net8.0": {} + }, + "libraries": {}, + "projectFileDependencyGroups": { + "net8.0": [] + }, + "packageFolders": { + "C:\\Users\\DADA\\.nuget\\packages\\": {}, + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\DADA\\Desktop\\PrimitiveAndNonPrimitiveTypes\\PrimitiveAndNonPrimitiveTypes.csproj", + "projectName": "PrimitiveAndNonPrimitiveTypes", + "projectPath": "C:\\Users\\DADA\\Desktop\\PrimitiveAndNonPrimitiveTypes\\PrimitiveAndNonPrimitiveTypes.csproj", + "packagesPath": "C:\\Users\\DADA\\.nuget\\packages\\", + "outputPath": "C:\\Users\\DADA\\Desktop\\PrimitiveAndNonPrimitiveTypes\\obj\\", + "projectStyle": "PackageReference", + "fallbackFolders": [ + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" + ], + "configFilePaths": [ + "C:\\Users\\DADA\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net8.0" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + }, + "restoreAuditProperties": { + "enableAudit": "true", + "auditLevel": "low", + "auditMode": "all" + }, + "SdkAnalysisLevel": "9.0.100" + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.100/PortableRuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/PrimitiveAndNonPrimitiveTypes/obj/project.nuget.cache b/PrimitiveAndNonPrimitiveTypes/obj/project.nuget.cache new file mode 100644 index 0000000..54e091a --- /dev/null +++ b/PrimitiveAndNonPrimitiveTypes/obj/project.nuget.cache @@ -0,0 +1,8 @@ +{ + "version": 2, + "dgSpecHash": "3FcEkbgMnRI=", + "success": true, + "projectFilePath": "C:\\Users\\DADA\\Desktop\\PrimitiveAndNonPrimitiveTypes\\PrimitiveAndNonPrimitiveTypes.csproj", + "expectedPackageFiles": [], + "logs": [] +} \ No newline at end of file