dynamics finished

This commit is contained in:
2019-01-06 18:31:17 +01:00
parent 81833c686b
commit 8307f4b50c
6 changed files with 136 additions and 1 deletions

6
Dynamics/App.config Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
</startup>
</configuration>

53
Dynamics/Dynamics.csproj Normal file
View File

@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{C504A101-B4E7-4228-BF69-13816521A909}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>Dynamics</RootNamespace>
<AssemblyName>Dynamics</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

34
Dynamics/Program.cs Normal file
View File

@ -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;
}
}
}

View File

@ -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")]

View File

@ -12,7 +12,7 @@ namespace Nullable_types
{ {
//DateTime date = null; //datetime is nott nullable //DateTime date = null; //datetime is nott nullable
Nullable<DateTime> ndate = null; //Nullable<DateTime> ndate = null;
DateTime? nullable_date = null; DateTime? nullable_date = null;
/* /*

View File

@ -15,6 +15,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Linq_examples", "Linq_examp
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nullable_types", "Nullable_types\Nullable_types.csproj", "{9192B9D9-88CD-4A3D-B586-4DA40F0A36B8}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nullable_types", "Nullable_types\Nullable_types.csproj", "{9192B9D9-88CD-4A3D-B586-4DA40F0A36B8}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dynamics", "Dynamics\Dynamics.csproj", "{C504A101-B4E7-4228-BF69-13816521A909}"
EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU 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}.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.ActiveCfg = Release|Any CPU
{9192B9D9-88CD-4A3D-B586-4DA40F0A36B8}.Release|Any CPU.Build.0 = 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 EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE