Mercurial > hg > Database > Christie-sharp
changeset 0:e858d217d464
add annotation codes
author | riono <e165729@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 11 Jun 2020 22:57:34 +0900 |
parents | |
children | 740b80680d75 |
files | .hgignore Christie_net.csproj Christie_net.sln Program.cs annotation/Peek.cs annotation/PeekFrom.cs annotation/Take.cs annotation/TakeFrom.cs |
diffstat | 8 files changed, 117 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.hgignore Thu Jun 11 22:57:34 2020 +0900 @@ -0,0 +1,21 @@ +syntax: glob +.classpath + +syntax: regexp +^classes$ +syntax: regexp +^Alice\.jar$ +syntax: regexp +syntax: glob +.classpath + +build +.gradle +.idea +out +.DS_Store +bin/ +obj/ +packages/ +riderModule.iml +_ReSharper.Caches/ \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Christie_net.csproj Thu Jun 11 22:57:34 2020 +0900 @@ -0,0 +1,8 @@ +<Project Sdk="Microsoft.NET.Sdk"> + + <PropertyGroup> + <OutputType>Exe</OutputType> + <TargetFramework>netcoreapp3.1</TargetFramework> + </PropertyGroup> + +</Project>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Christie_net.sln Thu Jun 11 22:57:34 2020 +0900 @@ -0,0 +1,16 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Christie_net", "Christie_net.csproj", "{FB3CEA6F-D79D-4304-A5CB-B0EDE7F55ECB}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {FB3CEA6F-D79D-4304-A5CB-B0EDE7F55ECB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FB3CEA6F-D79D-4304-A5CB-B0EDE7F55ECB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FB3CEA6F-D79D-4304-A5CB-B0EDE7F55ECB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FB3CEA6F-D79D-4304-A5CB-B0EDE7F55ECB}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Program.cs Thu Jun 11 22:57:34 2020 +0900 @@ -0,0 +1,23 @@ +using System; +using Christie_net.annotation; + +namespace Christie_net +{ + class Program + { + [Peek] + Test testindex; + + static void Main(string[] args) + { + Console.WriteLine("Hello World!"); + + + } + } + class Test + { + public int index; + public String text; + } +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/annotation/Peek.cs Thu Jun 11 22:57:34 2020 +0900 @@ -0,0 +1,9 @@ +using System; + +namespace Christie_net.annotation +{ + [AttributeUsage(AttributeTargets.Field)] + public class Peek : Attribute + { + } +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/annotation/PeekFrom.cs Thu Jun 11 22:57:34 2020 +0900 @@ -0,0 +1,15 @@ +using System; + +namespace Christie_net.annotation +{ + [AttributeUsage(AttributeTargets.Field)] + public class PeekFrom : Attribute + { + private string _name; + + public String value() + { + return _name; + } + } +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/annotation/Take.cs Thu Jun 11 22:57:34 2020 +0900 @@ -0,0 +1,10 @@ +using System; + +namespace Christie_net.annotation +{ + [AttributeUsage(AttributeTargets.Field)] + public class Take : Attribute + { + + } +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/annotation/TakeFrom.cs Thu Jun 11 22:57:34 2020 +0900 @@ -0,0 +1,15 @@ +using System; + +namespace Christie_net.annotation +{ + [AttributeUsage(AttributeTargets.Field)] + public class TakeFrom : Attribute + { + private string _name; + + public String value() + { + return _name; + } + } +} \ No newline at end of file