diff --git a/Dynamics/App.config b/Dynamics/App.config new file mode 100644 index 0000000..731f6de --- /dev/null +++ b/Dynamics/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Dynamics/Dynamics.csproj b/Dynamics/Dynamics.csproj new file mode 100644 index 0000000..f8e7a43 --- /dev/null +++ b/Dynamics/Dynamics.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {C504A101-B4E7-4228-BF69-13816521A909} + Exe + Dynamics + Dynamics + v4.6.1 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Dynamics/Program.cs b/Dynamics/Program.cs new file mode 100644 index 0000000..0f968aa --- /dev/null +++ b/Dynamics/Program.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Dynamics +{ + class Program + { + static void Main(string[] args) + { + //object obj = "Tommy"; + + ////Console.WriteLine(obj.GetHashCode()); + + //var methodInfo = obj.GetType().GetMethod("GetHashCode"); + //Console.WriteLine(methodInfo.Invoke(null, null)) ; + + //dynamic excelObject = "Tommy"; + //excelObject.Optimize(); + + //dynamic name = "Tommy"; + // name = 23.50f; + // name++; not accepted + + dynamic a = 10; + dynamic b = 5; + var c = a + b; + + + } + } +} diff --git a/Dynamics/Properties/AssemblyInfo.cs b/Dynamics/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..757de9e --- /dev/null +++ b/Dynamics/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Dynamics")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Dynamics")] +[assembly: AssemblyCopyright("Copyright © 2019")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("c504a101-b4e7-4228-bf69-13816521a909")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Nullable_types/Program.cs b/Nullable_types/Program.cs index be4bbc9..5d9e701 100644 --- a/Nullable_types/Program.cs +++ b/Nullable_types/Program.cs @@ -12,7 +12,7 @@ namespace Nullable_types { //DateTime date = null; //datetime is nott nullable - Nullable ndate = null; + //Nullable ndate = null; DateTime? nullable_date = null; /* diff --git a/TrainingAdvancedTechniques.sln b/TrainingAdvancedTechniques.sln index 580021f..389c8a0 100644 --- a/TrainingAdvancedTechniques.sln +++ b/TrainingAdvancedTechniques.sln @@ -15,6 +15,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Linq_examples", "Linq_examp EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nullable_types", "Nullable_types\Nullable_types.csproj", "{9192B9D9-88CD-4A3D-B586-4DA40F0A36B8}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dynamics", "Dynamics\Dynamics.csproj", "{C504A101-B4E7-4228-BF69-13816521A909}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -45,6 +47,10 @@ Global {9192B9D9-88CD-4A3D-B586-4DA40F0A36B8}.Debug|Any CPU.Build.0 = Debug|Any CPU {9192B9D9-88CD-4A3D-B586-4DA40F0A36B8}.Release|Any CPU.ActiveCfg = Release|Any CPU {9192B9D9-88CD-4A3D-B586-4DA40F0A36B8}.Release|Any CPU.Build.0 = Release|Any CPU + {C504A101-B4E7-4228-BF69-13816521A909}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C504A101-B4E7-4228-BF69-13816521A909}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C504A101-B4E7-4228-BF69-13816521A909}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C504A101-B4E7-4228-BF69-13816521A909}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE