Initial transfer of larger repo from git. IF full history and branches are needed must go to github at https://github.com/DulcisL/CCUCoding.git
This commit is contained in:
commit
c09ce40be0
4048 files changed
+603256
No files matched your search
@@ -0,0 +1,85 @@
|
||||
using System;
|
||||
|
||||
// Properties with backing fields & get/set
|
||||
public class Person
|
||||
{
|
||||
private string _name;
|
||||
private string _id;
|
||||
|
||||
public string? Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return _name;
|
||||
}
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
get
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
set
|
||||
{
|
||||
if (value != null && value.Length != 9)
|
||||
{
|
||||
throw new ArgumentException("Not a valid ID");
|
||||
}
|
||||
_id = value;
|
||||
}
|
||||
}
|
||||
|
||||
public Person(string name, string? id)
|
||||
{
|
||||
_name = name;
|
||||
Id = id;
|
||||
}
|
||||
}
|
||||
|
||||
// Properties with backing fields & expression and body def.
|
||||
public class Person2
|
||||
{
|
||||
private string _first;
|
||||
private string _last;
|
||||
|
||||
public string Name => $"{_first} {_last}";
|
||||
|
||||
public Person2(string first, string last)
|
||||
{
|
||||
_first = first;
|
||||
_last = last;
|
||||
}
|
||||
}
|
||||
|
||||
// Auto-implemented
|
||||
public class Person3
|
||||
{
|
||||
public string First { get; set; }
|
||||
public string Last { get; set; }
|
||||
|
||||
public Person3() { } // Add default constructor
|
||||
|
||||
public Person3(string first, string last)
|
||||
{
|
||||
First = first;
|
||||
Last = last;
|
||||
}
|
||||
}
|
||||
|
||||
class Program
|
||||
{
|
||||
static void Main()
|
||||
{
|
||||
var person1 = new Person("Jeff", "123456789");
|
||||
Console.WriteLine($"Look at {person1.Name}");
|
||||
|
||||
var person2 = new Person2("John", "Doe");
|
||||
Console.WriteLine($"Say hello to {person2.Name}");
|
||||
|
||||
var person3 = new Person3 { First = "Jeff", Last = "Dom" };
|
||||
Console.WriteLine($"Meet {person3.First} {person3.Last}");
|
||||
|
||||
Console.ReadLine();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v8.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v8.0": {
|
||||
"properties/1.0.0": {
|
||||
"runtime": {
|
||||
"properties.dll": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"properties/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "net8.0",
|
||||
"framework": {
|
||||
"name": "Microsoft.NETCore.App",
|
||||
"version": "8.0.0"
|
||||
},
|
||||
"configProperties": {
|
||||
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
|
||||
}
|
||||
}
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]
|
||||
Binary file not shown.
@@ -0,0 +1,23 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 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.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("properties")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("properties")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("properties")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
// Generated by the MSBuild WriteCodeFragment class.
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
d69301e114ee22464197f1cacb10ff1754b66d9d0b2ce2be2346d2f0fe51c353
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
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 = properties
|
||||
build_property.ProjectDir = C:\Users\dolce\OneDrive\Documents\CSCI\CSCI350\introtoC#\properties\
|
||||
build_property.EnableComHosting =
|
||||
build_property.EnableGeneratedComInterfaceComImportInterop =
|
||||
@@ -0,0 +1,8 @@
|
||||
// <auto-generated/>
|
||||
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;
|
||||
Binary file not shown.
+1
@@ -0,0 +1 @@
|
||||
f55d4ce91de87899bff8fc112930339787b837ec4ec836ab1e0d0669b8c04b34
|
||||
@@ -0,0 +1,14 @@
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\CSCI350\introtoC#\properties\obj\Debug\net8.0\properties.GeneratedMSBuildEditorConfig.editorconfig
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\CSCI350\introtoC#\properties\obj\Debug\net8.0\properties.AssemblyInfoInputs.cache
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\CSCI350\introtoC#\properties\obj\Debug\net8.0\properties.AssemblyInfo.cs
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\CSCI350\introtoC#\properties\obj\Debug\net8.0\properties.csproj.CoreCompileInputs.cache
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\CSCI350\introtoC#\properties\bin\Debug\net8.0\properties.exe
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\CSCI350\introtoC#\properties\bin\Debug\net8.0\properties.deps.json
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\CSCI350\introtoC#\properties\bin\Debug\net8.0\properties.runtimeconfig.json
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\CSCI350\introtoC#\properties\bin\Debug\net8.0\properties.dll
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\CSCI350\introtoC#\properties\bin\Debug\net8.0\properties.pdb
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\CSCI350\introtoC#\properties\obj\Debug\net8.0\properties.dll
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\CSCI350\introtoC#\properties\obj\Debug\net8.0\refint\properties.dll
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\CSCI350\introtoC#\properties\obj\Debug\net8.0\properties.pdb
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\CSCI350\introtoC#\properties\obj\Debug\net8.0\properties.genruntimeconfig.cache
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\CSCI350\introtoC#\properties\obj\Debug\net8.0\ref\properties.dll
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
d0710f5be79953eedc7eecc852f865848be3c82921308bb56dd0754112ac5141
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
+4
@@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]
|
||||
@@ -0,0 +1,23 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 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.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("properties")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("properties")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("properties")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
// Generated by the MSBuild WriteCodeFragment class.
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
6d23103417ea1e281296ebb43c56c27e207c0aebcf01ac20ea11e334f387b729
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
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 = properties
|
||||
build_property.ProjectDir = C:\Users\dolce\OneDrive\Documents\CSCI\CSCI350\introtoC#\properties\
|
||||
build_property.EnableComHosting =
|
||||
build_property.EnableGeneratedComInterfaceComImportInterop =
|
||||
@@ -0,0 +1,8 @@
|
||||
// <auto-generated/>
|
||||
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;
|
||||
Binary file not shown.
@@ -0,0 +1,73 @@
|
||||
{
|
||||
"version": 3,
|
||||
"targets": {
|
||||
"net8.0": {}
|
||||
},
|
||||
"libraries": {},
|
||||
"projectFileDependencyGroups": {
|
||||
"net8.0": []
|
||||
},
|
||||
"packageFolders": {
|
||||
"C:\\Users\\dolce\\.nuget\\packages\\": {},
|
||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
|
||||
},
|
||||
"project": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "C:\\Users\\dolce\\OneDrive\\Documents\\CSCI\\CSCI350\\introtoC#\\properties\\properties.csproj",
|
||||
"projectName": "properties",
|
||||
"projectPath": "C:\\Users\\dolce\\OneDrive\\Documents\\CSCI\\CSCI350\\introtoC#\\properties\\properties.csproj",
|
||||
"packagesPath": "C:\\Users\\dolce\\.nuget\\packages\\",
|
||||
"outputPath": "C:\\Users\\dolce\\OneDrive\\Documents\\CSCI\\CSCI350\\introtoC#\\properties\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"fallbackFolders": [
|
||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||
],
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\dolce\\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"
|
||||
]
|
||||
}
|
||||
},
|
||||
"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\\8.0.101/PortableRuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"version": 2,
|
||||
"dgSpecHash": "H0W1MgOqnmiB7ZygZ9GspcVKKqP/JhkPjp/7i7gduTw7cPKd7RpVQLnSHKa6eThxC/u7AK3P+lh9cfnSAoJ8ig==",
|
||||
"success": true,
|
||||
"projectFilePath": "C:\\Users\\dolce\\OneDrive\\Documents\\CSCI\\CSCI350\\introtoC#\\properties\\properties.csproj",
|
||||
"expectedPackageFiles": [],
|
||||
"logs": []
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
{
|
||||
"format": 1,
|
||||
"restore": {
|
||||
"C:\\Users\\dolce\\OneDrive\\Documents\\CSCI\\CSCI350\\introtoC#\\properties\\properties.csproj": {}
|
||||
},
|
||||
"projects": {
|
||||
"C:\\Users\\dolce\\OneDrive\\Documents\\CSCI\\CSCI350\\introtoC#\\properties\\properties.csproj": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "C:\\Users\\dolce\\OneDrive\\Documents\\CSCI\\CSCI350\\introtoC#\\properties\\properties.csproj",
|
||||
"projectName": "properties",
|
||||
"projectPath": "C:\\Users\\dolce\\OneDrive\\Documents\\CSCI\\CSCI350\\introtoC#\\properties\\properties.csproj",
|
||||
"packagesPath": "C:\\Users\\dolce\\.nuget\\packages\\",
|
||||
"outputPath": "C:\\Users\\dolce\\OneDrive\\Documents\\CSCI\\CSCI350\\introtoC#\\properties\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"fallbackFolders": [
|
||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||
],
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\dolce\\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"
|
||||
]
|
||||
}
|
||||
},
|
||||
"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\\8.0.101/PortableRuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
||||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\dolce\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
|
||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.8.0</NuGetToolVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<SourceRoot Include="C:\Users\dolce\.nuget\packages\" />
|
||||
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
|
||||
@@ -0,0 +1,10 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,62 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace TV
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Console.WriteLine("Hello World!");
|
||||
|
||||
Show one = new Show() {
|
||||
Name="Parks and Recreation",
|
||||
NumEpisodes=125,
|
||||
Year=2009,
|
||||
Actors= new List<string> {
|
||||
"Amy Poehler","Aziz Ansari","Nick Offerman"
|
||||
}
|
||||
};
|
||||
Show two = new Show() {
|
||||
Name="Burn Notice",
|
||||
NumEpisodes=111,
|
||||
Year=2007,
|
||||
Actors= new List<string> {
|
||||
"Jeffrey Donovan","Gabrielle Anwar","Bruce Campbell"
|
||||
}
|
||||
};
|
||||
Show three = new Show() {
|
||||
Name="Space Force",
|
||||
NumEpisodes=10,
|
||||
Year=2020,
|
||||
Actors= new List<string> {
|
||||
"Steve Carrel","Ben Schwartz","John Malkovich"
|
||||
}
|
||||
};
|
||||
List<Show> shows = new List<Show>(){
|
||||
one, two, three
|
||||
};
|
||||
foreach (Show s in shows){
|
||||
Console.WriteLine(s);
|
||||
}
|
||||
|
||||
Console.WriteLine("---------");
|
||||
shows.Sort();
|
||||
foreach (Show s in shows){
|
||||
Console.WriteLine(s);
|
||||
}
|
||||
|
||||
Console.WriteLine("---------");
|
||||
shows.Sort(new NumEpisodeComparer());
|
||||
foreach (Show s in shows){
|
||||
Console.WriteLine(s);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
public class NumEpisodeComparer : IComparer<Show>{
|
||||
public int Compare(Show x, Show y){
|
||||
return x.NumEpisodes-y.NumEpisodes;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace TV
|
||||
{
|
||||
public class Show : IComparable<Show>
|
||||
{
|
||||
public string Name {get;set;}
|
||||
|
||||
public int Year {get;set;}
|
||||
|
||||
public int NumEpisodes {get;set;}
|
||||
|
||||
public List<string> Actors {get;set;}
|
||||
|
||||
public override string ToString() {
|
||||
|
||||
StringBuilder sb = new StringBuilder("featuring ");
|
||||
foreach(string name in Actors){
|
||||
sb.Append($"{name}, ");
|
||||
}
|
||||
|
||||
string names = sb.Remove(sb.Length-2,2).ToString();
|
||||
return $"{Name} ({Year}) - {NumEpisodes} episodes, {names}";
|
||||
}
|
||||
|
||||
public int CompareTo(Show otherShow){
|
||||
return this.Name.CompareTo(otherShow.Name);
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v5.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v5.0": {
|
||||
"sample1/1.0.0": {
|
||||
"runtime": {
|
||||
"sample1.dll": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"sample1/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"additionalProbingPaths": [
|
||||
"C:\\Users\\dolce\\.dotnet\\store\\|arch|\\|tfm|",
|
||||
"C:\\Users\\dolce\\.nuget\\packages",
|
||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "net5.0",
|
||||
"framework": {
|
||||
"name": "Microsoft.NETCore.App",
|
||||
"version": "5.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v5.0", FrameworkDisplayName = ".NET 5.0")]
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,23 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 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.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("sample1")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("sample1")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("sample1")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
// Generated by the MSBuild WriteCodeFragment class.
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
3dcd5168ddb5525444aedb7935c1f582cf9dcfd2dd24d14148dd431893f670fe
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
is_global = true
|
||||
build_property.TargetFramework = net5.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 = sample1
|
||||
build_property.ProjectDir = C:\Users\dolce\OneDrive\Documents\CSCI\CSCI350\introtoC#\sample1\
|
||||
build_property.EnableComHosting =
|
||||
build_property.EnableGeneratedComInterfaceComImportInterop =
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
d5a2a5de65a7c4687fea4f1c715495635370579834e4bdda8c48155b9fa64c86
|
||||
@@ -0,0 +1,32 @@
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\introtoC#\sample1\bin\Debug\net5.0\sample1.exe
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\introtoC#\sample1\bin\Debug\net5.0\sample1.deps.json
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\introtoC#\sample1\bin\Debug\net5.0\sample1.runtimeconfig.json
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\introtoC#\sample1\bin\Debug\net5.0\sample1.runtimeconfig.dev.json
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\introtoC#\sample1\bin\Debug\net5.0\sample1.dll
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\introtoC#\sample1\bin\Debug\net5.0\ref\sample1.dll
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\introtoC#\sample1\bin\Debug\net5.0\sample1.pdb
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\introtoC#\sample1\obj\Debug\net5.0\sample1.csproj.AssemblyReference.cache
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\introtoC#\sample1\obj\Debug\net5.0\sample1.GeneratedMSBuildEditorConfig.editorconfig
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\introtoC#\sample1\obj\Debug\net5.0\sample1.AssemblyInfoInputs.cache
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\introtoC#\sample1\obj\Debug\net5.0\sample1.AssemblyInfo.cs
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\introtoC#\sample1\obj\Debug\net5.0\sample1.csproj.CoreCompileInputs.cache
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\introtoC#\sample1\obj\Debug\net5.0\sample1.dll
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\introtoC#\sample1\obj\Debug\net5.0\ref\sample1.dll
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\introtoC#\sample1\obj\Debug\net5.0\sample1.pdb
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\introtoC#\sample1\obj\Debug\net5.0\sample1.genruntimeconfig.cache
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\CSCI350\introtoC#\sample1\bin\Debug\net5.0\sample1.exe
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\CSCI350\introtoC#\sample1\bin\Debug\net5.0\sample1.deps.json
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\CSCI350\introtoC#\sample1\bin\Debug\net5.0\sample1.runtimeconfig.json
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\CSCI350\introtoC#\sample1\bin\Debug\net5.0\sample1.runtimeconfig.dev.json
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\CSCI350\introtoC#\sample1\bin\Debug\net5.0\sample1.dll
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\CSCI350\introtoC#\sample1\bin\Debug\net5.0\sample1.pdb
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\CSCI350\introtoC#\sample1\obj\Debug\net5.0\sample1.csproj.AssemblyReference.cache
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\CSCI350\introtoC#\sample1\obj\Debug\net5.0\sample1.GeneratedMSBuildEditorConfig.editorconfig
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\CSCI350\introtoC#\sample1\obj\Debug\net5.0\sample1.AssemblyInfoInputs.cache
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\CSCI350\introtoC#\sample1\obj\Debug\net5.0\sample1.AssemblyInfo.cs
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\CSCI350\introtoC#\sample1\obj\Debug\net5.0\sample1.csproj.CoreCompileInputs.cache
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\CSCI350\introtoC#\sample1\obj\Debug\net5.0\sample1.dll
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\CSCI350\introtoC#\sample1\obj\Debug\net5.0\refint\sample1.dll
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\CSCI350\introtoC#\sample1\obj\Debug\net5.0\sample1.pdb
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\CSCI350\introtoC#\sample1\obj\Debug\net5.0\sample1.genruntimeconfig.cache
|
||||
C:\Users\dolce\OneDrive\Documents\CSCI\CSCI350\introtoC#\sample1\obj\Debug\net5.0\ref\sample1.dll
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
ae06fbdab23c4794746e7f323c40612d59670fcf92468e2e205fafadf37ac5ce
|
||||
Binary file not shown.
+4
@@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v5.0", FrameworkDisplayName = ".NET 5.0")]
|
||||
@@ -0,0 +1,23 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 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.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("sample1")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("sample1")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("sample1")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
// Generated by the MSBuild WriteCodeFragment class.
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
eec935434475f2f629af09cf172bd514ece478d90b73bc9a844e3b3de419317a
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
is_global = true
|
||||
build_property.TargetFramework = net5.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 = sample1
|
||||
build_property.ProjectDir = C:\Users\dolce\OneDrive\Documents\CSCI\CSCI350\introtoC#\sample1\
|
||||
build_property.EnableComHosting =
|
||||
build_property.EnableGeneratedComInterfaceComImportInterop =
|
||||
Binary file not shown.
@@ -0,0 +1,73 @@
|
||||
{
|
||||
"version": 3,
|
||||
"targets": {
|
||||
"net5.0": {}
|
||||
},
|
||||
"libraries": {},
|
||||
"projectFileDependencyGroups": {
|
||||
"net5.0": []
|
||||
},
|
||||
"packageFolders": {
|
||||
"C:\\Users\\dolce\\.nuget\\packages\\": {},
|
||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
|
||||
},
|
||||
"project": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "C:\\Users\\dolce\\OneDrive\\Documents\\CSCI\\CSCI350\\introtoC#\\sample1\\sample1.csproj",
|
||||
"projectName": "sample1",
|
||||
"projectPath": "C:\\Users\\dolce\\OneDrive\\Documents\\CSCI\\CSCI350\\introtoC#\\sample1\\sample1.csproj",
|
||||
"packagesPath": "C:\\Users\\dolce\\.nuget\\packages\\",
|
||||
"outputPath": "C:\\Users\\dolce\\OneDrive\\Documents\\CSCI\\CSCI350\\introtoC#\\sample1\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"fallbackFolders": [
|
||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||
],
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\dolce\\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": [
|
||||
"net5.0"
|
||||
],
|
||||
"sources": {
|
||||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net5.0": {
|
||||
"targetAlias": "net5.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
}
|
||||
},
|
||||
"frameworks": {
|
||||
"net5.0": {
|
||||
"targetAlias": "net5.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\\8.0.101\\RuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"version": 2,
|
||||
"dgSpecHash": "hgOPy4dHUt9+0Dil8JnJlg55jof+MAQ2CpAuwvaIDoHyCE9+0FwLriaCJj1UKqmptVeNosFrutnCcpw6Audj4Q==",
|
||||
"success": true,
|
||||
"projectFilePath": "C:\\Users\\dolce\\OneDrive\\Documents\\CSCI\\CSCI350\\introtoC#\\sample1\\sample1.csproj",
|
||||
"expectedPackageFiles": [],
|
||||
"logs": []
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
{
|
||||
"format": 1,
|
||||
"restore": {
|
||||
"C:\\Users\\dolce\\OneDrive\\Documents\\CSCI\\CSCI350\\introtoC#\\sample1\\sample1.csproj": {}
|
||||
},
|
||||
"projects": {
|
||||
"C:\\Users\\dolce\\OneDrive\\Documents\\CSCI\\CSCI350\\introtoC#\\sample1\\sample1.csproj": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "C:\\Users\\dolce\\OneDrive\\Documents\\CSCI\\CSCI350\\introtoC#\\sample1\\sample1.csproj",
|
||||
"projectName": "sample1",
|
||||
"projectPath": "C:\\Users\\dolce\\OneDrive\\Documents\\CSCI\\CSCI350\\introtoC#\\sample1\\sample1.csproj",
|
||||
"packagesPath": "C:\\Users\\dolce\\.nuget\\packages\\",
|
||||
"outputPath": "C:\\Users\\dolce\\OneDrive\\Documents\\CSCI\\CSCI350\\introtoC#\\sample1\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"fallbackFolders": [
|
||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||
],
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\dolce\\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": [
|
||||
"net5.0"
|
||||
],
|
||||
"sources": {
|
||||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net5.0": {
|
||||
"targetAlias": "net5.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
}
|
||||
},
|
||||
"frameworks": {
|
||||
"net5.0": {
|
||||
"targetAlias": "net5.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\\8.0.101\\RuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
||||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\dolce\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
|
||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.8.0</NuGetToolVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<SourceRoot Include="C:\Users\dolce\.nuget\packages\" />
|
||||
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
|
||||
@@ -0,0 +1,8 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
Reference in new issue
Block a user