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:
dolcel committed 2026-10-20 23:59:02 +00:00
commit c09ce40be0
4048 files changed
+603256

No files matched your search

+62
View File
@@ -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;
}
}
}
+32
View File
@@ -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);
}
}
}
@@ -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": ""
}
}
}
@@ -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"
}
}
}
@@ -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("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
@@ -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 =
@@ -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
@@ -0,0 +1 @@
ae06fbdab23c4794746e7f323c40612d59670fcf92468e2e205fafadf37ac5ce
@@ -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
@@ -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 =
@@ -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" />
+8
View File
@@ -0,0 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
</Project>