├── .vs
└── CSharp-Samples
│ └── v15
│ ├── .suo
│ └── sqlite3
│ └── storage.ide
├── ActionDelegate
├── ActionDelegate.csproj
├── App.config
├── Program.cs
├── Properties
│ └── AssemblyInfo.cs
├── bin
│ └── Debug
│ │ ├── ActionDelegate.exe
│ │ ├── ActionDelegate.exe.config
│ │ └── ActionDelegate.pdb
└── obj
│ └── Debug
│ ├── ActionDelegate.csproj.CoreCompileInputs.cache
│ ├── ActionDelegate.csproj.FileListAbsolute.txt
│ ├── ActionDelegate.csprojResolveAssemblyReference.cache
│ ├── ActionDelegate.exe
│ ├── ActionDelegate.pdb
│ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
│ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
│ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
├── CSharp-Samples.sln
├── CallerInfoAttribute
├── App.config
├── CallerInfoAttribute.csproj
├── Program.cs
├── Properties
│ └── AssemblyInfo.cs
├── bin
│ └── Debug
│ │ ├── CallerInfoAttribute.exe
│ │ ├── CallerInfoAttribute.exe.config
│ │ └── CallerInfoAttribute.pdb
└── obj
│ └── Debug
│ ├── CallerInfoAttribute.csproj.CoreCompileInputs.cache
│ ├── CallerInfoAttribute.csproj.FileListAbsolute.txt
│ ├── CallerInfoAttribute.exe
│ ├── CallerInfoAttribute.pdb
│ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
│ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
│ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
├── EnumSample
├── App.config
├── EnumSample.csproj
├── Program.cs
├── Properties
│ └── AssemblyInfo.cs
├── bin
│ └── Debug
│ │ ├── EnumSample.exe
│ │ ├── EnumSample.exe.config
│ │ └── EnumSample.pdb
└── obj
│ └── Debug
│ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ ├── EnumSample.csproj.CoreCompileInputs.cache
│ ├── EnumSample.csproj.FileListAbsolute.txt
│ ├── EnumSample.exe
│ ├── EnumSample.pdb
│ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
│ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
│ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
├── FuncDelegate
├── App.config
├── FuncDelegate.csproj
├── Program.cs
├── Properties
│ └── AssemblyInfo.cs
├── bin
│ └── Debug
│ │ ├── FuncDelegate.exe
│ │ ├── FuncDelegate.exe.config
│ │ └── FuncDelegate.pdb
└── obj
│ └── Debug
│ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ ├── FuncDelegate.csproj.CoreCompileInputs.cache
│ ├── FuncDelegate.csproj.FileListAbsolute.txt
│ ├── FuncDelegate.csprojResolveAssemblyReference.cache
│ ├── FuncDelegate.exe
│ ├── FuncDelegate.pdb
│ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
│ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
│ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
├── PredicateDelegate
├── App.config
├── PredicateDelegate.csproj
├── Program.cs
├── Properties
│ └── AssemblyInfo.cs
├── bin
│ └── Debug
│ │ ├── PredicateDelegate.exe
│ │ ├── PredicateDelegate.exe.config
│ │ └── PredicateDelegate.pdb
└── obj
│ └── Debug
│ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ ├── PredicateDelegate.csproj.CoreCompileInputs.cache
│ ├── PredicateDelegate.csproj.FileListAbsolute.txt
│ ├── PredicateDelegate.csprojResolveAssemblyReference.cache
│ ├── PredicateDelegate.exe
│ ├── PredicateDelegate.pdb
│ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
│ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
│ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
├── ThreadPoolSample
├── App.config
├── Program.cs
├── Properties
│ └── AssemblyInfo.cs
├── ThreadPoolSample.csproj
├── bin
│ └── Debug
│ │ ├── ThreadPoolSample.exe
│ │ ├── ThreadPoolSample.exe.config
│ │ └── ThreadPoolSample.pdb
└── obj
│ └── Debug
│ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
│ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
│ ├── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
│ ├── ThreadPoolSample.csproj.CoreCompileInputs.cache
│ ├── ThreadPoolSample.csproj.FileListAbsolute.txt
│ ├── ThreadPoolSample.csprojResolveAssemblyReference.cache
│ ├── ThreadPoolSample.exe
│ └── ThreadPoolSample.pdb
├── Threading-BackgroundThread
├── App.config
├── Program.cs
├── Properties
│ └── AssemblyInfo.cs
├── Threading-BackgroundThread.csproj
├── bin
│ └── Debug
│ │ ├── Threading-BackgroundThread.exe
│ │ ├── Threading-BackgroundThread.exe.config
│ │ └── Threading-BackgroundThread.pdb
└── obj
│ └── Debug
│ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
│ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
│ ├── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
│ ├── Threading-BackgroundThread.csproj.CoreCompileInputs.cache
│ ├── Threading-BackgroundThread.csproj.FileListAbsolute.txt
│ ├── Threading-BackgroundThread.exe
│ └── Threading-BackgroundThread.pdb
├── Threading-ForegroundThread
├── App.config
├── Program.cs
├── Properties
│ └── AssemblyInfo.cs
├── Threading-ForegroundThread.csproj
├── bin
│ └── Debug
│ │ ├── Threading-ForegroundThread.exe
│ │ ├── Threading-ForegroundThread.exe.config
│ │ └── Threading-ForegroundThread.pdb
└── obj
│ └── Debug
│ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
│ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
│ ├── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
│ ├── Threading-ForegroundThread.csproj.CoreCompileInputs.cache
│ ├── Threading-ForegroundThread.csproj.FileListAbsolute.txt
│ ├── Threading-ForegroundThread.csprojResolveAssemblyReference.cache
│ ├── Threading-ForegroundThread.exe
│ └── Threading-ForegroundThread.pdb
├── Threading-ParameterizedThread
├── App.config
├── Program.cs
├── Properties
│ └── AssemblyInfo.cs
├── Threading-ParameterizedThread.csproj
├── bin
│ └── Debug
│ │ ├── Threading-ParameterizedThread.exe
│ │ ├── Threading-ParameterizedThread.exe.config
│ │ └── Threading-ParameterizedThread.pdb
└── obj
│ └── Debug
│ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
│ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
│ ├── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
│ ├── Threading-ParameterizedThread.csproj.CoreCompileInputs.cache
│ ├── Threading-ParameterizedThread.csproj.FileListAbsolute.txt
│ ├── Threading-ParameterizedThread.exe
│ └── Threading-ParameterizedThread.pdb
├── Threading-StopThread
├── App.config
├── Program.cs
├── Properties
│ └── AssemblyInfo.cs
├── Threading-StopThread.csproj
├── bin
│ └── Debug
│ │ ├── Threading-StopThread.exe
│ │ ├── Threading-StopThread.exe.config
│ │ └── Threading-StopThread.pdb
└── obj
│ └── Debug
│ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
│ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
│ ├── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
│ ├── Threading-StopThread.csproj.CoreCompileInputs.cache
│ ├── Threading-StopThread.csproj.FileListAbsolute.txt
│ ├── Threading-StopThread.csprojResolveAssemblyReference.cache
│ ├── Threading-StopThread.exe
│ └── Threading-StopThread.pdb
├── Threading-ThreadClass
├── App.config
├── Program.cs
├── Properties
│ └── AssemblyInfo.cs
├── Threading-ThreadClass.csproj
├── bin
│ └── Debug
│ │ ├── Threading-ThreadClass.exe
│ │ ├── Threading-ThreadClass.exe.config
│ │ └── Threading-ThreadClass.pdb
└── obj
│ └── Debug
│ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
│ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
│ ├── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
│ ├── Threading-ThreadClass.csproj.CoreCompileInputs.cache
│ ├── Threading-ThreadClass.csproj.FileListAbsolute.txt
│ ├── Threading-ThreadClass.csprojResolveAssemblyReference.cache
│ ├── Threading-ThreadClass.exe
│ └── Threading-ThreadClass.pdb
├── Threading-ThreadLocal
├── App.config
├── Program.cs
├── Properties
│ └── AssemblyInfo.cs
├── Threading-ThreadLocal.csproj
├── bin
│ └── Debug
│ │ ├── Threading-ThreadLocal.exe
│ │ ├── Threading-ThreadLocal.exe.config
│ │ └── Threading-ThreadLocal.pdb
└── obj
│ └── Debug
│ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
│ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
│ ├── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
│ ├── Threading-ThreadLocal.csproj.CoreCompileInputs.cache
│ ├── Threading-ThreadLocal.csproj.FileListAbsolute.txt
│ ├── Threading-ThreadLocal.exe
│ └── Threading-ThreadLocal.pdb
└── Threading-ThreadStatic
├── App.config
├── Program.cs
├── Properties
└── AssemblyInfo.cs
├── Threading-ThreadStatic.csproj
├── bin
└── Debug
│ ├── Threading-ThreadStatic.exe
│ ├── Threading-ThreadStatic.exe.config
│ └── Threading-ThreadStatic.pdb
└── obj
└── Debug
├── DesignTimeResolveAssemblyReferencesInput.cache
├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
├── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
├── Threading-ThreadStatic.csproj.CoreCompileInputs.cache
├── Threading-ThreadStatic.csproj.FileListAbsolute.txt
├── Threading-ThreadStatic.exe
└── Threading-ThreadStatic.pdb
/.vs/CSharp-Samples/v15/.suo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/.vs/CSharp-Samples/v15/.suo
--------------------------------------------------------------------------------
/.vs/CSharp-Samples/v15/sqlite3/storage.ide:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/.vs/CSharp-Samples/v15/sqlite3/storage.ide
--------------------------------------------------------------------------------
/ActionDelegate/ActionDelegate.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {57B5C08C-126B-42C2-ADC3-6461107629CB}
8 | Exe
9 | ActionDelegate
10 | ActionDelegate
11 | v4.6.1
12 | 512
13 | true
14 |
15 |
16 | AnyCPU
17 | true
18 | full
19 | false
20 | bin\Debug\
21 | DEBUG;TRACE
22 | prompt
23 | 4
24 |
25 |
26 | AnyCPU
27 | pdbonly
28 | true
29 | bin\Release\
30 | TRACE
31 | prompt
32 | 4
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/ActionDelegate/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/ActionDelegate/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace ActionDelegate
8 | {
9 | public class Program
10 | {
11 | public static void Main()
12 | {
13 |
14 | Action rechargeAction = Recharge;
15 | rechargeAction("9999999999", 100, "Vodafone");
16 |
17 | // ACTION WITH LAMBDA EXPRESSION
18 | Action rechargeAction1 = (mobile, amount, mobileOperator) => {
19 | //Recharge will be done and successful message will be sent through SMS
20 | //Nothing will be returned from this method.
21 | Console.WriteLine(string.Format("Recharge is sucessfully done. Mobile: {0} Amount:{1} Operator:{2}", mobile, amount, mobileOperator));
22 | };
23 | rechargeAction1("8888888888", 200, "Idea");
24 |
25 | Console.ReadLine();
26 | }
27 |
28 | public static void Recharge(string mobile, double amount, string mobileOperator)
29 | {
30 | //Recharge will be done and successful message will be sent through SMS
31 | //Nothing will be returned from this method.
32 | Console.WriteLine(string.Format("Recharge is sucessfully done. Mobile: {0} Amount:{1} Operator:{2}", mobile, amount, mobileOperator));
33 |
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/ActionDelegate/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("ActionDelegate")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("ActionDelegate")]
13 | [assembly: AssemblyCopyright("Copyright © 2018")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("57b5c08c-126b-42c2-adc3-6461107629cb")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/ActionDelegate/bin/Debug/ActionDelegate.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/ActionDelegate/bin/Debug/ActionDelegate.exe
--------------------------------------------------------------------------------
/ActionDelegate/bin/Debug/ActionDelegate.exe.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/ActionDelegate/bin/Debug/ActionDelegate.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/ActionDelegate/bin/Debug/ActionDelegate.pdb
--------------------------------------------------------------------------------
/ActionDelegate/obj/Debug/ActionDelegate.csproj.CoreCompileInputs.cache:
--------------------------------------------------------------------------------
1 | 3e096e477c03972f6f45cc703e8f796f23834980
2 |
--------------------------------------------------------------------------------
/ActionDelegate/obj/Debug/ActionDelegate.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | D:\AKKI_DEV\RND\CSharp-Samples\ActionDelegate\bin\Debug\ActionDelegate.exe.config
2 | D:\AKKI_DEV\RND\CSharp-Samples\ActionDelegate\bin\Debug\ActionDelegate.exe
3 | D:\AKKI_DEV\RND\CSharp-Samples\ActionDelegate\bin\Debug\ActionDelegate.pdb
4 | D:\AKKI_DEV\RND\CSharp-Samples\ActionDelegate\obj\Debug\ActionDelegate.csproj.CoreCompileInputs.cache
5 | D:\AKKI_DEV\RND\CSharp-Samples\ActionDelegate\obj\Debug\ActionDelegate.exe
6 | D:\AKKI_DEV\RND\CSharp-Samples\ActionDelegate\obj\Debug\ActionDelegate.pdb
7 | D:\AKKI_DEV\RND\CSharp-Samples\ActionDelegate\obj\Debug\ActionDelegate.csprojResolveAssemblyReference.cache
8 |
--------------------------------------------------------------------------------
/ActionDelegate/obj/Debug/ActionDelegate.csprojResolveAssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/ActionDelegate/obj/Debug/ActionDelegate.csprojResolveAssemblyReference.cache
--------------------------------------------------------------------------------
/ActionDelegate/obj/Debug/ActionDelegate.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/ActionDelegate/obj/Debug/ActionDelegate.exe
--------------------------------------------------------------------------------
/ActionDelegate/obj/Debug/ActionDelegate.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/ActionDelegate/obj/Debug/ActionDelegate.pdb
--------------------------------------------------------------------------------
/ActionDelegate/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/ActionDelegate/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/ActionDelegate/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/ActionDelegate/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
--------------------------------------------------------------------------------
/ActionDelegate/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/ActionDelegate/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
--------------------------------------------------------------------------------
/ActionDelegate/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/ActionDelegate/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
--------------------------------------------------------------------------------
/CSharp-Samples.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.26730.10
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EnumSample", "EnumSample\EnumSample.csproj", "{17F0C7CB-65CA-4E34-9F53-0E3FB8B87540}"
7 | EndProject
8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ThreadPoolSample", "ThreadPoolSample\ThreadPoolSample.csproj", "{9D460EC2-221E-4D02-B2B0-A39AE6C8DA32}"
9 | EndProject
10 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FuncDelegate", "FuncDelegate\FuncDelegate.csproj", "{7804CE41-11C2-443F-8BFF-A1C25C458033}"
11 | EndProject
12 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ActionDelegate", "ActionDelegate\ActionDelegate.csproj", "{57B5C08C-126B-42C2-ADC3-6461107629CB}"
13 | EndProject
14 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PredicateDelegate", "PredicateDelegate\PredicateDelegate.csproj", "{F135AC90-EF4D-403E-8221-9D774564FE0E}"
15 | EndProject
16 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CallerInfoAttribute", "CallerInfoAttribute\CallerInfoAttribute.csproj", "{17256995-2268-4481-9704-ADCC59D9252E}"
17 | EndProject
18 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Threading-ThreadClass", "Threading-ThreadClass\Threading-ThreadClass.csproj", "{4D112528-CB3F-41F6-99D5-3D500A49B3AB}"
19 | EndProject
20 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Threading-ForegroundThread", "Threading-ForegroundThread\Threading-ForegroundThread.csproj", "{1E34ECE3-A5BB-4C1A-9534-32555830675A}"
21 | EndProject
22 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Threading-BackgroundThread", "Threading-BackgroundThread\Threading-BackgroundThread.csproj", "{AEFA9AFD-9824-403B-A370-E9266792D429}"
23 | EndProject
24 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Threading-ParameterizedThread", "Threading-ParameterizedThread\Threading-ParameterizedThread.csproj", "{9F3241C2-E184-4D57-B662-5663901D1FEF}"
25 | EndProject
26 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Threading-StopThread", "Threading-StopThread\Threading-StopThread.csproj", "{8331F35C-ECF7-4B9A-97E5-744201BBCD39}"
27 | EndProject
28 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Threading-ThreadStatic", "Threading-ThreadStatic\Threading-ThreadStatic.csproj", "{1EBA49BF-2156-4F6B-92FF-3B7F8F9EB1E5}"
29 | EndProject
30 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Threading-ThreadLocal", "Threading-ThreadLocal\Threading-ThreadLocal.csproj", "{1D584B2F-BE6C-449B-91C8-B6C2023BA22D}"
31 | EndProject
32 | Global
33 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
34 | Debug|Any CPU = Debug|Any CPU
35 | Release|Any CPU = Release|Any CPU
36 | EndGlobalSection
37 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
38 | {17F0C7CB-65CA-4E34-9F53-0E3FB8B87540}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
39 | {17F0C7CB-65CA-4E34-9F53-0E3FB8B87540}.Debug|Any CPU.Build.0 = Debug|Any CPU
40 | {17F0C7CB-65CA-4E34-9F53-0E3FB8B87540}.Release|Any CPU.ActiveCfg = Release|Any CPU
41 | {17F0C7CB-65CA-4E34-9F53-0E3FB8B87540}.Release|Any CPU.Build.0 = Release|Any CPU
42 | {9D460EC2-221E-4D02-B2B0-A39AE6C8DA32}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
43 | {9D460EC2-221E-4D02-B2B0-A39AE6C8DA32}.Debug|Any CPU.Build.0 = Debug|Any CPU
44 | {9D460EC2-221E-4D02-B2B0-A39AE6C8DA32}.Release|Any CPU.ActiveCfg = Release|Any CPU
45 | {9D460EC2-221E-4D02-B2B0-A39AE6C8DA32}.Release|Any CPU.Build.0 = Release|Any CPU
46 | {7804CE41-11C2-443F-8BFF-A1C25C458033}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
47 | {7804CE41-11C2-443F-8BFF-A1C25C458033}.Debug|Any CPU.Build.0 = Debug|Any CPU
48 | {7804CE41-11C2-443F-8BFF-A1C25C458033}.Release|Any CPU.ActiveCfg = Release|Any CPU
49 | {7804CE41-11C2-443F-8BFF-A1C25C458033}.Release|Any CPU.Build.0 = Release|Any CPU
50 | {57B5C08C-126B-42C2-ADC3-6461107629CB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
51 | {57B5C08C-126B-42C2-ADC3-6461107629CB}.Debug|Any CPU.Build.0 = Debug|Any CPU
52 | {57B5C08C-126B-42C2-ADC3-6461107629CB}.Release|Any CPU.ActiveCfg = Release|Any CPU
53 | {57B5C08C-126B-42C2-ADC3-6461107629CB}.Release|Any CPU.Build.0 = Release|Any CPU
54 | {F135AC90-EF4D-403E-8221-9D774564FE0E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
55 | {F135AC90-EF4D-403E-8221-9D774564FE0E}.Debug|Any CPU.Build.0 = Debug|Any CPU
56 | {F135AC90-EF4D-403E-8221-9D774564FE0E}.Release|Any CPU.ActiveCfg = Release|Any CPU
57 | {F135AC90-EF4D-403E-8221-9D774564FE0E}.Release|Any CPU.Build.0 = Release|Any CPU
58 | {17256995-2268-4481-9704-ADCC59D9252E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
59 | {17256995-2268-4481-9704-ADCC59D9252E}.Debug|Any CPU.Build.0 = Debug|Any CPU
60 | {17256995-2268-4481-9704-ADCC59D9252E}.Release|Any CPU.ActiveCfg = Release|Any CPU
61 | {17256995-2268-4481-9704-ADCC59D9252E}.Release|Any CPU.Build.0 = Release|Any CPU
62 | {4D112528-CB3F-41F6-99D5-3D500A49B3AB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
63 | {4D112528-CB3F-41F6-99D5-3D500A49B3AB}.Debug|Any CPU.Build.0 = Debug|Any CPU
64 | {4D112528-CB3F-41F6-99D5-3D500A49B3AB}.Release|Any CPU.ActiveCfg = Release|Any CPU
65 | {4D112528-CB3F-41F6-99D5-3D500A49B3AB}.Release|Any CPU.Build.0 = Release|Any CPU
66 | {1E34ECE3-A5BB-4C1A-9534-32555830675A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
67 | {1E34ECE3-A5BB-4C1A-9534-32555830675A}.Debug|Any CPU.Build.0 = Debug|Any CPU
68 | {1E34ECE3-A5BB-4C1A-9534-32555830675A}.Release|Any CPU.ActiveCfg = Release|Any CPU
69 | {1E34ECE3-A5BB-4C1A-9534-32555830675A}.Release|Any CPU.Build.0 = Release|Any CPU
70 | {AEFA9AFD-9824-403B-A370-E9266792D429}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
71 | {AEFA9AFD-9824-403B-A370-E9266792D429}.Debug|Any CPU.Build.0 = Debug|Any CPU
72 | {AEFA9AFD-9824-403B-A370-E9266792D429}.Release|Any CPU.ActiveCfg = Release|Any CPU
73 | {AEFA9AFD-9824-403B-A370-E9266792D429}.Release|Any CPU.Build.0 = Release|Any CPU
74 | {9F3241C2-E184-4D57-B662-5663901D1FEF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
75 | {9F3241C2-E184-4D57-B662-5663901D1FEF}.Debug|Any CPU.Build.0 = Debug|Any CPU
76 | {9F3241C2-E184-4D57-B662-5663901D1FEF}.Release|Any CPU.ActiveCfg = Release|Any CPU
77 | {9F3241C2-E184-4D57-B662-5663901D1FEF}.Release|Any CPU.Build.0 = Release|Any CPU
78 | {8331F35C-ECF7-4B9A-97E5-744201BBCD39}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
79 | {8331F35C-ECF7-4B9A-97E5-744201BBCD39}.Debug|Any CPU.Build.0 = Debug|Any CPU
80 | {8331F35C-ECF7-4B9A-97E5-744201BBCD39}.Release|Any CPU.ActiveCfg = Release|Any CPU
81 | {8331F35C-ECF7-4B9A-97E5-744201BBCD39}.Release|Any CPU.Build.0 = Release|Any CPU
82 | {1EBA49BF-2156-4F6B-92FF-3B7F8F9EB1E5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
83 | {1EBA49BF-2156-4F6B-92FF-3B7F8F9EB1E5}.Debug|Any CPU.Build.0 = Debug|Any CPU
84 | {1EBA49BF-2156-4F6B-92FF-3B7F8F9EB1E5}.Release|Any CPU.ActiveCfg = Release|Any CPU
85 | {1EBA49BF-2156-4F6B-92FF-3B7F8F9EB1E5}.Release|Any CPU.Build.0 = Release|Any CPU
86 | {1D584B2F-BE6C-449B-91C8-B6C2023BA22D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
87 | {1D584B2F-BE6C-449B-91C8-B6C2023BA22D}.Debug|Any CPU.Build.0 = Debug|Any CPU
88 | {1D584B2F-BE6C-449B-91C8-B6C2023BA22D}.Release|Any CPU.ActiveCfg = Release|Any CPU
89 | {1D584B2F-BE6C-449B-91C8-B6C2023BA22D}.Release|Any CPU.Build.0 = Release|Any CPU
90 | EndGlobalSection
91 | GlobalSection(SolutionProperties) = preSolution
92 | HideSolutionNode = FALSE
93 | EndGlobalSection
94 | GlobalSection(ExtensibilityGlobals) = postSolution
95 | SolutionGuid = {98304BBE-8D4F-40B2-8AC6-6513F01D3B08}
96 | EndGlobalSection
97 | EndGlobal
98 |
--------------------------------------------------------------------------------
/CallerInfoAttribute/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/CallerInfoAttribute/CallerInfoAttribute.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {17256995-2268-4481-9704-ADCC59D9252E}
8 | Exe
9 | CallerInfoAttribute
10 | CallerInfoAttribute
11 | v4.6.1
12 | 512
13 | true
14 |
15 |
16 | AnyCPU
17 | true
18 | full
19 | false
20 | bin\Debug\
21 | DEBUG;TRACE
22 | prompt
23 | 4
24 |
25 |
26 | AnyCPU
27 | pdbonly
28 | true
29 | bin\Release\
30 | TRACE
31 | prompt
32 | 4
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/CallerInfoAttribute/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Runtime.CompilerServices;
3 |
4 | namespace CallerInfoAttribute
5 | {
6 | public class Program
7 | {
8 | public static void Main()
9 | {
10 | Console.WriteLine("Main method Start");
11 | InsertInDB();
12 | BusinessLogic();
13 | Console.WriteLine("Main method End!");
14 | Console.ReadLine();
15 | }
16 |
17 | static void BusinessLogic()
18 | {
19 | InsertInDB();
20 | }
21 |
22 | static void InsertInDB([CallerMemberName] string memberName = "", [CallerFilePath] string sourceFilePath = "", [CallerLineNumber] int sourceLineNumber = 0)
23 | {
24 | string message = string.Format("InsertInDB method is called by {0} from line number {1} at {2}", memberName, sourceLineNumber, DateTime.Now.ToString());
25 | Log(message);
26 | }
27 |
28 | static void Log(string message)
29 | {
30 | Console.WriteLine(message);
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/CallerInfoAttribute/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("CallerInfoAttribute")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("CallerInfoAttribute")]
13 | [assembly: AssemblyCopyright("Copyright © 2018")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("17256995-2268-4481-9704-adcc59d9252e")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/CallerInfoAttribute/bin/Debug/CallerInfoAttribute.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/CallerInfoAttribute/bin/Debug/CallerInfoAttribute.exe
--------------------------------------------------------------------------------
/CallerInfoAttribute/bin/Debug/CallerInfoAttribute.exe.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/CallerInfoAttribute/bin/Debug/CallerInfoAttribute.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/CallerInfoAttribute/bin/Debug/CallerInfoAttribute.pdb
--------------------------------------------------------------------------------
/CallerInfoAttribute/obj/Debug/CallerInfoAttribute.csproj.CoreCompileInputs.cache:
--------------------------------------------------------------------------------
1 | a46465e7db3c595cee0004fc7aab779404afd926
2 |
--------------------------------------------------------------------------------
/CallerInfoAttribute/obj/Debug/CallerInfoAttribute.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | D:\AKKI_DEV\RND\CSharp-Samples\CallerInfoAttribute\bin\Debug\CallerInfoAttribute.exe.config
2 | D:\AKKI_DEV\RND\CSharp-Samples\CallerInfoAttribute\bin\Debug\CallerInfoAttribute.exe
3 | D:\AKKI_DEV\RND\CSharp-Samples\CallerInfoAttribute\bin\Debug\CallerInfoAttribute.pdb
4 | D:\AKKI_DEV\RND\CSharp-Samples\CallerInfoAttribute\obj\Debug\CallerInfoAttribute.csproj.CoreCompileInputs.cache
5 | D:\AKKI_DEV\RND\CSharp-Samples\CallerInfoAttribute\obj\Debug\CallerInfoAttribute.exe
6 | D:\AKKI_DEV\RND\CSharp-Samples\CallerInfoAttribute\obj\Debug\CallerInfoAttribute.pdb
7 |
--------------------------------------------------------------------------------
/CallerInfoAttribute/obj/Debug/CallerInfoAttribute.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/CallerInfoAttribute/obj/Debug/CallerInfoAttribute.exe
--------------------------------------------------------------------------------
/CallerInfoAttribute/obj/Debug/CallerInfoAttribute.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/CallerInfoAttribute/obj/Debug/CallerInfoAttribute.pdb
--------------------------------------------------------------------------------
/CallerInfoAttribute/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/CallerInfoAttribute/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/CallerInfoAttribute/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/CallerInfoAttribute/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
--------------------------------------------------------------------------------
/CallerInfoAttribute/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/CallerInfoAttribute/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
--------------------------------------------------------------------------------
/CallerInfoAttribute/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/CallerInfoAttribute/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
--------------------------------------------------------------------------------
/EnumSample/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/EnumSample/EnumSample.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {17F0C7CB-65CA-4E34-9F53-0E3FB8B87540}
8 | Exe
9 | EnumSample
10 | EnumSample
11 | v4.6.1
12 | 512
13 | true
14 |
15 |
16 | AnyCPU
17 | true
18 | full
19 | false
20 | bin\Debug\
21 | DEBUG;TRACE
22 | prompt
23 | 4
24 |
25 |
26 | AnyCPU
27 | pdbonly
28 | true
29 | bin\Release\
30 | TRACE
31 | prompt
32 | 4
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/EnumSample/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace EnumSample
8 | {
9 | class Program
10 | {
11 | enum OrderStatus
12 | {
13 | Pending = 0,
14 | Approved = 1,
15 | Shipped = 2,
16 | Delivered = 4,
17 | Cancelled = 8
18 | }
19 |
20 | static void Main(string[] args)
21 | {
22 | Console.WriteLine(OrderStatus.Approved); // Approved
23 |
24 | Console.WriteLine((int)OrderStatus.Shipped); //2
25 |
26 | Console.WriteLine(Enum.GetName(typeof(OrderStatus), 4)); //Delivered
27 |
28 | foreach (int i in Enum.GetValues(typeof(OrderStatus))) // 0 1 2 4 8
29 | {
30 | Console.WriteLine(i);
31 | }
32 |
33 | foreach (string str in Enum.GetNames(typeof(OrderStatus))) //Pending Approved Shipped Delivered Cancelled
34 | {
35 | Console.WriteLine(str);
36 | }
37 |
38 | OrderStatus os;
39 |
40 | // Initialize multiple flags using Bitwise OR
41 | os = OrderStatus.Shipped | OrderStatus.Cancelled; // 10
42 | Console.WriteLine(os);
43 |
44 | //Remove flag using Bitwise XOR
45 | os = os ^ OrderStatus.Shipped; // Cancelled
46 | Console.WriteLine(os);
47 |
48 | //Compare enum values
49 | Console.WriteLine((os & OrderStatus.Cancelled) == OrderStatus.Cancelled); // True
50 |
51 | Console.ReadLine();
52 | }
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/EnumSample/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("EnumSample")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("EnumSample")]
13 | [assembly: AssemblyCopyright("Copyright © 2018")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("17f0c7cb-65ca-4e34-9f53-0e3fb8b87540")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/EnumSample/bin/Debug/EnumSample.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/EnumSample/bin/Debug/EnumSample.exe
--------------------------------------------------------------------------------
/EnumSample/bin/Debug/EnumSample.exe.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/EnumSample/bin/Debug/EnumSample.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/EnumSample/bin/Debug/EnumSample.pdb
--------------------------------------------------------------------------------
/EnumSample/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/EnumSample/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/EnumSample/obj/Debug/EnumSample.csproj.CoreCompileInputs.cache:
--------------------------------------------------------------------------------
1 | 9dfea7dc5957c11b61ac761f82202d1ce7dc1945
2 |
--------------------------------------------------------------------------------
/EnumSample/obj/Debug/EnumSample.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | D:\AKKI_DEV\RND\CSharp-Samples\EnumSample\bin\Debug\EnumSample.exe.config
2 | D:\AKKI_DEV\RND\CSharp-Samples\EnumSample\bin\Debug\EnumSample.exe
3 | D:\AKKI_DEV\RND\CSharp-Samples\EnumSample\bin\Debug\EnumSample.pdb
4 | D:\AKKI_DEV\RND\CSharp-Samples\EnumSample\obj\Debug\EnumSample.csproj.CoreCompileInputs.cache
5 | D:\AKKI_DEV\RND\CSharp-Samples\EnumSample\obj\Debug\EnumSample.exe
6 | D:\AKKI_DEV\RND\CSharp-Samples\EnumSample\obj\Debug\EnumSample.pdb
7 |
--------------------------------------------------------------------------------
/EnumSample/obj/Debug/EnumSample.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/EnumSample/obj/Debug/EnumSample.exe
--------------------------------------------------------------------------------
/EnumSample/obj/Debug/EnumSample.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/EnumSample/obj/Debug/EnumSample.pdb
--------------------------------------------------------------------------------
/EnumSample/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/EnumSample/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
--------------------------------------------------------------------------------
/EnumSample/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/EnumSample/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
--------------------------------------------------------------------------------
/EnumSample/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/EnumSample/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
--------------------------------------------------------------------------------
/FuncDelegate/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/FuncDelegate/FuncDelegate.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {7804CE41-11C2-443F-8BFF-A1C25C458033}
8 | Exe
9 | FuncDelegate
10 | FuncDelegate
11 | v4.6.1
12 | 512
13 | true
14 |
15 |
16 | AnyCPU
17 | true
18 | full
19 | false
20 | bin\Debug\
21 | DEBUG;TRACE
22 | prompt
23 | 4
24 |
25 |
26 | AnyCPU
27 | pdbonly
28 | true
29 | bin\Release\
30 | TRACE
31 | prompt
32 | 4
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/FuncDelegate/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace FuncDelegate
4 | {
5 | class Program
6 | {
7 | public static void Main()
8 | {
9 | Func func = Recharge;
10 |
11 | string result = func("9999999999", 100, "Vodafone");
12 | Console.WriteLine(result);
13 |
14 | //FUNC WITH ANONYMOUS FUNCTION
15 | Func func1 = delegate (string mobile, double amount, string mobileOperator)
16 | {
17 | string str = string.Format("Recharge is sucessfully done. Mobile: {0} Amount:{1} Operator:{2}", mobile, amount, mobileOperator);
18 | return str;
19 | };
20 |
21 | string result1 = func1("8888888888", 200, "Idea");
22 | Console.WriteLine(result1);
23 |
24 | //FUNC WITH LAMBDA EXPRESSION
25 | Func func2 = (mobile, amount, mobileOperator) => string.Format("Recharge is sucessfully done. Mobile: {0} Amount:{1} Operator:{2}", mobile, amount, mobileOperator);
26 |
27 | string result2 = func2("7777777777", 300, "JIO");
28 | Console.WriteLine(result2);
29 |
30 | Console.ReadLine();
31 | }
32 |
33 | public static string Recharge(string mobile, double amount, string mobileOperator)
34 | {
35 | string str = string.Format("Recharge is sucessfully done. Mobile: {0} Amount:{1} Operator:{2}", mobile, amount, mobileOperator);
36 | return str;
37 | }
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/FuncDelegate/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("FuncDelegate")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("FuncDelegate")]
13 | [assembly: AssemblyCopyright("Copyright © 2018")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("7804ce41-11c2-443f-8bff-a1c25c458033")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/FuncDelegate/bin/Debug/FuncDelegate.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/FuncDelegate/bin/Debug/FuncDelegate.exe
--------------------------------------------------------------------------------
/FuncDelegate/bin/Debug/FuncDelegate.exe.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/FuncDelegate/bin/Debug/FuncDelegate.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/FuncDelegate/bin/Debug/FuncDelegate.pdb
--------------------------------------------------------------------------------
/FuncDelegate/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/FuncDelegate/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/FuncDelegate/obj/Debug/FuncDelegate.csproj.CoreCompileInputs.cache:
--------------------------------------------------------------------------------
1 | eee8b06ee91acb345b10dd0a3e03a4f7fdc09408
2 |
--------------------------------------------------------------------------------
/FuncDelegate/obj/Debug/FuncDelegate.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | D:\AKKI_DEV\RND\CSharp-Samples\FuncDelegate\bin\Debug\FuncDelegate.exe.config
2 | D:\AKKI_DEV\RND\CSharp-Samples\FuncDelegate\bin\Debug\FuncDelegate.exe
3 | D:\AKKI_DEV\RND\CSharp-Samples\FuncDelegate\bin\Debug\FuncDelegate.pdb
4 | D:\AKKI_DEV\RND\CSharp-Samples\FuncDelegate\obj\Debug\FuncDelegate.csprojResolveAssemblyReference.cache
5 | D:\AKKI_DEV\RND\CSharp-Samples\FuncDelegate\obj\Debug\FuncDelegate.csproj.CoreCompileInputs.cache
6 | D:\AKKI_DEV\RND\CSharp-Samples\FuncDelegate\obj\Debug\FuncDelegate.exe
7 | D:\AKKI_DEV\RND\CSharp-Samples\FuncDelegate\obj\Debug\FuncDelegate.pdb
8 |
--------------------------------------------------------------------------------
/FuncDelegate/obj/Debug/FuncDelegate.csprojResolveAssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/FuncDelegate/obj/Debug/FuncDelegate.csprojResolveAssemblyReference.cache
--------------------------------------------------------------------------------
/FuncDelegate/obj/Debug/FuncDelegate.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/FuncDelegate/obj/Debug/FuncDelegate.exe
--------------------------------------------------------------------------------
/FuncDelegate/obj/Debug/FuncDelegate.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/FuncDelegate/obj/Debug/FuncDelegate.pdb
--------------------------------------------------------------------------------
/FuncDelegate/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/FuncDelegate/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
--------------------------------------------------------------------------------
/FuncDelegate/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/FuncDelegate/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
--------------------------------------------------------------------------------
/FuncDelegate/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/FuncDelegate/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
--------------------------------------------------------------------------------
/PredicateDelegate/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/PredicateDelegate/PredicateDelegate.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {F135AC90-EF4D-403E-8221-9D774564FE0E}
8 | Exe
9 | PredicateDelegate
10 | PredicateDelegate
11 | v4.6.1
12 | 512
13 | true
14 |
15 |
16 | AnyCPU
17 | true
18 | full
19 | false
20 | bin\Debug\
21 | DEBUG;TRACE
22 | prompt
23 | 4
24 |
25 |
26 | AnyCPU
27 | pdbonly
28 | true
29 | bin\Release\
30 | TRACE
31 | prompt
32 | 4
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/PredicateDelegate/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Text.RegularExpressions;
3 |
4 | namespace PredicateDelegate
5 | {
6 | public class Program
7 | {
8 | public static void Main()
9 | {
10 | Predicate validateMobile = IsValidMobile;
11 | bool result = validateMobile("9999999999");
12 |
13 | Console.WriteLine(result);
14 |
15 | //PREDICATE WITH LAMBDA EXPRESSION
16 | Predicate validateMobile1 = (mobile) =>
17 | {
18 | Regex r = new Regex(@"^[0-9]{10}$");
19 | return r.IsMatch(mobile);
20 | };
21 |
22 | bool result1 = validateMobile1("888888888");
23 | Console.WriteLine(result1);
24 |
25 | Console.ReadLine();
26 | }
27 |
28 | public static bool IsValidMobile(string mobile)
29 | {
30 | Regex r = new Regex(@"^[0-9]{10}$");
31 | return r.IsMatch(mobile);
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/PredicateDelegate/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("PredicateDelegate")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("PredicateDelegate")]
13 | [assembly: AssemblyCopyright("Copyright © 2018")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("f135ac90-ef4d-403e-8221-9d774564fe0e")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/PredicateDelegate/bin/Debug/PredicateDelegate.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/PredicateDelegate/bin/Debug/PredicateDelegate.exe
--------------------------------------------------------------------------------
/PredicateDelegate/bin/Debug/PredicateDelegate.exe.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/PredicateDelegate/bin/Debug/PredicateDelegate.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/PredicateDelegate/bin/Debug/PredicateDelegate.pdb
--------------------------------------------------------------------------------
/PredicateDelegate/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/PredicateDelegate/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/PredicateDelegate/obj/Debug/PredicateDelegate.csproj.CoreCompileInputs.cache:
--------------------------------------------------------------------------------
1 | 3d01849e01a26fc021dbf4f69b8e851c7fb68d8b
2 |
--------------------------------------------------------------------------------
/PredicateDelegate/obj/Debug/PredicateDelegate.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | D:\AKKI_DEV\RND\CSharp-Samples\PredicateDelegate\bin\Debug\PredicateDelegate.exe.config
2 | D:\AKKI_DEV\RND\CSharp-Samples\PredicateDelegate\bin\Debug\PredicateDelegate.exe
3 | D:\AKKI_DEV\RND\CSharp-Samples\PredicateDelegate\bin\Debug\PredicateDelegate.pdb
4 | D:\AKKI_DEV\RND\CSharp-Samples\PredicateDelegate\obj\Debug\PredicateDelegate.csproj.CoreCompileInputs.cache
5 | D:\AKKI_DEV\RND\CSharp-Samples\PredicateDelegate\obj\Debug\PredicateDelegate.exe
6 | D:\AKKI_DEV\RND\CSharp-Samples\PredicateDelegate\obj\Debug\PredicateDelegate.pdb
7 | D:\AKKI_DEV\RND\CSharp-Samples\PredicateDelegate\obj\Debug\PredicateDelegate.csprojResolveAssemblyReference.cache
8 |
--------------------------------------------------------------------------------
/PredicateDelegate/obj/Debug/PredicateDelegate.csprojResolveAssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/PredicateDelegate/obj/Debug/PredicateDelegate.csprojResolveAssemblyReference.cache
--------------------------------------------------------------------------------
/PredicateDelegate/obj/Debug/PredicateDelegate.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/PredicateDelegate/obj/Debug/PredicateDelegate.exe
--------------------------------------------------------------------------------
/PredicateDelegate/obj/Debug/PredicateDelegate.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/PredicateDelegate/obj/Debug/PredicateDelegate.pdb
--------------------------------------------------------------------------------
/PredicateDelegate/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/PredicateDelegate/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
--------------------------------------------------------------------------------
/PredicateDelegate/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/PredicateDelegate/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
--------------------------------------------------------------------------------
/PredicateDelegate/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/PredicateDelegate/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
--------------------------------------------------------------------------------
/ThreadPoolSample/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/ThreadPoolSample/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading;
6 | using System.Threading.Tasks;
7 |
8 | namespace ThreadPoolSample
9 | {
10 |
11 | class Program
12 | {
13 | static int counter = 0;
14 | static void Main(string[] args)
15 | {
16 | AutoResetEvent mainEvent = new AutoResetEvent(false);
17 | int workerThreads;
18 | int portThreads;
19 |
20 | ThreadPool.GetMaxThreads(out workerThreads, out portThreads);
21 | Console.WriteLine("\nMaximum worker threads: \t{0}" + "\nMaximum completion port threads: {1}", workerThreads, portThreads);
22 | ThreadPool.GetMinThreads(out workerThreads, out portThreads);
23 | Console.WriteLine("\nMaximum worker threads: \t{0}" + "\nMaximum completion port threads: {1}", workerThreads, portThreads);
24 |
25 | ThreadPool.SetMaxThreads(500, 500);
26 |
27 | ThreadPool.GetMaxThreads(out workerThreads, out portThreads);
28 | Console.WriteLine("\nMaximum worker threads: \t{0}" + "\nMaximum completion port threads: {1}", workerThreads, portThreads);
29 | ThreadPool.GetMinThreads(out workerThreads, out portThreads);
30 | Console.WriteLine("\nMaximum worker threads: \t{0}" + "\nMaximum completion port threads: {1}", workerThreads, portThreads);
31 |
32 | Console.ReadLine();
33 |
34 | for (int i = 0; i < 1000; i++)
35 | {
36 | ThreadPool.QueueUserWorkItem(new WaitCallback(DoWork), mainEvent);
37 |
38 | ThreadPool.GetAvailableThreads(out workerThreads, out portThreads);
39 | Console.WriteLine("\nAvailable worker threads: \t{0}" + "\nAvailable completion port threads: {1}\n", workerThreads, portThreads);
40 |
41 | }
42 |
43 | Console.ReadLine();
44 | }
45 |
46 | public static void DoWork(object mainEvent)
47 | {
48 | counter += 1;
49 | Console.WriteLine("hi " + counter.ToString());
50 | Thread.Sleep(10000);
51 |
52 | ((AutoResetEvent)mainEvent).Set();
53 | }
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/ThreadPoolSample/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("ThreadPoolSample")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("ThreadPoolSample")]
13 | [assembly: AssemblyCopyright("Copyright © 2018")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("9d460ec2-221e-4d02-b2b0-a39ae6c8da32")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/ThreadPoolSample/ThreadPoolSample.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {9D460EC2-221E-4D02-B2B0-A39AE6C8DA32}
8 | Exe
9 | ThreadPoolSample
10 | ThreadPoolSample
11 | v4.6.1
12 | 512
13 | true
14 |
15 |
16 | AnyCPU
17 | true
18 | full
19 | false
20 | bin\Debug\
21 | DEBUG;TRACE
22 | prompt
23 | 4
24 |
25 |
26 | AnyCPU
27 | pdbonly
28 | true
29 | bin\Release\
30 | TRACE
31 | prompt
32 | 4
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/ThreadPoolSample/bin/Debug/ThreadPoolSample.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/ThreadPoolSample/bin/Debug/ThreadPoolSample.exe
--------------------------------------------------------------------------------
/ThreadPoolSample/bin/Debug/ThreadPoolSample.exe.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/ThreadPoolSample/bin/Debug/ThreadPoolSample.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/ThreadPoolSample/bin/Debug/ThreadPoolSample.pdb
--------------------------------------------------------------------------------
/ThreadPoolSample/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/ThreadPoolSample/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/ThreadPoolSample/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/ThreadPoolSample/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
--------------------------------------------------------------------------------
/ThreadPoolSample/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/ThreadPoolSample/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
--------------------------------------------------------------------------------
/ThreadPoolSample/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/ThreadPoolSample/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
--------------------------------------------------------------------------------
/ThreadPoolSample/obj/Debug/ThreadPoolSample.csproj.CoreCompileInputs.cache:
--------------------------------------------------------------------------------
1 | bbf498c801b015cb349242d38796aba30d13cf65
2 |
--------------------------------------------------------------------------------
/ThreadPoolSample/obj/Debug/ThreadPoolSample.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | D:\AKKI_DEV\RND\CSharp-Samples\ThreadPoolSample\bin\Debug\ThreadPoolSample.exe.config
2 | D:\AKKI_DEV\RND\CSharp-Samples\ThreadPoolSample\bin\Debug\ThreadPoolSample.exe
3 | D:\AKKI_DEV\RND\CSharp-Samples\ThreadPoolSample\bin\Debug\ThreadPoolSample.pdb
4 | D:\AKKI_DEV\RND\CSharp-Samples\ThreadPoolSample\obj\Debug\ThreadPoolSample.csprojResolveAssemblyReference.cache
5 | D:\AKKI_DEV\RND\CSharp-Samples\ThreadPoolSample\obj\Debug\ThreadPoolSample.csproj.CoreCompileInputs.cache
6 | D:\AKKI_DEV\RND\CSharp-Samples\ThreadPoolSample\obj\Debug\ThreadPoolSample.exe
7 | D:\AKKI_DEV\RND\CSharp-Samples\ThreadPoolSample\obj\Debug\ThreadPoolSample.pdb
8 |
--------------------------------------------------------------------------------
/ThreadPoolSample/obj/Debug/ThreadPoolSample.csprojResolveAssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/ThreadPoolSample/obj/Debug/ThreadPoolSample.csprojResolveAssemblyReference.cache
--------------------------------------------------------------------------------
/ThreadPoolSample/obj/Debug/ThreadPoolSample.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/ThreadPoolSample/obj/Debug/ThreadPoolSample.exe
--------------------------------------------------------------------------------
/ThreadPoolSample/obj/Debug/ThreadPoolSample.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/ThreadPoolSample/obj/Debug/ThreadPoolSample.pdb
--------------------------------------------------------------------------------
/Threading-BackgroundThread/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Threading-BackgroundThread/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading;
6 | using System.Threading.Tasks;
7 |
8 | namespace Threading_BackgroundThread
9 | {
10 | class Program
11 | {
12 | // Application exits immediately
13 |
14 | public static void SubMethod()
15 | {
16 | for (int i = 0; i < 10; i++)
17 | {
18 | Console.WriteLine("SubMethod Loop: {0}", i);
19 | Thread.Sleep(100);
20 | }
21 | }
22 | static void Main(string[] args)
23 | {
24 |
25 | Thread t = new Thread(new ThreadStart(SubMethod));
26 | t.IsBackground = true;
27 | t.Start();
28 |
29 | //Console.ReadKey();
30 | }
31 |
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/Threading-BackgroundThread/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Threading-BackgroundThread")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("Threading-BackgroundThread")]
13 | [assembly: AssemblyCopyright("Copyright © 2018")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("aefa9afd-9824-403b-a370-e9266792d429")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Threading-BackgroundThread/Threading-BackgroundThread.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {AEFA9AFD-9824-403B-A370-E9266792D429}
8 | Exe
9 | Threading_BackgroundThread
10 | Threading-BackgroundThread
11 | v4.6.1
12 | 512
13 | true
14 |
15 |
16 | AnyCPU
17 | true
18 | full
19 | false
20 | bin\Debug\
21 | DEBUG;TRACE
22 | prompt
23 | 4
24 |
25 |
26 | AnyCPU
27 | pdbonly
28 | true
29 | bin\Release\
30 | TRACE
31 | prompt
32 | 4
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/Threading-BackgroundThread/bin/Debug/Threading-BackgroundThread.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-BackgroundThread/bin/Debug/Threading-BackgroundThread.exe
--------------------------------------------------------------------------------
/Threading-BackgroundThread/bin/Debug/Threading-BackgroundThread.exe.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Threading-BackgroundThread/bin/Debug/Threading-BackgroundThread.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-BackgroundThread/bin/Debug/Threading-BackgroundThread.pdb
--------------------------------------------------------------------------------
/Threading-BackgroundThread/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-BackgroundThread/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/Threading-BackgroundThread/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-BackgroundThread/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
--------------------------------------------------------------------------------
/Threading-BackgroundThread/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-BackgroundThread/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
--------------------------------------------------------------------------------
/Threading-BackgroundThread/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-BackgroundThread/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
--------------------------------------------------------------------------------
/Threading-BackgroundThread/obj/Debug/Threading-BackgroundThread.csproj.CoreCompileInputs.cache:
--------------------------------------------------------------------------------
1 | 974aa35836da67f9bd3c0e185b61dc73f9f06d74
2 |
--------------------------------------------------------------------------------
/Threading-BackgroundThread/obj/Debug/Threading-BackgroundThread.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-BackgroundThread\bin\Debug\Threading-BackgroundThread.exe.config
2 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-BackgroundThread\bin\Debug\Threading-BackgroundThread.exe
3 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-BackgroundThread\bin\Debug\Threading-BackgroundThread.pdb
4 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-BackgroundThread\obj\Debug\Threading-BackgroundThread.csproj.CoreCompileInputs.cache
5 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-BackgroundThread\obj\Debug\Threading-BackgroundThread.exe
6 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-BackgroundThread\obj\Debug\Threading-BackgroundThread.pdb
7 |
--------------------------------------------------------------------------------
/Threading-BackgroundThread/obj/Debug/Threading-BackgroundThread.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-BackgroundThread/obj/Debug/Threading-BackgroundThread.exe
--------------------------------------------------------------------------------
/Threading-BackgroundThread/obj/Debug/Threading-BackgroundThread.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-BackgroundThread/obj/Debug/Threading-BackgroundThread.pdb
--------------------------------------------------------------------------------
/Threading-ForegroundThread/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Threading-ForegroundThread/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading;
6 | using System.Threading.Tasks;
7 |
8 | namespace Threading_ForegroundThread
9 | {
10 | class Program
11 | {
12 | // Foreground thread is used to keep application alive. When all foreground thread end, CLR shutdown your application.
13 |
14 | public static void SubMethod()
15 | {
16 | for (int i = 0; i < 10; i++)
17 | {
18 | Console.WriteLine("SubMethod Loop: {0}", i);
19 | Thread.Sleep(100);
20 | }
21 | }
22 | static void Main(string[] args)
23 | {
24 |
25 | Thread t = new Thread(new ThreadStart(SubMethod));
26 | t.IsBackground = false;
27 | t.Start();
28 |
29 | }
30 |
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/Threading-ForegroundThread/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Threading-ForegroundThread")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("Threading-ForegroundThread")]
13 | [assembly: AssemblyCopyright("Copyright © 2018")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("1e34ece3-a5bb-4c1a-9534-32555830675a")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Threading-ForegroundThread/Threading-ForegroundThread.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {1E34ECE3-A5BB-4C1A-9534-32555830675A}
8 | Exe
9 | Threading_ForegroundThread
10 | Threading-ForegroundThread
11 | v4.6.1
12 | 512
13 | true
14 |
15 |
16 | AnyCPU
17 | true
18 | full
19 | false
20 | bin\Debug\
21 | DEBUG;TRACE
22 | prompt
23 | 4
24 |
25 |
26 | AnyCPU
27 | pdbonly
28 | true
29 | bin\Release\
30 | TRACE
31 | prompt
32 | 4
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/Threading-ForegroundThread/bin/Debug/Threading-ForegroundThread.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ForegroundThread/bin/Debug/Threading-ForegroundThread.exe
--------------------------------------------------------------------------------
/Threading-ForegroundThread/bin/Debug/Threading-ForegroundThread.exe.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Threading-ForegroundThread/bin/Debug/Threading-ForegroundThread.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ForegroundThread/bin/Debug/Threading-ForegroundThread.pdb
--------------------------------------------------------------------------------
/Threading-ForegroundThread/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ForegroundThread/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/Threading-ForegroundThread/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ForegroundThread/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
--------------------------------------------------------------------------------
/Threading-ForegroundThread/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ForegroundThread/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
--------------------------------------------------------------------------------
/Threading-ForegroundThread/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ForegroundThread/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
--------------------------------------------------------------------------------
/Threading-ForegroundThread/obj/Debug/Threading-ForegroundThread.csproj.CoreCompileInputs.cache:
--------------------------------------------------------------------------------
1 | c6d6b755deed1a64f2a0d4053e8765f58f528bc7
2 |
--------------------------------------------------------------------------------
/Threading-ForegroundThread/obj/Debug/Threading-ForegroundThread.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-ForegroundThread\bin\Debug\Threading-ForegroundThread.exe.config
2 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-ForegroundThread\bin\Debug\Threading-ForegroundThread.exe
3 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-ForegroundThread\bin\Debug\Threading-ForegroundThread.pdb
4 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-ForegroundThread\obj\Debug\Threading-ForegroundThread.csproj.CoreCompileInputs.cache
5 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-ForegroundThread\obj\Debug\Threading-ForegroundThread.exe
6 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-ForegroundThread\obj\Debug\Threading-ForegroundThread.pdb
7 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-ForegroundThread\obj\Debug\Threading-ForegroundThread.csprojResolveAssemblyReference.cache
8 |
--------------------------------------------------------------------------------
/Threading-ForegroundThread/obj/Debug/Threading-ForegroundThread.csprojResolveAssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ForegroundThread/obj/Debug/Threading-ForegroundThread.csprojResolveAssemblyReference.cache
--------------------------------------------------------------------------------
/Threading-ForegroundThread/obj/Debug/Threading-ForegroundThread.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ForegroundThread/obj/Debug/Threading-ForegroundThread.exe
--------------------------------------------------------------------------------
/Threading-ForegroundThread/obj/Debug/Threading-ForegroundThread.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ForegroundThread/obj/Debug/Threading-ForegroundThread.pdb
--------------------------------------------------------------------------------
/Threading-ParameterizedThread/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Threading-ParameterizedThread/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading;
6 | using System.Threading.Tasks;
7 |
8 | namespace Threading_ParameterizedThread
9 | {
10 | class Program
11 | {
12 | // When we want to pass argument in a method which executes on thread.
13 |
14 | public static void SubMethod(object count)
15 | {
16 | for (int i = 0; i < (int)count; i++)
17 | {
18 | Console.WriteLine("SubMethod Loop: {0}", i);
19 | Thread.Sleep(100);
20 | }
21 | }
22 | static void Main(string[] args)
23 | {
24 |
25 | Thread t = new Thread(new ParameterizedThreadStart(SubMethod));
26 | t.Start(5);
27 | t.Join();
28 | Console.ReadKey();
29 | }
30 |
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/Threading-ParameterizedThread/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Threading-ParameterizedThread")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("Threading-ParameterizedThread")]
13 | [assembly: AssemblyCopyright("Copyright © 2018")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("9f3241c2-e184-4d57-b662-5663901d1fef")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Threading-ParameterizedThread/Threading-ParameterizedThread.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {9F3241C2-E184-4D57-B662-5663901D1FEF}
8 | Exe
9 | Threading_ParameterizedThread
10 | Threading-ParameterizedThread
11 | v4.6.1
12 | 512
13 | true
14 |
15 |
16 | AnyCPU
17 | true
18 | full
19 | false
20 | bin\Debug\
21 | DEBUG;TRACE
22 | prompt
23 | 4
24 |
25 |
26 | AnyCPU
27 | pdbonly
28 | true
29 | bin\Release\
30 | TRACE
31 | prompt
32 | 4
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/Threading-ParameterizedThread/bin/Debug/Threading-ParameterizedThread.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ParameterizedThread/bin/Debug/Threading-ParameterizedThread.exe
--------------------------------------------------------------------------------
/Threading-ParameterizedThread/bin/Debug/Threading-ParameterizedThread.exe.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Threading-ParameterizedThread/bin/Debug/Threading-ParameterizedThread.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ParameterizedThread/bin/Debug/Threading-ParameterizedThread.pdb
--------------------------------------------------------------------------------
/Threading-ParameterizedThread/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ParameterizedThread/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/Threading-ParameterizedThread/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ParameterizedThread/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
--------------------------------------------------------------------------------
/Threading-ParameterizedThread/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ParameterizedThread/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
--------------------------------------------------------------------------------
/Threading-ParameterizedThread/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ParameterizedThread/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
--------------------------------------------------------------------------------
/Threading-ParameterizedThread/obj/Debug/Threading-ParameterizedThread.csproj.CoreCompileInputs.cache:
--------------------------------------------------------------------------------
1 | 0208542e6de8c187953cd066e03d98278b1f503f
2 |
--------------------------------------------------------------------------------
/Threading-ParameterizedThread/obj/Debug/Threading-ParameterizedThread.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-ParameterizedThread\bin\Debug\Threading-ParameterizedThread.exe.config
2 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-ParameterizedThread\bin\Debug\Threading-ParameterizedThread.exe
3 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-ParameterizedThread\bin\Debug\Threading-ParameterizedThread.pdb
4 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-ParameterizedThread\obj\Debug\Threading-ParameterizedThread.csproj.CoreCompileInputs.cache
5 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-ParameterizedThread\obj\Debug\Threading-ParameterizedThread.exe
6 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-ParameterizedThread\obj\Debug\Threading-ParameterizedThread.pdb
7 |
--------------------------------------------------------------------------------
/Threading-ParameterizedThread/obj/Debug/Threading-ParameterizedThread.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ParameterizedThread/obj/Debug/Threading-ParameterizedThread.exe
--------------------------------------------------------------------------------
/Threading-ParameterizedThread/obj/Debug/Threading-ParameterizedThread.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ParameterizedThread/obj/Debug/Threading-ParameterizedThread.pdb
--------------------------------------------------------------------------------
/Threading-StopThread/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Threading-StopThread/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading;
6 | using System.Threading.Tasks;
7 |
8 | namespace Threading_StopThread
9 | {
10 | class Program
11 | {
12 | // We can use Thread.Abort method to stop the thread. As Thread.Abort method is executed by another thread which can happen at anytime
13 | // and sometime results into ThreadAbortException. So it's better to stop thread by using a shared variable which is accessible by target
14 | // and calling thread.
15 |
16 | static void Main(string[] args)
17 | {
18 | bool isStop = false;
19 |
20 | Thread t = new Thread(new ThreadStart(() =>
21 | {
22 | while (!isStop)
23 | {
24 | Console.WriteLine("Running...");
25 | Thread.Sleep(1000);
26 | }
27 | }));
28 |
29 | t.Start();
30 |
31 | Console.WriteLine("Press any key to exit");
32 | Console.ReadKey();
33 |
34 | isStop = true;
35 | t.Join();
36 |
37 | }
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/Threading-StopThread/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Threading-StopThread")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("Threading-StopThread")]
13 | [assembly: AssemblyCopyright("Copyright © 2018")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("8331f35c-ecf7-4b9a-97e5-744201bbcd39")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Threading-StopThread/Threading-StopThread.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {8331F35C-ECF7-4B9A-97E5-744201BBCD39}
8 | Exe
9 | Threading_StopThread
10 | Threading-StopThread
11 | v4.6.1
12 | 512
13 | true
14 |
15 |
16 | AnyCPU
17 | true
18 | full
19 | false
20 | bin\Debug\
21 | DEBUG;TRACE
22 | prompt
23 | 4
24 |
25 |
26 | AnyCPU
27 | pdbonly
28 | true
29 | bin\Release\
30 | TRACE
31 | prompt
32 | 4
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/Threading-StopThread/bin/Debug/Threading-StopThread.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-StopThread/bin/Debug/Threading-StopThread.exe
--------------------------------------------------------------------------------
/Threading-StopThread/bin/Debug/Threading-StopThread.exe.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Threading-StopThread/bin/Debug/Threading-StopThread.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-StopThread/bin/Debug/Threading-StopThread.pdb
--------------------------------------------------------------------------------
/Threading-StopThread/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-StopThread/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/Threading-StopThread/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-StopThread/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
--------------------------------------------------------------------------------
/Threading-StopThread/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-StopThread/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
--------------------------------------------------------------------------------
/Threading-StopThread/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-StopThread/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
--------------------------------------------------------------------------------
/Threading-StopThread/obj/Debug/Threading-StopThread.csproj.CoreCompileInputs.cache:
--------------------------------------------------------------------------------
1 | 5cf4e2c16cb26bba4b5db85224f04f9968e2d506
2 |
--------------------------------------------------------------------------------
/Threading-StopThread/obj/Debug/Threading-StopThread.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-StopThread\bin\Debug\Threading-StopThread.exe.config
2 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-StopThread\bin\Debug\Threading-StopThread.exe
3 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-StopThread\bin\Debug\Threading-StopThread.pdb
4 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-StopThread\obj\Debug\Threading-StopThread.csproj.CoreCompileInputs.cache
5 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-StopThread\obj\Debug\Threading-StopThread.exe
6 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-StopThread\obj\Debug\Threading-StopThread.pdb
7 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-StopThread\obj\Debug\Threading-StopThread.csprojResolveAssemblyReference.cache
8 |
--------------------------------------------------------------------------------
/Threading-StopThread/obj/Debug/Threading-StopThread.csprojResolveAssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-StopThread/obj/Debug/Threading-StopThread.csprojResolveAssemblyReference.cache
--------------------------------------------------------------------------------
/Threading-StopThread/obj/Debug/Threading-StopThread.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-StopThread/obj/Debug/Threading-StopThread.exe
--------------------------------------------------------------------------------
/Threading-StopThread/obj/Debug/Threading-StopThread.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-StopThread/obj/Debug/Threading-StopThread.pdb
--------------------------------------------------------------------------------
/Threading-ThreadClass/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Threading-ThreadClass/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading;
6 | using System.Threading.Tasks;
7 |
8 | namespace Threading_ThreadClass
9 | {
10 | class Program
11 | {
12 | static void Main(string[] args)
13 | {
14 | // Thread class is found under system.threading namespace.
15 | // Thread.join method is called to wait until the other thread finishes.
16 |
17 | Thread t = new Thread(new ThreadStart(SubMethod));
18 | t.Start();
19 | for (int i = 0; i < 4; i++)
20 | {
21 | Console.WriteLine("Main thread: Do some work.");
22 | Thread.Sleep(100);
23 | }
24 | t.Join();
25 |
26 | Console.ReadKey();
27 | }
28 |
29 | public static void SubMethod()
30 | {
31 | for (int i = 0; i < 10; i++)
32 | {
33 | Console.WriteLine("SubMethod Loop: {0}", i);
34 | Thread.Sleep(100);
35 | }
36 | }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/Threading-ThreadClass/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Threading-ThreadClass")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("Threading-ThreadClass")]
13 | [assembly: AssemblyCopyright("Copyright © 2018")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("4d112528-cb3f-41f6-99d5-3d500a49b3ab")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Threading-ThreadClass/Threading-ThreadClass.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {4D112528-CB3F-41F6-99D5-3D500A49B3AB}
8 | Exe
9 | Threading_ThreadClass
10 | Threading-ThreadClass
11 | v4.6.1
12 | 512
13 | true
14 |
15 |
16 | AnyCPU
17 | true
18 | full
19 | false
20 | bin\Debug\
21 | DEBUG;TRACE
22 | prompt
23 | 4
24 |
25 |
26 | AnyCPU
27 | pdbonly
28 | true
29 | bin\Release\
30 | TRACE
31 | prompt
32 | 4
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/Threading-ThreadClass/bin/Debug/Threading-ThreadClass.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ThreadClass/bin/Debug/Threading-ThreadClass.exe
--------------------------------------------------------------------------------
/Threading-ThreadClass/bin/Debug/Threading-ThreadClass.exe.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Threading-ThreadClass/bin/Debug/Threading-ThreadClass.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ThreadClass/bin/Debug/Threading-ThreadClass.pdb
--------------------------------------------------------------------------------
/Threading-ThreadClass/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ThreadClass/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/Threading-ThreadClass/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ThreadClass/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
--------------------------------------------------------------------------------
/Threading-ThreadClass/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ThreadClass/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
--------------------------------------------------------------------------------
/Threading-ThreadClass/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ThreadClass/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
--------------------------------------------------------------------------------
/Threading-ThreadClass/obj/Debug/Threading-ThreadClass.csproj.CoreCompileInputs.cache:
--------------------------------------------------------------------------------
1 | d3dab080c2c0457d8e14a44ff3d27dad40df73fb
2 |
--------------------------------------------------------------------------------
/Threading-ThreadClass/obj/Debug/Threading-ThreadClass.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-ThreadClass\bin\Debug\Threading-ThreadClass.exe.config
2 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-ThreadClass\bin\Debug\Threading-ThreadClass.exe
3 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-ThreadClass\bin\Debug\Threading-ThreadClass.pdb
4 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-ThreadClass\obj\Debug\Threading-ThreadClass.csprojResolveAssemblyReference.cache
5 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-ThreadClass\obj\Debug\Threading-ThreadClass.csproj.CoreCompileInputs.cache
6 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-ThreadClass\obj\Debug\Threading-ThreadClass.exe
7 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-ThreadClass\obj\Debug\Threading-ThreadClass.pdb
8 |
--------------------------------------------------------------------------------
/Threading-ThreadClass/obj/Debug/Threading-ThreadClass.csprojResolveAssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ThreadClass/obj/Debug/Threading-ThreadClass.csprojResolveAssemblyReference.cache
--------------------------------------------------------------------------------
/Threading-ThreadClass/obj/Debug/Threading-ThreadClass.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ThreadClass/obj/Debug/Threading-ThreadClass.exe
--------------------------------------------------------------------------------
/Threading-ThreadClass/obj/Debug/Threading-ThreadClass.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ThreadClass/obj/Debug/Threading-ThreadClass.pdb
--------------------------------------------------------------------------------
/Threading-ThreadLocal/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Threading-ThreadLocal/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading;
6 | using System.Threading.Tasks;
7 |
8 | namespace Threading_ThreadLocal
9 | {
10 | class Program
11 | {
12 | // When we want to use local data in thread and initialize it for each thread, we can use ThreadLocal class.
13 |
14 | public static ThreadLocal localVariable =
15 | new ThreadLocal(() =>
16 | {
17 | return Thread.CurrentThread.ManagedThreadId;
18 | });
19 |
20 | public static void Main()
21 | {
22 | new Thread(() =>
23 | {
24 | for (int x = 0; x < localVariable.Value; x++)
25 | {
26 | Console.WriteLine("Thread 1: {0}", x);
27 | }
28 | }).Start();
29 |
30 | new Thread(() =>
31 | {
32 | for (int x = 0; x < localVariable.Value; x++)
33 | {
34 | Console.WriteLine("Thread 2: {0}", x);
35 | }
36 | }).Start();
37 | Console.ReadKey();
38 | }
39 |
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/Threading-ThreadLocal/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Threading-ThreadLocal")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("Threading-ThreadLocal")]
13 | [assembly: AssemblyCopyright("Copyright © 2018")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("1d584b2f-be6c-449b-91c8-b6c2023ba22d")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Threading-ThreadLocal/Threading-ThreadLocal.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {1D584B2F-BE6C-449B-91C8-B6C2023BA22D}
8 | Exe
9 | Threading_ThreadLocal
10 | Threading-ThreadLocal
11 | v4.6.1
12 | 512
13 | true
14 |
15 |
16 | AnyCPU
17 | true
18 | full
19 | false
20 | bin\Debug\
21 | DEBUG;TRACE
22 | prompt
23 | 4
24 |
25 |
26 | AnyCPU
27 | pdbonly
28 | true
29 | bin\Release\
30 | TRACE
31 | prompt
32 | 4
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/Threading-ThreadLocal/bin/Debug/Threading-ThreadLocal.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ThreadLocal/bin/Debug/Threading-ThreadLocal.exe
--------------------------------------------------------------------------------
/Threading-ThreadLocal/bin/Debug/Threading-ThreadLocal.exe.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Threading-ThreadLocal/bin/Debug/Threading-ThreadLocal.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ThreadLocal/bin/Debug/Threading-ThreadLocal.pdb
--------------------------------------------------------------------------------
/Threading-ThreadLocal/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ThreadLocal/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/Threading-ThreadLocal/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ThreadLocal/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
--------------------------------------------------------------------------------
/Threading-ThreadLocal/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ThreadLocal/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
--------------------------------------------------------------------------------
/Threading-ThreadLocal/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ThreadLocal/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
--------------------------------------------------------------------------------
/Threading-ThreadLocal/obj/Debug/Threading-ThreadLocal.csproj.CoreCompileInputs.cache:
--------------------------------------------------------------------------------
1 | a2c679df340e84fa3506c180640891757d501ab5
2 |
--------------------------------------------------------------------------------
/Threading-ThreadLocal/obj/Debug/Threading-ThreadLocal.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-ThreadLocal\bin\Debug\Threading-ThreadLocal.exe.config
2 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-ThreadLocal\bin\Debug\Threading-ThreadLocal.exe
3 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-ThreadLocal\bin\Debug\Threading-ThreadLocal.pdb
4 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-ThreadLocal\obj\Debug\Threading-ThreadLocal.csproj.CoreCompileInputs.cache
5 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-ThreadLocal\obj\Debug\Threading-ThreadLocal.exe
6 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-ThreadLocal\obj\Debug\Threading-ThreadLocal.pdb
7 |
--------------------------------------------------------------------------------
/Threading-ThreadLocal/obj/Debug/Threading-ThreadLocal.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ThreadLocal/obj/Debug/Threading-ThreadLocal.exe
--------------------------------------------------------------------------------
/Threading-ThreadLocal/obj/Debug/Threading-ThreadLocal.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ThreadLocal/obj/Debug/Threading-ThreadLocal.pdb
--------------------------------------------------------------------------------
/Threading-ThreadStatic/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Threading-ThreadStatic/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading;
6 | using System.Threading.Tasks;
7 |
8 | namespace Threading_ThreadStatic
9 | {
10 | class Program
11 | {
12 | // A thread has its own call stack that stores all the methods that are executed. Local variables are stored on the call stack
13 | // and are private to the thread.
14 | // A thread can also have its own data that’s not a local variable.By marking a field with the ThreadStatic attribute,
15 | // each thread gets its own copy of a field
16 |
17 | [ThreadStatic]
18 | public static int localVariable;
19 | public static void Main()
20 | {
21 | new Thread(() =>
22 | {
23 | for (int x = 0; x < 10; x++)
24 | {
25 | localVariable++;
26 | Console.WriteLine("Thread 1: {0}", localVariable);
27 | }
28 | }).Start();
29 |
30 | new Thread(() =>
31 | {
32 | for (int x = 0; x < 10; x++)
33 | {
34 | localVariable++;
35 | Console.WriteLine("Thread 2: {0}", localVariable);
36 | }
37 | }).Start();
38 |
39 | Console.ReadKey();
40 | }
41 |
42 | // With the ThreadStaticAttribute applied, the maximum value of localVariable becomes 10. If you remove it,
43 | //you can see that both threads access the same value and it becomes 20.
44 |
45 | //class Program
46 | //{
47 | // public static int localVariable;
48 | // public static void Main()
49 | // {
50 | // new Thread(() =>
51 | // {
52 | // for (int x = 0; x < 10; x++)
53 | // {
54 | // localVariable++;
55 | // Console.WriteLine("Thread 1: {0}", localVariable);
56 | // }
57 | // }).Start();
58 |
59 | // new Thread(() =>
60 | // {
61 | // for (int x = 0; x < 10; x++)
62 | // {
63 | // localVariable++;
64 | // Console.WriteLine("Thread 2: {0}", localVariable);
65 | // }
66 | // }).Start();
67 |
68 | // Console.ReadKey();
69 | // }
70 | //}
71 | }
72 | }
73 |
--------------------------------------------------------------------------------
/Threading-ThreadStatic/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Threading-ThreadStatic")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("Threading-ThreadStatic")]
13 | [assembly: AssemblyCopyright("Copyright © 2018")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("1eba49bf-2156-4f6b-92ff-3b7f8f9eb1e5")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Threading-ThreadStatic/Threading-ThreadStatic.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {1EBA49BF-2156-4F6B-92FF-3B7F8F9EB1E5}
8 | Exe
9 | Threading_ThreadStatic
10 | Threading-ThreadStatic
11 | v4.6.1
12 | 512
13 | true
14 |
15 |
16 | AnyCPU
17 | true
18 | full
19 | false
20 | bin\Debug\
21 | DEBUG;TRACE
22 | prompt
23 | 4
24 |
25 |
26 | AnyCPU
27 | pdbonly
28 | true
29 | bin\Release\
30 | TRACE
31 | prompt
32 | 4
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/Threading-ThreadStatic/bin/Debug/Threading-ThreadStatic.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ThreadStatic/bin/Debug/Threading-ThreadStatic.exe
--------------------------------------------------------------------------------
/Threading-ThreadStatic/bin/Debug/Threading-ThreadStatic.exe.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Threading-ThreadStatic/bin/Debug/Threading-ThreadStatic.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ThreadStatic/bin/Debug/Threading-ThreadStatic.pdb
--------------------------------------------------------------------------------
/Threading-ThreadStatic/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ThreadStatic/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/Threading-ThreadStatic/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ThreadStatic/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
--------------------------------------------------------------------------------
/Threading-ThreadStatic/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ThreadStatic/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
--------------------------------------------------------------------------------
/Threading-ThreadStatic/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ThreadStatic/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
--------------------------------------------------------------------------------
/Threading-ThreadStatic/obj/Debug/Threading-ThreadStatic.csproj.CoreCompileInputs.cache:
--------------------------------------------------------------------------------
1 | 629f429d6bde07893806eae4b8b2356b66b25e05
2 |
--------------------------------------------------------------------------------
/Threading-ThreadStatic/obj/Debug/Threading-ThreadStatic.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-ThreadStatic\bin\Debug\Threading-ThreadStatic.exe.config
2 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-ThreadStatic\bin\Debug\Threading-ThreadStatic.exe
3 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-ThreadStatic\bin\Debug\Threading-ThreadStatic.pdb
4 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-ThreadStatic\obj\Debug\Threading-ThreadStatic.csproj.CoreCompileInputs.cache
5 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-ThreadStatic\obj\Debug\Threading-ThreadStatic.exe
6 | D:\AKKI_DEV\RND\CSharp-Samples\Threading-ThreadStatic\obj\Debug\Threading-ThreadStatic.pdb
7 |
--------------------------------------------------------------------------------
/Threading-ThreadStatic/obj/Debug/Threading-ThreadStatic.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ThreadStatic/obj/Debug/Threading-ThreadStatic.exe
--------------------------------------------------------------------------------
/Threading-ThreadStatic/obj/Debug/Threading-ThreadStatic.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/CSharp-Samples/6cdf48a42ffcc28f488d4a26ecffd00d0ab8a373/Threading-ThreadStatic/obj/Debug/Threading-ThreadStatic.pdb
--------------------------------------------------------------------------------