Skip to content

Commit

Permalink
Nesne Tabanlı Programlama #5 - this Keyword'ü Nedir? İşlevleri Nelerdir?
Browse files Browse the repository at this point in the history
  • Loading branch information
musauyumaz committed Apr 19, 2023
1 parent e9d3352 commit 91e616e
Show file tree
Hide file tree
Showing 19 changed files with 369 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = oop_sinif
build_property.ProjectDir = d:\GithubNotes\Nesne-Tabanli-Programlama-OOP\2-SINIF(CLASS)\Nesne Tabanlı Programlama #2 - Class Kavramı\oop_sinif\
build_property.ProjectDir = d:\GithubRepom\Nesne Tabanlı Programlama\2-SINIF(CLASS)\Nesne Tabanlı Programlama #2 - Class Kavramı\oop_sinif\
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = oop_sinif
build_property.ProjectDir = d:\GithubNotes\Nesne-Tabanli-Programlama-OOP\2-SINIF(CLASS)\Nesne Tabanlı Programlama #3 - Class Members #Field #Property #Encapsulation #Methot #Indexer\oop_sinif\
build_property.ProjectDir = d:\GithubRepom\Nesne Tabanlı Programlama\2-SINIF(CLASS)\Nesne Tabanlı Programlama #3 - Class Members #Field #Property #Encapsulation #Methot #Indexer\oop_sinif\
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v7.0", FrameworkDisplayName = ".NET 7.0")]
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// 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("oop_sinif")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("oop_sinif")]
[assembly: System.Reflection.AssemblyTitleAttribute("oop_sinif")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

// MSBuild WriteCodeFragment sınıfı tarafından oluşturuldu.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3d491ca7daa7a9355e1ca683710d3f416c2fe2a1
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
is_global = true
build_property.TargetFramework = net7.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 = oop_sinif
build_property.ProjectDir = d:\GithubRepom\Nesne Tabanlı Programlama\2-SINIF(CLASS)\Nesne Tabanlı Programlama #4 - Class Yapısına Dair Son Dokunuşlar\oop_sinif\
Original file line number Diff line number Diff line change
@@ -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.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
namespace oop_sinif;
class Program
{
static void Main(string[] args)
{
#region this Keywordü

#region 1. Sınıfın Nesnesini Temsil Eder
MyClass m1 = new();
MyClass m2 = new();

m1.X();
#endregion
#region 2. Aynı İsimde Field İle Metot Parametrelerini Ayırmak için Kullanılır
//`this` keywordü ilgili `class` yapılanmasının o anki nesnesine karşılık gelir.
//`this` kullanmak zorunda değiliz.
//
#endregion
#region 3. Bir Constructer'dan Başka Bir Constructer'ı Çağırmak İçin Kullanılır

#endregion
#endregion
}
}
class MyClass
{
int a;
public void X(int a)
{
this.a;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"format": 1,
"restore": {
"D:\\GithubRepom\\Nesne Tabanlı Programlama\\2-SINIF(CLASS)\\Nesne Tabanlı Programlama #5 - this Keyword'ü Nedir İşlevleri Nelerdir\\oop_sinif\\oop_sinif.csproj": {}
},
"projects": {
"D:\\GithubRepom\\Nesne Tabanlı Programlama\\2-SINIF(CLASS)\\Nesne Tabanlı Programlama #5 - this Keyword'ü Nedir İşlevleri Nelerdir\\oop_sinif\\oop_sinif.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "D:\\GithubRepom\\Nesne Tabanlı Programlama\\2-SINIF(CLASS)\\Nesne Tabanlı Programlama #5 - this Keyword'ü Nedir İşlevleri Nelerdir\\oop_sinif\\oop_sinif.csproj",
"projectName": "oop_sinif",
"projectPath": "D:\\GithubRepom\\Nesne Tabanlı Programlama\\2-SINIF(CLASS)\\Nesne Tabanlı Programlama #5 - this Keyword'ü Nedir İşlevleri Nelerdir\\oop_sinif\\oop_sinif.csproj",
"packagesPath": "C:\\Users\\TCMUYUMAZ\\.nuget\\packages\\",
"outputPath": "D:\\GithubRepom\\Nesne Tabanlı Programlama\\2-SINIF(CLASS)\\Nesne Tabanlı Programlama #5 - this Keyword'ü Nedir İşlevleri Nelerdir\\oop_sinif\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\TCMUYUMAZ\\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": [
"net7.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"C:\\Program Files\\dotnet\\library-packs": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net7.0": {
"targetAlias": "net7.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net7.0": {
"targetAlias": "net7.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\\7.0.202\\RuntimeIdentifierGraph.json"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -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\TCMUYUMAZ\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.5.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\TCMUYUMAZ\.nuget\packages\" />
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -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" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"version": 3,
"targets": {
"net7.0": {}
},
"libraries": {},
"projectFileDependencyGroups": {
"net7.0": []
},
"packageFolders": {
"C:\\Users\\TCMUYUMAZ\\.nuget\\packages\\": {},
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "D:\\GithubRepom\\Nesne Tabanlı Programlama\\2-SINIF(CLASS)\\Nesne Tabanlı Programlama #5 - this Keyword'ü Nedir İşlevleri Nelerdir\\oop_sinif\\oop_sinif.csproj",
"projectName": "oop_sinif",
"projectPath": "D:\\GithubRepom\\Nesne Tabanlı Programlama\\2-SINIF(CLASS)\\Nesne Tabanlı Programlama #5 - this Keyword'ü Nedir İşlevleri Nelerdir\\oop_sinif\\oop_sinif.csproj",
"packagesPath": "C:\\Users\\TCMUYUMAZ\\.nuget\\packages\\",
"outputPath": "D:\\GithubRepom\\Nesne Tabanlı Programlama\\2-SINIF(CLASS)\\Nesne Tabanlı Programlama #5 - this Keyword'ü Nedir İşlevleri Nelerdir\\oop_sinif\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\TCMUYUMAZ\\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": [
"net7.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"C:\\Program Files\\dotnet\\library-packs": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net7.0": {
"targetAlias": "net7.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net7.0": {
"targetAlias": "net7.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\\7.0.202\\RuntimeIdentifierGraph.json"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"version": 2,
"dgSpecHash": "fUeC5yQPxG7h6OdTHuj9An45zJJ8ffQZORXXajdgi8GAZtzUEGfHkuSnhzBQWbjQSB/OSQ0Hfdosf93Su9TWzw==",
"success": true,
"projectFilePath": "D:\\GithubRepom\\Nesne Tabanlı Programlama\\2-SINIF(CLASS)\\Nesne Tabanlı Programlama #5 - this Keyword'ü Nedir İşlevleri Nelerdir\\oop_sinif\\oop_sinif.csproj",
"expectedPackageFiles": [],
"logs": []
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

</Project>
Loading

0 comments on commit 91e616e

Please sign in to comment.