Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/api-doc-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaopeixia <maopeixia@163.com>2020-06-11 09:42:54 +0300
committermaopeixia <maopeixia@163.com>2020-06-11 09:42:54 +0300
commitacbdafeec844afadc6e7dce03a7f40e75b093846 (patch)
tree9122ab552e3fb4104baed8f564ea4189b44facdb /mdoc/mdoc.Test/SampleClasses
parenteaba6771fbf0fe994accb8e17fe274474e8dee79 (diff)
[mdoc] come up with test/design for better member implementation detection
Diffstat (limited to 'mdoc/mdoc.Test/SampleClasses')
-rw-r--r--mdoc/mdoc.Test/SampleClasses/EiiImplementclass.cs35
-rw-r--r--mdoc/mdoc.Test/SampleClasses/Interface_A.cs17
-rw-r--r--mdoc/mdoc.Test/SampleClasses/Interface_B.cs19
3 files changed, 71 insertions, 0 deletions
diff --git a/mdoc/mdoc.Test/SampleClasses/EiiImplementclass.cs b/mdoc/mdoc.Test/SampleClasses/EiiImplementclass.cs
new file mode 100644
index 00000000..a6e7a8d3
--- /dev/null
+++ b/mdoc/mdoc.Test/SampleClasses/EiiImplementclass.cs
@@ -0,0 +1,35 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace mdoc.Test2
+{
+ public class EiiImplementClass : Interface_A,Interface_B
+ {
+ public event EventHandler<EventArgs> ItemChanged;
+ public string color { get; set; }
+
+ public int GetNum() => 3;
+
+ public int no { get; }
+ int Interface_B.no { get; }
+
+ public string GetNo() => "1";
+ string Interface_A.GetNo() => "7";
+
+ public bool IsNum(string no) => false;
+ bool Interface_B.IsNum(string no) => true;
+
+ protected virtual void OnItemChanged(EventArgs e)
+ { }
+
+ event EventHandler<EventArgs> Interface_B.ItemChanged
+ {
+ add { }
+ remove { }
+ }
+
+ }
+}
diff --git a/mdoc/mdoc.Test/SampleClasses/Interface_A.cs b/mdoc/mdoc.Test/SampleClasses/Interface_A.cs
new file mode 100644
index 00000000..f1ab3a2a
--- /dev/null
+++ b/mdoc/mdoc.Test/SampleClasses/Interface_A.cs
@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace mdoc.Test2
+{
+ public interface Interface_A
+ {
+ string color { get; set; }
+ int no { get; }
+ string GetNo();
+ int GetNum();
+ event EventHandler<EventArgs> ItemChanged;
+ }
+}
diff --git a/mdoc/mdoc.Test/SampleClasses/Interface_B.cs b/mdoc/mdoc.Test/SampleClasses/Interface_B.cs
new file mode 100644
index 00000000..727c0ff7
--- /dev/null
+++ b/mdoc/mdoc.Test/SampleClasses/Interface_B.cs
@@ -0,0 +1,19 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace mdoc.Test2
+{
+ public interface Interface_B
+ {
+ string color { get; set; }
+ int no { get; }
+ string GetNo();
+ bool IsNum(string no);
+ event EventHandler<EventArgs> ItemChanged;
+
+
+ }
+}