Skip to content
Snippets Groups Projects
Commit 7f334a2a authored by Uwe Wienkop's avatar Uwe Wienkop
Browse files

xxx

parents 42fe7b83 4aecec3a
No related branches found
No related tags found
No related merge requests found
Showing
with 210 additions and 5 deletions
6c6f8de4f066bf8ca69ef5a4c8c6e2e7bac0d33c
is_global = true
build_property.RootNamespace = _01_IntroKlassen
build_property.ProjectDir = C:\Users\wienkop\Source\Repos\prog2-ss2022-wienkop\01 IntroKlassen\
File added
......@@ -13,11 +13,11 @@
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2022-wienkop\\01 IntroKlassen\\01 IntroKlassen.csproj",
"projectUniqueName": "C:\\Users\\wienkop\\Source\\Repos\\prog2-ss2022-wienkop\\01 IntroKlassen\\01 IntroKlassen.csproj",
"projectName": "01 IntroKlassen",
"projectPath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2022-wienkop\\01 IntroKlassen\\01 IntroKlassen.csproj",
"projectPath": "C:\\Users\\wienkop\\Source\\Repos\\prog2-ss2022-wienkop\\01 IntroKlassen\\01 IntroKlassen.csproj",
"packagesPath": "C:\\Users\\wienkop\\.nuget\\packages\\",
"outputPath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2022-wienkop\\01 IntroKlassen\\obj\\",
"outputPath": "C:\\Users\\wienkop\\Source\\Repos\\prog2-ss2022-wienkop\\01 IntroKlassen\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\wienkop\\AppData\\Roaming\\NuGet\\NuGet.Config",
......
{
"version": 2,
"dgSpecHash": "fmU0kz1ww11kIiWEMTdlqagubOziLqzay7wo/ZXWUXbHCZyqL39S2TIsUwqey/5cWm0WxeeA5bxFdy8RMMo7IA==",
"dgSpecHash": "9kQDSKz7CgHqXcG9yIJJ3LYBxz3bIYmHze6w9VtVSbimvCsy1jsuQcK50fwM+GGEekJZM4HeHcUzyztFZFXKFQ==",
"success": true,
"projectFilePath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2022-wienkop\\01 IntroKlassen\\01 IntroKlassen.csproj",
"projectFilePath": "C:\\Users\\wienkop\\Source\\Repos\\prog2-ss2022-wienkop\\01 IntroKlassen\\01 IntroKlassen.csproj",
"expectedPackageFiles": [],
"logs": []
}
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<RootNamespace>_01_StructVsClass</RootNamespace>
</PropertyGroup>
</Project>
using System;
namespace _01_StructVsClass
{
struct Struct1 { public int x; }
class Class1 { public int x; }
class Program
{
static void Main(string[] args)
{
// Werttypen:
// Die Inhalte werden kopiert
Struct1 s1 = new Struct1(); // Speicher für s1
s1.x = 27;
Struct1 s2 = s1; // Neuer Speicher für s2
s1.x = 20;
Console.WriteLine($"s1.x = {s1.x} s2.x = {s2.x}");
Class1 c1 = new Class1(); // Class c1 = Referenzvariable
// new fordert den Speicher hierfür an
c1.x = 27;
Class1 c2 = new Class1(); // Class c2 ist eine weitere Referenzvar.
c2 = c1;
c1.x = 20;
Console.WriteLine($"c1.x = {c1.x} c2.x = {c2.x}");
string[] felder = "Hallo Welt".Split(' ');
string[] f2 = new string[2];
f2 = "Hallo Welt guten Morgen".Split(' ');
}
}
}
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v3.1",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v3.1": {
"01 StructVsClass/1.0.0": {
"runtime": {
"01 StructVsClass.dll": {}
}
}
}
},
"libraries": {
"01 StructVsClass/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
}
}
}
\ No newline at end of file
File added
File added
File added
{
"runtimeOptions": {
"additionalProbingPaths": [
"C:\\Users\\wienkop\\.dotnet\\store\\|arch|\\|tfm|",
"C:\\Users\\wienkop\\.nuget\\packages"
]
}
}
\ No newline at end of file
{
"runtimeOptions": {
"tfm": "netcoreapp3.1",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "3.1.0"
}
}
}
\ No newline at end of file
{
"format": 1,
"restore": {
"C:\\Users\\wienkop\\Source\\Repos\\prog2-ss2022-wienkop\\01 StructVsClass\\01 StructVsClass.csproj": {}
},
"projects": {
"C:\\Users\\wienkop\\Source\\Repos\\prog2-ss2022-wienkop\\01 StructVsClass\\01 StructVsClass.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\wienkop\\Source\\Repos\\prog2-ss2022-wienkop\\01 StructVsClass\\01 StructVsClass.csproj",
"projectName": "01 StructVsClass",
"projectPath": "C:\\Users\\wienkop\\Source\\Repos\\prog2-ss2022-wienkop\\01 StructVsClass\\01 StructVsClass.csproj",
"packagesPath": "C:\\Users\\wienkop\\.nuget\\packages\\",
"outputPath": "C:\\Users\\wienkop\\Source\\Repos\\prog2-ss2022-wienkop\\01 StructVsClass\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\wienkop\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"netcoreapp3.1"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.406\\RuntimeIdentifierGraph.json"
}
}
}
}
}
\ No newline at end of file
<?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\wienkop\.nuget\packages\</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.11.1</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\wienkop\.nuget\packages\" />
</ItemGroup>
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
</Project>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
</Project>
\ No newline at end of file
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v3.1", FrameworkDisplayName = "")]
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000
//
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generiert wird.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("01 StructVsClass")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("01 StructVsClass")]
[assembly: System.Reflection.AssemblyTitleAttribute("01 StructVsClass")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Von der MSBuild WriteCodeFragment-Klasse generiert.
a65e3f8bf96ae27dd70565a495696754a3b9640c
is_global = true
build_property.RootNamespace = _01_StructVsClass
build_property.ProjectDir = C:\Users\wienkop\Source\Repos\prog2-ss2022-wienkop\01 StructVsClass\
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment