├── .vscode ├── launch.json └── tasks.json ├── C# Advanced Topics.csproj ├── bin └── Debug │ └── net6.0 │ ├── C# Advanced Topics.deps.json │ ├── C# Advanced Topics.dll │ ├── C# Advanced Topics.exe │ ├── C# Advanced Topics.pdb │ ├── C# Advanced Topics.runtimeconfig.json │ └── ref │ └── C# Advanced Topics.dll ├── obj ├── C# Advanced Topics.csproj.nuget.dgspec.json ├── C# Advanced Topics.csproj.nuget.g.props ├── C# Advanced Topics.csproj.nuget.g.targets ├── Debug │ └── net6.0 │ │ ├── .NETCoreApp,Version=v6.0.AssemblyAttributes.cs │ │ ├── C# Advanced Topics.AssemblyInfo.cs │ │ ├── C# Advanced Topics.AssemblyInfoInputs.cache │ │ ├── C# Advanced Topics.GeneratedMSBuildEditorConfig.editorconfig │ │ ├── C# Advanced Topics.GlobalUsings.g.cs │ │ ├── C# Advanced Topics.assets.cache │ │ ├── C# Advanced Topics.csproj.AssemblyReference.cache │ │ ├── C# Advanced Topics.csproj.CoreCompileInputs.cache │ │ ├── C# Advanced Topics.csproj.FileListAbsolute.txt │ │ ├── C# Advanced Topics.dll │ │ ├── C# Advanced Topics.genruntimeconfig.cache │ │ ├── C# Advanced Topics.pdb │ │ ├── apphost.exe │ │ └── ref │ │ └── C# Advanced Topics.dll ├── project.assets.json └── project.nuget.cache └── program.cs /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "0.2.0", 3 | "configurations": [ 4 | { 5 | // Use IntelliSense to find out which attributes exist for C# debugging 6 | // Use hover for the description of the existing attributes 7 | // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md 8 | "name": ".NET Core Launch (console)", 9 | "type": "coreclr", 10 | "request": "launch", 11 | "preLaunchTask": "build", 12 | // If you have changed target frameworks, make sure to update the program path. 13 | "program": "${workspaceFolder}/bin/Debug/net6.0/C# Advanced Topics.dll", 14 | "args": [], 15 | "cwd": "${workspaceFolder}", 16 | // For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console 17 | "console": "internalConsole", 18 | "stopAtEntry": false 19 | }, 20 | { 21 | "name": ".NET Core Attach", 22 | "type": "coreclr", 23 | "request": "attach" 24 | } 25 | ] 26 | } -------------------------------------------------------------------------------- /.vscode/tasks.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "2.0.0", 3 | "tasks": [ 4 | { 5 | "label": "build", 6 | "command": "dotnet", 7 | "type": "process", 8 | "args": [ 9 | "build", 10 | "${workspaceFolder}/C# Advanced Topics.csproj", 11 | "/property:GenerateFullPaths=true", 12 | "/consoleloggerparameters:NoSummary" 13 | ], 14 | "problemMatcher": "$msCompile" 15 | }, 16 | { 17 | "label": "publish", 18 | "command": "dotnet", 19 | "type": "process", 20 | "args": [ 21 | "publish", 22 | "${workspaceFolder}/C# Advanced Topics.csproj", 23 | "/property:GenerateFullPaths=true", 24 | "/consoleloggerparameters:NoSummary" 25 | ], 26 | "problemMatcher": "$msCompile" 27 | }, 28 | { 29 | "label": "watch", 30 | "command": "dotnet", 31 | "type": "process", 32 | "args": [ 33 | "watch", 34 | "run", 35 | "${workspaceFolder}/C# Advanced Topics.csproj", 36 | "/property:GenerateFullPaths=true", 37 | "/consoleloggerparameters:NoSummary" 38 | ], 39 | "problemMatcher": "$msCompile" 40 | } 41 | ] 42 | } -------------------------------------------------------------------------------- /C# Advanced Topics.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | net6.0 6 | C__Advanced_Topics 7 | enable 8 | enable 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /bin/Debug/net6.0/C# Advanced Topics.deps.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeTarget": { 3 | "name": ".NETCoreApp,Version=v6.0", 4 | "signature": "" 5 | }, 6 | "compilationOptions": {}, 7 | "targets": { 8 | ".NETCoreApp,Version=v6.0": { 9 | "C# Advanced Topics/1.0.0": { 10 | "runtime": { 11 | "C# Advanced Topics.dll": {} 12 | } 13 | } 14 | } 15 | }, 16 | "libraries": { 17 | "C# Advanced Topics/1.0.0": { 18 | "type": "project", 19 | "serviceable": false, 20 | "sha512": "" 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /bin/Debug/net6.0/C# Advanced Topics.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/C--Advanced-Topics/3cae571b85ae544e4088b18b03e23b8f5b843a61/bin/Debug/net6.0/C# Advanced Topics.dll -------------------------------------------------------------------------------- /bin/Debug/net6.0/C# Advanced Topics.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/C--Advanced-Topics/3cae571b85ae544e4088b18b03e23b8f5b843a61/bin/Debug/net6.0/C# Advanced Topics.exe -------------------------------------------------------------------------------- /bin/Debug/net6.0/C# Advanced Topics.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/C--Advanced-Topics/3cae571b85ae544e4088b18b03e23b8f5b843a61/bin/Debug/net6.0/C# Advanced Topics.pdb -------------------------------------------------------------------------------- /bin/Debug/net6.0/C# Advanced Topics.runtimeconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeOptions": { 3 | "tfm": "net6.0", 4 | "framework": { 5 | "name": "Microsoft.NETCore.App", 6 | "version": "6.0.0" 7 | } 8 | } 9 | } -------------------------------------------------------------------------------- /bin/Debug/net6.0/ref/C# Advanced Topics.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/C--Advanced-Topics/3cae571b85ae544e4088b18b03e23b8f5b843a61/bin/Debug/net6.0/ref/C# Advanced Topics.dll -------------------------------------------------------------------------------- /obj/C# Advanced Topics.csproj.nuget.dgspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "format": 1, 3 | "restore": { 4 | "E:\\C# Advanced Topics\\C# Advanced Topics.csproj": {} 5 | }, 6 | "projects": { 7 | "E:\\C# Advanced Topics\\C# Advanced Topics.csproj": { 8 | "version": "1.0.0", 9 | "restore": { 10 | "projectUniqueName": "E:\\C# Advanced Topics\\C# Advanced Topics.csproj", 11 | "projectName": "C# Advanced Topics", 12 | "projectPath": "E:\\C# Advanced Topics\\C# Advanced Topics.csproj", 13 | "packagesPath": "C:\\Users\\Fazrin\\.nuget\\packages\\", 14 | "outputPath": "E:\\C# Advanced Topics\\obj\\", 15 | "projectStyle": "PackageReference", 16 | "configFilePaths": [ 17 | "C:\\Users\\Fazrin\\AppData\\Roaming\\NuGet\\NuGet.Config", 18 | "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" 19 | ], 20 | "originalTargetFrameworks": [ 21 | "net6.0" 22 | ], 23 | "sources": { 24 | "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, 25 | "https://api.nuget.org/v3/index.json": {} 26 | }, 27 | "frameworks": { 28 | "net6.0": { 29 | "targetAlias": "net6.0", 30 | "projectReferences": {} 31 | } 32 | }, 33 | "warningProperties": { 34 | "warnAsError": [ 35 | "NU1605" 36 | ] 37 | } 38 | }, 39 | "frameworks": { 40 | "net6.0": { 41 | "targetAlias": "net6.0", 42 | "imports": [ 43 | "net461", 44 | "net462", 45 | "net47", 46 | "net471", 47 | "net472", 48 | "net48" 49 | ], 50 | "assetTargetFallback": true, 51 | "warn": true, 52 | "frameworkReferences": { 53 | "Microsoft.NETCore.App": { 54 | "privateAssets": "all" 55 | } 56 | }, 57 | "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.101\\RuntimeIdentifierGraph.json" 58 | } 59 | } 60 | } 61 | } 62 | } -------------------------------------------------------------------------------- /obj/C# Advanced Topics.csproj.nuget.g.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | True 5 | NuGet 6 | $(MSBuildThisFileDirectory)project.assets.json 7 | $(UserProfile)\.nuget\packages\ 8 | C:\Users\Fazrin\.nuget\packages\ 9 | PackageReference 10 | 6.0.0 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /obj/C# Advanced Topics.csproj.nuget.g.targets: -------------------------------------------------------------------------------- 1 |  2 | -------------------------------------------------------------------------------- /obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs: -------------------------------------------------------------------------------- 1 | // 2 | using System; 3 | using System.Reflection; 4 | [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = "")] 5 | -------------------------------------------------------------------------------- /obj/Debug/net6.0/C# Advanced Topics.AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | using System; 11 | using System.Reflection; 12 | 13 | [assembly: System.Reflection.AssemblyCompanyAttribute("C# Advanced Topics")] 14 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] 15 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] 16 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] 17 | [assembly: System.Reflection.AssemblyProductAttribute("C# Advanced Topics")] 18 | [assembly: System.Reflection.AssemblyTitleAttribute("C# Advanced Topics")] 19 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] 20 | 21 | // Generated by the MSBuild WriteCodeFragment class. 22 | 23 | -------------------------------------------------------------------------------- /obj/Debug/net6.0/C# Advanced Topics.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | 18fb45415607bcc74a94f4858039801ff473e276 2 | -------------------------------------------------------------------------------- /obj/Debug/net6.0/C# Advanced Topics.GeneratedMSBuildEditorConfig.editorconfig: -------------------------------------------------------------------------------- 1 | is_global = true 2 | build_property.TargetFramework = net6.0 3 | build_property.TargetPlatformMinVersion = 4 | build_property.UsingMicrosoftNETSdkWeb = 5 | build_property.ProjectTypeGuids = 6 | build_property.InvariantGlobalization = 7 | build_property.PlatformNeutralAssembly = 8 | build_property._SupportedPlatformList = Linux,macOS,Windows 9 | build_property.RootNamespace = C__Advanced_Topics 10 | build_property.ProjectDir = e:\C# Advanced Topics\ 11 | -------------------------------------------------------------------------------- /obj/Debug/net6.0/C# Advanced Topics.GlobalUsings.g.cs: -------------------------------------------------------------------------------- 1 | // 2 | global using global::System; 3 | global using global::System.Collections.Generic; 4 | global using global::System.IO; 5 | global using global::System.Linq; 6 | global using global::System.Net.Http; 7 | global using global::System.Threading; 8 | global using global::System.Threading.Tasks; 9 | -------------------------------------------------------------------------------- /obj/Debug/net6.0/C# Advanced Topics.assets.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/C--Advanced-Topics/3cae571b85ae544e4088b18b03e23b8f5b843a61/obj/Debug/net6.0/C# Advanced Topics.assets.cache -------------------------------------------------------------------------------- /obj/Debug/net6.0/C# Advanced Topics.csproj.AssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/C--Advanced-Topics/3cae571b85ae544e4088b18b03e23b8f5b843a61/obj/Debug/net6.0/C# Advanced Topics.csproj.AssemblyReference.cache -------------------------------------------------------------------------------- /obj/Debug/net6.0/C# Advanced Topics.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | 6795029bd0d1704a1c8c1d668620191b714e90ef 2 | -------------------------------------------------------------------------------- /obj/Debug/net6.0/C# Advanced Topics.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | E:\C# Advanced Topics\bin\Debug\net6.0\C# Advanced Topics.exe 2 | E:\C# Advanced Topics\bin\Debug\net6.0\C# Advanced Topics.deps.json 3 | E:\C# Advanced Topics\bin\Debug\net6.0\C# Advanced Topics.runtimeconfig.json 4 | E:\C# Advanced Topics\bin\Debug\net6.0\C# Advanced Topics.dll 5 | E:\C# Advanced Topics\bin\Debug\net6.0\ref\C# Advanced Topics.dll 6 | E:\C# Advanced Topics\bin\Debug\net6.0\C# Advanced Topics.pdb 7 | E:\C# Advanced Topics\obj\Debug\net6.0\C# Advanced Topics.csproj.AssemblyReference.cache 8 | E:\C# Advanced Topics\obj\Debug\net6.0\C# Advanced Topics.GeneratedMSBuildEditorConfig.editorconfig 9 | E:\C# Advanced Topics\obj\Debug\net6.0\C# Advanced Topics.AssemblyInfoInputs.cache 10 | E:\C# Advanced Topics\obj\Debug\net6.0\C# Advanced Topics.AssemblyInfo.cs 11 | E:\C# Advanced Topics\obj\Debug\net6.0\C# Advanced Topics.csproj.CoreCompileInputs.cache 12 | E:\C# Advanced Topics\obj\Debug\net6.0\C# Advanced Topics.dll 13 | E:\C# Advanced Topics\obj\Debug\net6.0\ref\C# Advanced Topics.dll 14 | E:\C# Advanced Topics\obj\Debug\net6.0\C# Advanced Topics.pdb 15 | E:\C# Advanced Topics\obj\Debug\net6.0\C# Advanced Topics.genruntimeconfig.cache 16 | -------------------------------------------------------------------------------- /obj/Debug/net6.0/C# Advanced Topics.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/C--Advanced-Topics/3cae571b85ae544e4088b18b03e23b8f5b843a61/obj/Debug/net6.0/C# Advanced Topics.dll -------------------------------------------------------------------------------- /obj/Debug/net6.0/C# Advanced Topics.genruntimeconfig.cache: -------------------------------------------------------------------------------- 1 | 2954d92fe4b01d7bf7342ab70b03d02a5b28092a 2 | -------------------------------------------------------------------------------- /obj/Debug/net6.0/C# Advanced Topics.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/C--Advanced-Topics/3cae571b85ae544e4088b18b03e23b8f5b843a61/obj/Debug/net6.0/C# Advanced Topics.pdb -------------------------------------------------------------------------------- /obj/Debug/net6.0/apphost.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/C--Advanced-Topics/3cae571b85ae544e4088b18b03e23b8f5b843a61/obj/Debug/net6.0/apphost.exe -------------------------------------------------------------------------------- /obj/Debug/net6.0/ref/C# Advanced Topics.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/C--Advanced-Topics/3cae571b85ae544e4088b18b03e23b8f5b843a61/obj/Debug/net6.0/ref/C# Advanced Topics.dll -------------------------------------------------------------------------------- /obj/project.assets.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 3, 3 | "targets": { 4 | "net6.0": {} 5 | }, 6 | "libraries": {}, 7 | "projectFileDependencyGroups": { 8 | "net6.0": [] 9 | }, 10 | "packageFolders": { 11 | "C:\\Users\\Fazrin\\.nuget\\packages\\": {} 12 | }, 13 | "project": { 14 | "version": "1.0.0", 15 | "restore": { 16 | "projectUniqueName": "E:\\C# Advanced Topics\\C# Advanced Topics.csproj", 17 | "projectName": "C# Advanced Topics", 18 | "projectPath": "E:\\C# Advanced Topics\\C# Advanced Topics.csproj", 19 | "packagesPath": "C:\\Users\\Fazrin\\.nuget\\packages\\", 20 | "outputPath": "E:\\C# Advanced Topics\\obj\\", 21 | "projectStyle": "PackageReference", 22 | "configFilePaths": [ 23 | "C:\\Users\\Fazrin\\AppData\\Roaming\\NuGet\\NuGet.Config", 24 | "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" 25 | ], 26 | "originalTargetFrameworks": [ 27 | "net6.0" 28 | ], 29 | "sources": { 30 | "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, 31 | "https://api.nuget.org/v3/index.json": {} 32 | }, 33 | "frameworks": { 34 | "net6.0": { 35 | "targetAlias": "net6.0", 36 | "projectReferences": {} 37 | } 38 | }, 39 | "warningProperties": { 40 | "warnAsError": [ 41 | "NU1605" 42 | ] 43 | } 44 | }, 45 | "frameworks": { 46 | "net6.0": { 47 | "targetAlias": "net6.0", 48 | "imports": [ 49 | "net461", 50 | "net462", 51 | "net47", 52 | "net471", 53 | "net472", 54 | "net48" 55 | ], 56 | "assetTargetFallback": true, 57 | "warn": true, 58 | "frameworkReferences": { 59 | "Microsoft.NETCore.App": { 60 | "privateAssets": "all" 61 | } 62 | }, 63 | "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.101\\RuntimeIdentifierGraph.json" 64 | } 65 | } 66 | } 67 | } -------------------------------------------------------------------------------- /obj/project.nuget.cache: -------------------------------------------------------------------------------- 1 | { 2 | "version": 2, 3 | "dgSpecHash": "QFncnko9h84U9HSPQkyGVlBAxVSBZOLJqn65SSHaHaXDVfo6LcoNWT10RwB2Ees3fb4aizQPzJc74JQx2zCkpg==", 4 | "success": true, 5 | "projectFilePath": "E:\\C# Advanced Topics\\C# Advanced Topics.csproj", 6 | "expectedPackageFiles": [], 7 | "logs": [] 8 | } -------------------------------------------------------------------------------- /program.cs: -------------------------------------------------------------------------------- 1 | // See https://aka.ms/new-console-template for more information 2 | 3 | 4 | Console.WriteLine("Hello, World!"); 5 | 6 | 7 | //create a class for vehicle 8 | public class Vehicle 9 | { 10 | public int VehicleId { get; set; } 11 | public string VehicleName { get; set; } 12 | public string VehicleType { get; set; } 13 | public string VehicleColor { get; set; } 14 | public int VehicleYear { get; set; } 15 | public int VehiclePrice { get; set; } 16 | 17 | public void Run() 18 | { 19 | Console.WriteLine("Vehicle is running"); 20 | } 21 | 22 | public void Stop() 23 | { 24 | Console.WriteLine("Vehicle is stopped"); 25 | } 26 | } 27 | 28 | 29 | //create a class for customer 30 | public class Customer 31 | { 32 | public int CustomerId { get; set; } 33 | public string CustomerName { get; set; } 34 | public string CustomerAddress { get; set; } 35 | public string CustomerPhone { get; set; } 36 | public string CustomerEmail { get; set; } 37 | } 38 | 39 | public class Car : Vehicle 40 | { 41 | 42 | } 43 | 44 | 45 | public class Motorcycle : Vehicle 46 | { 47 | public void RunCar() 48 | { 49 | Car car = new(); 50 | car.Run(); 51 | } 52 | 53 | } 54 | 55 | 56 | 57 | 58 | --------------------------------------------------------------------------------